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

Side by Side Diff: build/untrusted.gypi

Issue 11363175: Honor werror variable for untrusted builds. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebase Created 8 years, 1 month 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
« no previous file with comments | « build/standalone_flags.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 # See native_client/Sconstruct for more details. 7 # See native_client/Sconstruct for more details.
8 # Expected address for beginning of data in for the IRT. 8 # Expected address for beginning of data in for the IRT.
9 'NACL_IRT_DATA_START': '0x3ef00000', 9 'NACL_IRT_DATA_START': '0x3ef00000',
10 # Expected address for beginning of code in for the IRT. 10 # Expected address for beginning of code in for the IRT.
11 'NACL_IRT_TEXT_START': '0x0fc00000', 11 'NACL_IRT_TEXT_START': '0x0fc00000',
12 # Default C compiler defines. 12 # Default C compiler defines.
13 'nacl_default_defines': [ 13 'nacl_default_defines': [
14 '__linux__', 14 '__linux__',
15 '__STDC_LIMIT_MACROS=1', 15 '__STDC_LIMIT_MACROS=1',
16 '__STDC_FORMAT_MACROS=1', 16 '__STDC_FORMAT_MACROS=1',
17 '_GNU_SOURCE=1', 17 '_GNU_SOURCE=1',
18 '_BSD_SOURCE=1', 18 '_BSD_SOURCE=1',
19 '_POSIX_C_SOURCE=199506', 19 '_POSIX_C_SOURCE=199506',
20 '_XOPEN_SOURCE=600', 20 '_XOPEN_SOURCE=600',
21 'DYNAMIC_ANNOTATIONS_ENABLED=1', 21 'DYNAMIC_ANNOTATIONS_ENABLED=1',
22 'DYNAMIC_ANNOTATIONS_PREFIX=NACL_', 22 'DYNAMIC_ANNOTATIONS_PREFIX=NACL_',
23 ], 23 ],
24 'nacl_default_compile_flags': [ 24 'nacl_default_compile_flags': [
25 #'-std=gnu99', Added by build_nexe 25 #'-std=gnu99', Added by build_nexe
26 '-O2', 26 '-O2',
27 '-g', 27 '-g',
28 '-Wall', 28 '-Wall',
29 '-Werror',
29 '-fdiagnostics-show-option', 30 '-fdiagnostics-show-option',
30 ], 31 ],
31 }, 32 },
32 'conditions': [ 33 'conditions': [
33 ['target_arch!="arm"', { 34 ['target_arch!="arm"', {
34 'target_defaults': { 35 'target_defaults': {
35 'conditions': [ 36 'conditions': [
36 ['OS=="win"', { 37 ['OS=="win"', {
37 'variables': { 38 'variables': {
38 # NOTE: Python is invoked differently by the Native Client 39 # NOTE: Python is invoked differently by the Native Client
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 '<(DEPTH)/native_client/build/build_nexe.py', 337 '<(DEPTH)/native_client/build/build_nexe.py',
337 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 338 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
338 '>@(extra_args)', 339 '>@(extra_args)',
339 '--arch', 'arm', 340 '--arch', 'arm',
340 '--build', 'newlib_nexe', 341 '--build', 'newlib_nexe',
341 '--root', '<(DEPTH)', 342 '--root', '<(DEPTH)',
342 '--name', '>(out_newlib_arm)', 343 '--name', '>(out_newlib_arm)',
343 '--objdir', '>(objdir_newlib_arm)', 344 '--objdir', '>(objdir_newlib_arm)',
344 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)', 345 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)',
345 '--lib-dirs=>(lib_dirs_newlib_arm) ', 346 '--lib-dirs=>(lib_dirs_newlib_arm) ',
346 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(compile_ flags) >(_compile_flags)', 347 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
347 '--defines=^(defines) >(_defines)', 348 '--defines=^(defines) >(_defines)',
348 '--link_flags=-arch arm --pnacl-allow-translate --pnacl-allow- native -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(link_flags) >(_link_flags )', 349 '--link_flags=-arch arm --pnacl-allow-translate --pnacl-allow- native -B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(link_flags) >(_link_flags )',
349 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))', 350 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))',
350 ], 351 ],
351 }, 352 },
352 ], 353 ],
353 }], 354 }],
354 ['nlib_target!="" and build_newlib!=0', { 355 ['nlib_target!="" and build_newlib!=0', {
355 'variables': { 356 'variables': {
356 'tool_name': 'newlib', 357 'tool_name': 'newlib',
(...skipping 19 matching lines...) Expand all
376 '<(DEPTH)/native_client/build/build_nexe.py', 377 '<(DEPTH)/native_client/build/build_nexe.py',
377 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 378 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
378 '>@(extra_args)', 379 '>@(extra_args)',
379 '--arch', 'arm', 380 '--arch', 'arm',
380 '--build', 'newlib_nlib', 381 '--build', 'newlib_nlib',
381 '--root', '<(DEPTH)', 382 '--root', '<(DEPTH)',
382 '--name', '>(out_newlib_arm)', 383 '--name', '>(out_newlib_arm)',
383 '--objdir', '>(objdir_newlib_arm)', 384 '--objdir', '>(objdir_newlib_arm)',
384 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)', 385 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include _dirs)',
385 '--lib-dirs=>(lib_dirs_newlib_arm) ', 386 '--lib-dirs=>(lib_dirs_newlib_arm) ',
386 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(compile_ flags) >(_compile_flags)', 387 '--compile_flags=--pnacl-frontend-triple=armv7-unknown-nacl-gn ueabi -mfloat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)',
387 '--defines=^(defines) >(_defines)', 388 '--defines=^(defines) >(_defines)',
388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^( link_flags) >(_link_flags)', 389 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^( link_flags) >(_link_flags)',
389 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))', 390 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour ces))',
390 ], 391 ],
391 }, 392 },
392 ], 393 ],
393 }], 394 }],
394 ], 395 ],
395 }, 396 },
396 }], 397 }],
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 '<(DEPTH)/native_client/build/build_nexe.py', 712 '<(DEPTH)/native_client/build/build_nexe.py',
712 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 713 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
713 '>@(extra_args)', 714 '>@(extra_args)',
714 '--arch', 'pnacl', 715 '--arch', 'pnacl',
715 '--build', 'newlib_pexe', 716 '--build', 'newlib_pexe',
716 '--root', '<(DEPTH)', 717 '--root', '<(DEPTH)',
717 '--name', '>(out_pnacl_newlib)', 718 '--name', '>(out_pnacl_newlib)',
718 '--objdir', '>(objdir_pnacl_newlib)', 719 '--objdir', '>(objdir_pnacl_newlib)',
719 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)', 720 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)',
720 '--lib-dirs=>(lib_dirs_pnacl_newlib)', 721 '--lib-dirs=>(lib_dirs_pnacl_newlib)',
721 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^( compile_flags) >(_compile_flags)', 722 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil e_flags) >(_pnacl_compile_flags)',
722 '--defines=^(defines) >(_defines)', 723 '--defines=^(defines) >(_defines)',
723 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)', 724 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)',
724 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))', 725 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))',
725 ], 726 ],
726 }], 727 }],
727 'target_conditions': [ 728 'target_conditions': [
728 [ 'enable_x86_32!=0', { 729 [ 'enable_x86_32!=0', {
729 'actions': [{ 730 'actions': [{
730 'action_name': 'translate newlib pexe to x86-32 nexe', 731 'action_name': 'translate newlib pexe to x86-32 nexe',
731 'msvs_cygwin_shell': 0, 732 'msvs_cygwin_shell': 0,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 '<(DEPTH)/native_client/build/build_nexe.py', 823 '<(DEPTH)/native_client/build/build_nexe.py',
823 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', 824 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/',
824 '>@(extra_args)', 825 '>@(extra_args)',
825 '--arch', 'pnacl', 826 '--arch', 'pnacl',
826 '--build', 'newlib_plib', 827 '--build', 'newlib_plib',
827 '--root', '<(DEPTH)', 828 '--root', '<(DEPTH)',
828 '--name', '>(out_pnacl_newlib)', 829 '--name', '>(out_pnacl_newlib)',
829 '--objdir', '>(objdir_pnacl_newlib)', 830 '--objdir', '>(objdir_pnacl_newlib)',
830 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)', 831 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir s)',
831 '--lib-dirs=>(lib_dirs_pnacl_newlib) ', 832 '--lib-dirs=>(lib_dirs_pnacl_newlib) ',
832 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^( compile_flags) >(_compile_flags)', 833 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil e_flags) >(_pnacl_compile_flags)',
833 '--defines=^(defines) >(_defines)', 834 '--defines=^(defines) >(_defines)',
834 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)', 835 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l ink_flags) >(_link_flags)',
835 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))', 836 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source s))',
836 ], 837 ],
837 }, 838 },
838 ], 839 ],
839 }], 840 }],
840 ], 841 ],
841 }, 842 },
842 } 843 }
OLDNEW
« no previous file with comments | « build/standalone_flags.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698