OLD | NEW |
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. |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 '<(DEPTH)/native_client/build/build_nexe.py', | 336 '<(DEPTH)/native_client/build/build_nexe.py', |
337 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 337 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
338 '>@(extra_args)', | 338 '>@(extra_args)', |
339 '--arch', 'arm', | 339 '--arch', 'arm', |
340 '--build', 'newlib_nexe', | 340 '--build', 'newlib_nexe', |
341 '--root', '<(DEPTH)', | 341 '--root', '<(DEPTH)', |
342 '--name', '>(out_newlib_arm)', | 342 '--name', '>(out_newlib_arm)', |
343 '--objdir', '>(objdir_newlib_arm)', | 343 '--objdir', '>(objdir_newlib_arm)', |
344 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include
_dirs)', | 344 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include
_dirs)', |
345 '--lib-dirs=>(lib_dirs_newlib_arm) ', | 345 '--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)', | 346 '--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)', | 347 '--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
)', | 348 '--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))', | 349 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour
ces))', |
350 ], | 350 ], |
351 }, | 351 }, |
352 ], | 352 ], |
353 }], | 353 }], |
354 ['nlib_target!="" and build_newlib!=0', { | 354 ['nlib_target!="" and build_newlib!=0', { |
355 'variables': { | 355 'variables': { |
356 'tool_name': 'newlib', | 356 'tool_name': 'newlib', |
(...skipping 19 matching lines...) Expand all Loading... |
376 '<(DEPTH)/native_client/build/build_nexe.py', | 376 '<(DEPTH)/native_client/build/build_nexe.py', |
377 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 377 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
378 '>@(extra_args)', | 378 '>@(extra_args)', |
379 '--arch', 'arm', | 379 '--arch', 'arm', |
380 '--build', 'newlib_nlib', | 380 '--build', 'newlib_nlib', |
381 '--root', '<(DEPTH)', | 381 '--root', '<(DEPTH)', |
382 '--name', '>(out_newlib_arm)', | 382 '--name', '>(out_newlib_arm)', |
383 '--objdir', '>(objdir_newlib_arm)', | 383 '--objdir', '>(objdir_newlib_arm)', |
384 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include
_dirs)', | 384 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include
_dirs)', |
385 '--lib-dirs=>(lib_dirs_newlib_arm) ', | 385 '--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)', | 386 '--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)', | 387 '--defines=^(defines) >(_defines)', |
388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(
link_flags) >(_link_flags)', | 388 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm ^(
link_flags) >(_link_flags)', |
389 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour
ces))', | 389 '--source-list=^|(<(source_list_newlib_arm) ^(_sources) ^(sour
ces))', |
390 ], | 390 ], |
391 }, | 391 }, |
392 ], | 392 ], |
393 }], | 393 }], |
394 ], | 394 ], |
395 }, | 395 }, |
396 }], | 396 }], |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 '-fasynchronous-unwind-tables', | 670 '-fasynchronous-unwind-tables', |
671 ], | 671 ], |
672 'newlib_tls_flags': [ | 672 'newlib_tls_flags': [ |
673 '-mtls-use-call', | 673 '-mtls-use-call', |
674 ], | 674 ], |
675 'pnacl_compile_flags': [ | 675 'pnacl_compile_flags': [ |
676 '-Wno-extra-semi', | 676 '-Wno-extra-semi', |
677 '-Wno-unused-private-field', | 677 '-Wno-unused-private-field', |
678 ], | 678 ], |
679 }, | 679 }, |
| 680 'compile_flags': [ |
| 681 '<(werror)', # See note above about the werror variable. |
| 682 ], |
680 'target_conditions': [ | 683 'target_conditions': [ |
681 ['nexe_target!="" and build_pnacl_newlib!=0', { | 684 ['nexe_target!="" and build_pnacl_newlib!=0', { |
682 'variables': { | 685 'variables': { |
683 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac
l_newlib_x32.nexe', | 686 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac
l_newlib_x32.nexe', |
684 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac
l_newlib_x64.nexe', | 687 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnac
l_newlib_x64.nexe', |
685 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n
ewlib_arm.nexe', | 688 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n
ewlib_arm.nexe', |
686 'tool_name': 'pnacl_newlib', | 689 'tool_name': 'pnacl_newlib', |
687 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', | 690 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', |
688 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', | 691 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', |
689 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_na
me)', | 692 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_na
me)', |
(...skipping 21 matching lines...) Expand all Loading... |
711 '<(DEPTH)/native_client/build/build_nexe.py', | 714 '<(DEPTH)/native_client/build/build_nexe.py', |
712 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 715 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
713 '>@(extra_args)', | 716 '>@(extra_args)', |
714 '--arch', 'pnacl', | 717 '--arch', 'pnacl', |
715 '--build', 'newlib_pexe', | 718 '--build', 'newlib_pexe', |
716 '--root', '<(DEPTH)', | 719 '--root', '<(DEPTH)', |
717 '--name', '>(out_pnacl_newlib)', | 720 '--name', '>(out_pnacl_newlib)', |
718 '--objdir', '>(objdir_pnacl_newlib)', | 721 '--objdir', '>(objdir_pnacl_newlib)', |
719 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir
s)', | 722 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir
s)', |
720 '--lib-dirs=>(lib_dirs_pnacl_newlib)', | 723 '--lib-dirs=>(lib_dirs_pnacl_newlib)', |
721 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(
compile_flags) >(_compile_flags)', | 724 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil
e_flags) >(_pnacl_compile_flags)', |
722 '--defines=^(defines) >(_defines)', | 725 '--defines=^(defines) >(_defines)', |
723 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l
ink_flags) >(_link_flags)', | 726 '--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))', | 727 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source
s))', |
725 ], | 728 ], |
726 }], | 729 }], |
727 'target_conditions': [ | 730 'target_conditions': [ |
728 [ 'enable_x86_32!=0', { | 731 [ 'enable_x86_32!=0', { |
729 'actions': [{ | 732 'actions': [{ |
730 'action_name': 'translate newlib pexe to x86-32 nexe', | 733 'action_name': 'translate newlib pexe to x86-32 nexe', |
731 'msvs_cygwin_shell': 0, | 734 'msvs_cygwin_shell': 0, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 '<(DEPTH)/native_client/build/build_nexe.py', | 825 '<(DEPTH)/native_client/build/build_nexe.py', |
823 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 826 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
824 '>@(extra_args)', | 827 '>@(extra_args)', |
825 '--arch', 'pnacl', | 828 '--arch', 'pnacl', |
826 '--build', 'newlib_plib', | 829 '--build', 'newlib_plib', |
827 '--root', '<(DEPTH)', | 830 '--root', '<(DEPTH)', |
828 '--name', '>(out_pnacl_newlib)', | 831 '--name', '>(out_pnacl_newlib)', |
829 '--objdir', '>(objdir_pnacl_newlib)', | 832 '--objdir', '>(objdir_pnacl_newlib)', |
830 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir
s)', | 833 '--include-dirs=<(inst_dir)/include ^(include_dirs) >(_include_dir
s)', |
831 '--lib-dirs=>(lib_dirs_pnacl_newlib) ', | 834 '--lib-dirs=>(lib_dirs_pnacl_newlib) ', |
832 '--compile_flags=^(pnacl_compile_flags) >(_pnacl_compile_flags) ^(
compile_flags) >(_compile_flags)', | 835 '--compile_flags=^(compile_flags) >(_compile_flags) ^(pnacl_compil
e_flags) >(_pnacl_compile_flags)', |
833 '--defines=^(defines) >(_defines)', | 836 '--defines=^(defines) >(_defines)', |
834 '--link_flags=-B<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib/lib ^(l
ink_flags) >(_link_flags)', | 837 '--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))', | 838 '--source-list=^|(<(source_list_pnacl_newlib) ^(_sources) ^(source
s))', |
836 ], | 839 ], |
837 }, | 840 }, |
838 ], | 841 ], |
839 }], | 842 }], |
840 ], | 843 ], |
841 }, | 844 }, |
842 } | 845 } |
OLD | NEW |