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

Side by Side Diff: components/nacl.gyp

Issue 912503003: Remove "nacl_defines" from the GYP build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/components_tests.gyp ('k') | components/nacl/nacl_defines.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [
10 'nacl/nacl_defines.gypi',
11 ],
12 'target_defaults': { 9 'target_defaults': {
13 'variables': { 10 'variables': {
14 'nacl_target': 0, 11 'nacl_target': 0,
15 }, 12 },
16 'target_conditions': [ 13 'target_conditions': [
17 # This part is shared between the targets defined below. Only files and 14 # This part is shared between the targets defined below. Only files and
18 # settings relevant for building the Win64 target should be added here. 15 # settings relevant for building the Win64 target should be added here.
19 ['nacl_target==1', { 16 ['nacl_target==1', {
20 'include_dirs': [ 17 'include_dirs': [
21 '<(INTERMEDIATE_DIR)', 18 '<(INTERMEDIATE_DIR)',
22 ], 19 ],
23 'defines': [
24 '<@(nacl_defines)',
25 ],
26 'sources': [ 20 'sources': [
27 # .cc, .h, and .mm files under nacl that are used on all 21 # .cc, .h, and .mm files under nacl that are used on all
28 # platforms, including both 32-bit and 64-bit Windows. 22 # platforms, including both 32-bit and 64-bit Windows.
29 # Test files are also not included. 23 # Test files are also not included.
30 'nacl/loader/nacl_ipc_adapter.cc', 24 'nacl/loader/nacl_ipc_adapter.cc',
31 'nacl/loader/nacl_ipc_adapter.h', 25 'nacl/loader/nacl_ipc_adapter.h',
32 'nacl/loader/nacl_main.cc', 26 'nacl/loader/nacl_main.cc',
33 'nacl/loader/nacl_main_platform_delegate.h', 27 'nacl/loader/nacl_main_platform_delegate.h',
34 'nacl/loader/nacl_main_platform_delegate_linux.cc', 28 'nacl/loader/nacl_main_platform_delegate_linux.cc',
35 'nacl/loader/nacl_main_platform_delegate_mac.mm', 29 'nacl/loader/nacl_main_platform_delegate_mac.mm',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', 80 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
87 ], 81 ],
88 'conditions': [ 82 'conditions': [
89 ['disable_nacl_untrusted==0', { 83 ['disable_nacl_untrusted==0', {
90 'dependencies': [ 84 'dependencies': [
91 '../ppapi/native_client/native_client.gyp:nacl_irt', 85 '../ppapi/native_client/native_client.gyp:nacl_irt',
92 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pn acl_support_extension.gyp:pnacl_support_extension', 86 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pn acl_support_extension.gyp:pnacl_support_extension',
93 ], 87 ],
94 }], 88 }],
95 ], 89 ],
96 'direct_dependent_settings': {
97 'defines': [
98 '<@(nacl_defines)',
99 ],
100 },
101 }, 90 },
102 { 91 {
103 'target_name': 'nacl_browser', 92 'target_name': 'nacl_browser',
104 'type': 'static_library', 93 'type': 'static_library',
105 'sources': [ 94 'sources': [
106 'nacl/browser/nacl_broker_host_win.cc', 95 'nacl/browser/nacl_broker_host_win.cc',
107 'nacl/browser/nacl_broker_host_win.h', 96 'nacl/browser/nacl_broker_host_win.h',
108 'nacl/browser/nacl_broker_service_win.cc', 97 'nacl/browser/nacl_broker_service_win.cc',
109 'nacl/browser/nacl_broker_service_win.h', 98 'nacl/browser/nacl_broker_service_win.h',
110 'nacl/browser/nacl_browser.cc', 99 'nacl/browser/nacl_browser.cc',
(...skipping 15 matching lines...) Expand all
126 ], 115 ],
127 'include_dirs': [ 116 'include_dirs': [
128 '..', 117 '..',
129 ], 118 ],
130 'dependencies': [ 119 'dependencies': [
131 'nacl_common', 120 'nacl_common',
132 'nacl_switches', 121 'nacl_switches',
133 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l', 122 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l',
134 '../content/content.gyp:content_browser', 123 '../content/content.gyp:content_browser',
135 ], 124 ],
136 'defines': [
137 '<@(nacl_defines)',
138 ],
139 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 125 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
140 'msvs_disabled_warnings': [4267, ], 126 'msvs_disabled_warnings': [4267, ],
141 'conditions': [ 127 'conditions': [
142 ['OS=="linux"', { 128 ['OS=="linux"', {
143 'sources': [ 129 'sources': [
144 '../components/nacl/zygote/nacl_fork_delegate_linux.cc', 130 '../components/nacl/zygote/nacl_fork_delegate_linux.cc',
145 '../components/nacl/zygote/nacl_fork_delegate_linux.h', 131 '../components/nacl/zygote/nacl_fork_delegate_linux.h',
146 ], 132 ],
147 'dependencies': [ 133 'dependencies': [
148 # Required by nacl_fork_delegate_linux.cc. 134 # Required by nacl_fork_delegate_linux.cc.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 'include_dirs': [ 170 'include_dirs': [
185 '..', 171 '..',
186 ], 172 ],
187 'dependencies': [ 173 'dependencies': [
188 'nacl_common', 174 'nacl_common',
189 '../content/content.gyp:content_renderer', 175 '../content/content.gyp:content_renderer',
190 '../components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin', 176 '../components/nacl/renderer/plugin/plugin.gyp:nacl_trusted_plugin',
191 '../third_party/jsoncpp/jsoncpp.gyp:jsoncpp', 177 '../third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
192 '../third_party/WebKit/public/blink.gyp:blink', 178 '../third_party/WebKit/public/blink.gyp:blink',
193 ], 179 ],
194 'defines': [
195 '<@(nacl_defines)',
196 ],
197 'direct_dependent_settings': {
198 'defines': [
199 '<@(nacl_defines)',
200 ],
201 },
202 }, 180 },
203 { 181 {
204 'target_name': 'nacl_loader_unittests', 182 'target_name': 'nacl_loader_unittests',
205 'type': '<(gtest_target_type)', 183 'type': '<(gtest_target_type)',
206 'sources': [ 184 'sources': [
207 'nacl/loader/nacl_ipc_adapter_unittest.cc', 185 'nacl/loader/nacl_ipc_adapter_unittest.cc',
208 'nacl/loader/nacl_validation_query_unittest.cc', 186 'nacl/loader/nacl_validation_query_unittest.cc',
209 'nacl/loader/run_all_unittests.cc', 187 'nacl/loader/run_all_unittests.cc',
210 ], 188 ],
211 'dependencies': [ 189 'dependencies': [
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 'link_settings': { 238 'link_settings': {
261 'ldflags': ['-pie'], 239 'ldflags': ['-pie'],
262 }, 240 },
263 }, { 241 }, {
264 'target_name': 'nacl_linux', 242 'target_name': 'nacl_linux',
265 'type': 'static_library', 243 'type': 'static_library',
266 'include_dirs': [ 244 'include_dirs': [
267 '..', 245 '..',
268 ], 246 ],
269 'defines': [ 247 'defines': [
270 '<@(nacl_defines)',
271 # Allow .cc files to know if they're being compiled as part 248 # Allow .cc files to know if they're being compiled as part
272 # of nacl_helper. 249 # of nacl_helper.
273 'IN_NACL_HELPER=1', 250 'IN_NACL_HELPER=1',
274 ], 251 ],
275 'sources': [ 252 'sources': [
276 'nacl/loader/nonsfi/abi_conversion.cc', 253 'nacl/loader/nonsfi/abi_conversion.cc',
277 'nacl/loader/nonsfi/abi_conversion.h', 254 'nacl/loader/nonsfi/abi_conversion.h',
278 'nacl/loader/nonsfi/elf_loader.cc', 255 'nacl/loader/nonsfi/elf_loader.cc',
279 'nacl/loader/nonsfi/elf_loader.h', 256 'nacl/loader/nonsfi/elf_loader.h',
280 'nacl/loader/nonsfi/irt_basic.cc', 257 'nacl/loader/nonsfi/irt_basic.cc',
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 ], 355 ],
379 'defines': [ 356 'defines': [
380 '<@(nacl_win64_defines)', 357 '<@(nacl_win64_defines)',
381 'COMPILE_CONTENT_STATICALLY', 358 'COMPILE_CONTENT_STATICALLY',
382 ], 359 ],
383 'configurations': { 360 'configurations': {
384 'Common_Base': { 361 'Common_Base': {
385 'msvs_target_platform': 'x64', 362 'msvs_target_platform': 'x64',
386 }, 363 },
387 }, 364 },
388 'direct_dependent_settings': {
389 'defines': [
390 '<@(nacl_defines)',
391 ],
392 },
393 }, 365 },
394 { 366 {
395 'target_name': 'nacl_switches_win64', 367 'target_name': 'nacl_switches_win64',
396 'type': 'static_library', 368 'type': 'static_library',
397 'sources': [ 369 'sources': [
398 'nacl/common/nacl_switches.cc', 370 'nacl/common/nacl_switches.cc',
399 'nacl/common/nacl_switches.h', 371 'nacl/common/nacl_switches.h',
400 ], 372 ],
401 'include_dirs': [ 373 'include_dirs': [
402 '..', 374 '..',
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 ], 493 ],
522 'include_dirs': [ 494 'include_dirs': [
523 '..', 495 '..',
524 ], 496 ],
525 'dependencies': [ 497 'dependencies': [
526 '../content/content.gyp:content_common', 498 '../content/content.gyp:content_common',
527 ], 499 ],
528 }, 500 },
529 ] 501 ]
530 } 502 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/nacl/nacl_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698