Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: chrome_elf/chrome_elf.gyp

Issue 138593004: Use an alternate mechanism for CreateFile calls in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flags, tests and some gyp-fu Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'variables': { 5 'variables': {
6 'chromium_code': 1, 6 'chromium_code': 1,
7 }, 7 },
8 'includes': [ 8 'includes': [
9 '../build/win_precompile.gypi', 9 '../build/win_precompile.gypi',
10 '../chrome/version.gypi', 10 '../chrome/version.gypi',
(...skipping 11 matching lines...) Expand all
22 'chrome_elf_main.cc', 22 'chrome_elf_main.cc',
23 'chrome_elf_main.h', 23 'chrome_elf_main.h',
24 ], 24 ],
25 'dependencies': [ 25 'dependencies': [
26 'blacklist', 26 'blacklist',
27 'chrome_elf_lib', 27 'chrome_elf_lib',
28 ], 28 ],
29 'msvs_settings': { 29 'msvs_settings': {
30 'VCLinkerTool': { 30 'VCLinkerTool': {
31 'BaseAddress': '0x01c20000', 31 'BaseAddress': '0x01c20000',
32 # Set /SUBSYSTEM:WINDOWS for chrome_elf.dll (for consistency). 32 # Set /SUBSYSTEM:WINDOWS.
33 'SubSystem': '2', 33 'SubSystem': '2',
34 'AdditionalDependencies!': [ 34 'AdditionalDependencies!': [
35 'user32.lib', 35 'user32.lib',
36 ], 36 ],
37 'IgnoreDefaultLibraryNames': [ 37 'IgnoreDefaultLibraryNames': [
38 'user32.lib', 38 'user32.lib',
39 ], 39 ],
40 }, 40 },
41 }, 41 },
42 }, 42 },
43 { 43 {
44 'target_name': 'chrome_elf_unittests_exe', 44 'target_name': 'chrome_elf_unittests_exe',
45 'product_name': 'chrome_elf_unittests', 45 'product_name': 'chrome_elf_unittests',
46 'type': 'executable', 46 'type': 'executable',
47 'sources': [ 47 'sources': [
48 'blacklist/test/blacklist_test.cc', 48 'blacklist/test/blacklist_test.cc',
49 'create_file/chrome_create_file_unittest.cc',
49 'elf_imports_unittest.cc', 50 'elf_imports_unittest.cc',
50 'ntdll_cache_unittest.cc', 51 'ntdll_cache_unittest.cc',
51 ], 52 ],
52 'include_dirs': [ 53 'include_dirs': [
53 '..', 54 '..',
54 '<(SHARED_INTERMEDIATE_DIR)', 55 '<(SHARED_INTERMEDIATE_DIR)',
55 ], 56 ],
56 'dependencies': [ 57 'dependencies': [
57 'chrome_elf_lib', 58 'chrome_elf_lib',
58 '../base/base.gyp:base', 59 '../base/base.gyp:base',
59 '../base/base.gyp:run_all_unittests', 60 '../base/base.gyp:run_all_unittests',
60 '../base/base.gyp:test_support_base', 61 '../base/base.gyp:test_support_base',
61 '../sandbox/sandbox.gyp:sandbox', 62 '../sandbox/sandbox.gyp:sandbox',
62 '../testing/gtest.gyp:gtest', 63 '../testing/gtest.gyp:gtest',
63 'blacklist', 64 'blacklist',
64 'blacklist_test_dll_1', 65 'blacklist_test_dll_1',
65 'blacklist_test_dll_2', 66 'blacklist_test_dll_2',
66 'blacklist_test_dll_3', 67 'blacklist_test_dll_3',
67 'blacklist_test_main_dll', 68 'blacklist_test_main_dll',
68 ], 69 ],
70 'conditions': [
71 ['component=="shared_library"', {
72 # In component builds, all targets depend on chrome_redirects by
73 # default. Remove it here to avoid a circular dependency.
74 'dependencies!': [
75 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
76 ],
77 }],
78 ],
69 }, 79 },
70 { 80 {
71 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build 81 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets build
72 # when building chrome_elf_unittests.exe without introducing an 82 # when building chrome_elf_unittests.exe without introducing an
73 # explicit runtime dependency. 83 # explicit runtime dependency.
74 'target_name': 'chrome_elf_unittests', 84 'target_name': 'chrome_elf_unittests',
75 'type': 'none', 85 'type': 'none',
76 'dependencies': [ 86 'dependencies': [
77 '../chrome/chrome.gyp:chrome', 87 '../chrome/chrome.gyp:chrome',
78 'chrome_elf', 88 'chrome_elf',
79 'chrome_elf_unittests_exe', 89 'chrome_elf_unittests_exe',
80 ], 90 ],
81 }, 91 },
82 { 92 {
83 'target_name': 'chrome_elf_lib', 93 'target_name': 'chrome_elf_lib',
84 'type': 'static_library', 94 'type': 'static_library',
85 'include_dirs': [ 95 'include_dirs': [
86 '..', 96 '..',
87 ], 97 ],
88 'sources': [ 98 'sources': [
99 'chrome_elf_constants.cc',
100 'chrome_elf_constants.h',
89 'chrome_elf_types.h', 101 'chrome_elf_types.h',
102 'create_file/chrome_create_file.cc',
103 'create_file/chrome_create_file.h',
90 'ntdll_cache.cc', 104 'ntdll_cache.cc',
91 'ntdll_cache.h', 105 'ntdll_cache.h',
92 ], 106 ],
107 'conditions': [
108 ['component=="shared_library"', {
109 # In component builds, all targets depend on chrome_redirects by
110 # default. Remove it here to avoid a circular dependency.
111 'dependencies!': [
112 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
113 ],
114 }],
115 ],
93 }, 116 },
117 ], # targets
118 'conditions': [
119 ['component=="shared_library"', {
120 'targets': [
121 {
122 'target_name': 'chrome_redirects',
123 'type': 'shared_library',
124 'include_dirs': [
125 '..',
126 ],
127 'sources': [
128 'chrome_redirects.def',
129 ],
130 'dependencies': [
131 'chrome_elf_lib',
132 ],
133 'msvs_settings': {
134 'VCLinkerTool': {
135 'BaseAddress': '0x01c10000',
136 # Set /SUBSYSTEM:WINDOWS.
137 'SubSystem': '2',
138 },
139 },
140 'conditions': [
141 ['component=="shared_library"', {
142 # In component builds, all targets depend on chrome_redirects by
143 # default. Remove it here to avoid a circular dependency.
144 'dependencies!': [
145 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
146 ],
147 }],
148 ],
149 },
150 ],
151 }],
94 ], 152 ],
95 } 153 }
154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698