Chromium Code Reviews| 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 'variables': { | 7 'variables': { |
| 8 # Enable -Werror by default, but put it in a variable so it can | 8 # Enable -Werror by default, but put it in a variable so it can |
| 9 # be optionally disabled. | 9 # be optionally disabled. |
| 10 'werror%': '-Werror', | 10 'werror%': '-Werror', |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 328 }, | 328 }, |
| 329 'msvs_cygwin_shell': 0, | 329 'msvs_cygwin_shell': 0, |
| 330 'description': 'building >(out_newlib64)', | 330 'description': 'building >(out_newlib64)', |
| 331 'inputs': [ | 331 'inputs': [ |
| 332 '<(DEPTH)/native_client/build/build_nexe.py', | 332 '<(DEPTH)/native_client/build/build_nexe.py', |
| 333 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', | 333 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 334 '>@(extra_deps)', | 334 '>@(extra_deps)', |
| 335 '>@(extra_deps_newlib64)', | 335 '>@(extra_deps_newlib64)', |
| 336 '^(source_list_newlib64)', | 336 '^(source_list_newlib64)', |
| 337 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s tamp.prep', | 337 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s tamp.prep', |
| 338 '<(PRODUCT_DIR)/tls_edit', | |
|
noelallen1
2014/02/10 21:38:37
does this need to be tls_edit.exe on Windows?
| |
| 338 ], | 339 ], |
| 339 'outputs': ['>(out_newlib64)'], | 340 'outputs': ['>(out_newlib64)'], |
| 340 'action': [ | 341 'action': [ |
| 341 'python', | 342 'python', |
| 342 '<(DEPTH)/native_client/build/build_nexe.py', | 343 '<(DEPTH)/native_client/build/build_nexe.py', |
| 343 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 344 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 344 '>@(extra_args)', | 345 '>@(extra_args)', |
| 345 '--arch', 'x86-64', | 346 '--arch', 'x86-64', |
| 346 '--build', 'newlib_nexe_pnacl', | 347 '--build', 'newlib_nexe_pnacl', |
| 347 '--root', '<(DEPTH)', | 348 '--root', '<(DEPTH)', |
| 348 '--name', '>(out_newlib64)', | 349 '--name', '>(out_newlib64)', |
| 349 '--objdir', '>(objdir_newlib64)', | 350 '--objdir', '>(objdir_newlib64)', |
| 350 '--config-name', '<(CONFIGURATION_NAME)', | 351 '--config-name', '<(CONFIGURATION_NAME)', |
| 351 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)', | 352 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)', |
| 352 '--compile_flags=--target=x86_64-nacl -stdlib=libstdc++ ^(com pile_flags) >(_compile_flags) -gline-tables-only ^(pnacl_compile_flags) >(_pnacl _compile_flags)', | 353 '--compile_flags=--target=x86_64-nacl -stdlib=libstdc++ ^(com pile_flags) >(_compile_flags) -gline-tables-only ^(pnacl_compile_flags) >(_pnacl _compile_flags)', |
| 353 '--gomadir', '<(gomadir)', | 354 '--gomadir', '<(gomadir)', |
| 354 '--defines=^(defines) >(_defines)', | 355 '--defines=^(defines) >(_defines)', |
| 355 '--link_flags=--target=x86_64-nacl -stdlib=libstdc++ -arch x8 6-64 --pnacl-allow-translate --pnacl-allow-native -Wt,-mtls-use-call -Wn,-Trodat a-segment=<(NACL_IRT_DATA_START) -Wn,-Ttext-segment=<(NACL_IRT_TEXT_START) -B>(t c_lib_dir_irt64) ^(link_flags) >(_link_flags)', | 356 '--link_flags=--target=x86_64-nacl -stdlib=libstdc++ -arch x8 6-64 --pnacl-allow-translate --pnacl-allow-native -Wt,-mtls-use-call -Wn,-Trodat a-segment=<(NACL_IRT_DATA_START) -Wn,-Ttext-segment=<(NACL_IRT_TEXT_START) -B>(t c_lib_dir_irt64) ^(link_flags) >(_link_flags)', |
| 356 '--source-list=^(source_list_newlib64)', | 357 '--source-list=^(source_list_newlib64)', |
| 358 '--tls-edit=<(PRODUCT_DIR)/tls_edit', | |
| 357 ], | 359 ], |
| 358 }, | 360 }, |
| 359 ], | 361 ], |
| 360 }], | 362 }], |
| 361 # x86-64 IRT library action | 363 # x86-64 IRT library action |
| 362 ['nlib_target!="" and build_irt!=0 and enable_x86_64!=0', { | 364 ['nlib_target!="" and build_irt!=0 and enable_x86_64!=0', { |
| 363 'variables': { | 365 'variables': { |
| 364 'tool_name': 'irt', | 366 'tool_name': 'irt', |
| 365 'objdir_newlib64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_ target_name)', | 367 'objdir_newlib64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_ target_name)', |
| 366 'out_newlib64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib 64/>(nlib_target)', | 368 'out_newlib64%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib 64/>(nlib_target)', |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 506 }, | 508 }, |
| 507 'msvs_cygwin_shell': 0, | 509 'msvs_cygwin_shell': 0, |
| 508 'description': 'building >(out_newlib32)', | 510 'description': 'building >(out_newlib32)', |
| 509 'inputs': [ | 511 'inputs': [ |
| 510 '<(DEPTH)/native_client/build/build_nexe.py', | 512 '<(DEPTH)/native_client/build/build_nexe.py', |
| 511 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', | 513 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 512 '>@(extra_deps)', | 514 '>@(extra_deps)', |
| 513 '>@(extra_deps_newlib32)', | 515 '>@(extra_deps_newlib32)', |
| 514 '^(source_list_newlib32)', | 516 '^(source_list_newlib32)', |
| 515 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s tamp.prep', | 517 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_x86_newlib/s tamp.prep', |
| 518 '<(PRODUCT_DIR)/tls_edit', | |
| 516 ], | 519 ], |
| 517 'outputs': ['>(out_newlib32)'], | 520 'outputs': ['>(out_newlib32)'], |
| 518 'action': [ | 521 'action': [ |
| 519 'python', | 522 'python', |
| 520 '<(DEPTH)/native_client/build/build_nexe.py', | 523 '<(DEPTH)/native_client/build/build_nexe.py', |
| 521 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 524 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 522 '>@(extra_args)', | 525 '>@(extra_args)', |
| 523 '--arch', 'x86-32', | 526 '--arch', 'x86-32', |
| 524 '--build', 'newlib_nexe', | 527 '--build', 'newlib_nexe', |
| 525 '--root', '<(DEPTH)', | 528 '--root', '<(DEPTH)', |
| 526 '--name', '>(out_newlib32)', | 529 '--name', '>(out_newlib32)', |
| 527 '--objdir', '>(objdir_newlib32)', | 530 '--objdir', '>(objdir_newlib32)', |
| 528 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)', | 531 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_i nclude_dirs)', |
| 529 '--compile_flags=-m32 ^(newlib_tls_flags) ^(gcc_compile_flags ) >(_gcc_compile_flags) ^(compile_flags) >(_compile_flags)', | 532 '--compile_flags=-m32 ^(newlib_tls_flags) ^(gcc_compile_flags ) >(_gcc_compile_flags) ^(compile_flags) >(_compile_flags)', |
| 530 '--gomadir', '<(gomadir)', | 533 '--gomadir', '<(gomadir)', |
| 531 '--defines=^(defines) >(_defines)', | 534 '--defines=^(defines) >(_defines)', |
| 532 '--link_flags=-m32 -B>(tc_lib_dir_irt32) -Wl,-Trodata-segment =<(NACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) ^(link_flags) >(_link_flags)', | 535 '--link_flags=-m32 -B>(tc_lib_dir_irt32) -Wl,-Trodata-segment =<(NACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) ^(link_flags) >(_link_flags)', |
| 533 '--source-list=^(source_list_newlib32)', | 536 '--source-list=^(source_list_newlib32)', |
| 537 '--tls-edit=<(PRODUCT_DIR)/tls_edit', | |
| 534 ], | 538 ], |
| 535 }, | 539 }, |
| 536 ], | 540 ], |
| 537 }], | 541 }], |
| 538 # x86-32 IRT library build | 542 # x86-32 IRT library build |
| 539 ['nlib_target!="" and build_irt!=0 and enable_x86_32!=0', { | 543 ['nlib_target!="" and build_irt!=0 and enable_x86_32!=0', { |
| 540 'variables': { | 544 'variables': { |
| 541 'tool_name': 'irt', | 545 'tool_name': 'irt', |
| 542 'out_newlib32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib 32/>(nlib_target)', | 546 'out_newlib32%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib 32/>(nlib_target)', |
| 543 'objdir_newlib32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_ target_name)', | 547 'objdir_newlib32%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-32/>(_ target_name)', |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 688 }, | 692 }, |
| 689 'msvs_cygwin_shell': 0, | 693 'msvs_cygwin_shell': 0, |
| 690 'description': 'building >(out_newlib_arm)', | 694 'description': 'building >(out_newlib_arm)', |
| 691 'inputs': [ | 695 'inputs': [ |
| 692 '<(DEPTH)/native_client/build/build_nexe.py', | 696 '<(DEPTH)/native_client/build/build_nexe.py', |
| 693 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources) >(nat ive_sources))', | 697 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources) >(nat ive_sources))', |
| 694 '>@(extra_deps)', | 698 '>@(extra_deps)', |
| 695 '>@(extra_deps_newlib_arm)', | 699 '>@(extra_deps_newlib_arm)', |
| 696 '^(source_list_newlib_arm)', | 700 '^(source_list_newlib_arm)', |
| 697 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_arm_newlib/st amp.prep', | 701 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_arm_newlib/st amp.prep', |
| 702 '<(PRODUCT_DIR)/tls_edit', | |
| 698 ], | 703 ], |
| 699 'outputs': ['>(out_newlib_arm)'], | 704 'outputs': ['>(out_newlib_arm)'], |
| 700 'action': [ | 705 'action': [ |
| 701 'python', | 706 'python', |
| 702 '<(DEPTH)/native_client/build/build_nexe.py', | 707 '<(DEPTH)/native_client/build/build_nexe.py', |
| 703 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 708 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 704 '>@(extra_args)', | 709 '>@(extra_args)', |
| 705 '--arch', 'arm', | 710 '--arch', 'arm', |
| 706 '--build', 'newlib_nexe', | 711 '--build', 'newlib_nexe', |
| 707 '--root', '<(DEPTH)', | 712 '--root', '<(DEPTH)', |
| 708 '--name', '>(out_newlib_arm)', | 713 '--name', '>(out_newlib_arm)', |
| 709 '--objdir', '>(objdir_newlib_arm)', | 714 '--objdir', '>(objdir_newlib_arm)', |
| 710 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', | 715 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', |
| 711 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(newli b_tls_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >(_comp ile_flags)', | 716 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(newli b_tls_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >(_comp ile_flags)', |
| 712 '--gomadir', '<(gomadir)', | 717 '--gomadir', '<(gomadir)', |
| 713 '--defines=^(defines) >(_defines)', | 718 '--defines=^(defines) >(_defines)', |
| 714 '--link_flags=-B>(tc_lib_dir_irt_arm) -Wl,-Trodata-segment=<(N ACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) ^(link_flags) >(_l ink_flags)', | 719 '--link_flags=-B>(tc_lib_dir_irt_arm) -Wl,-Trodata-segment=<(N ACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) ^(link_flags) >(_l ink_flags)', |
| 715 '--source-list=^(source_list_newlib_arm)', | 720 '--source-list=^(source_list_newlib_arm)', |
| 721 '--tls-edit=<(PRODUCT_DIR)/tls_edit', | |
| 716 ], | 722 ], |
| 717 }, | 723 }, |
| 718 ], | 724 ], |
| 719 }], | 725 }], |
| 720 # arm IRT library action | 726 # arm IRT library action |
| 721 ['nlib_target!="" and build_irt!=0', { | 727 ['nlib_target!="" and build_irt!=0', { |
| 722 'variables': { | 728 'variables': { |
| 723 'tool_name': 'irt', | 729 'tool_name': 'irt', |
| 724 'out_newlib_arm%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib arm/>(nlib_target)', | 730 'out_newlib_arm%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/lib arm/>(nlib_target)', |
| 725 'objdir_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_tar get_name)', | 731 'objdir_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_tar get_name)', |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 870 }, | 876 }, |
| 871 'msvs_cygwin_shell': 0, | 877 'msvs_cygwin_shell': 0, |
| 872 'description': 'building >(out_newlib_mips)', | 878 'description': 'building >(out_newlib_mips)', |
| 873 'inputs': [ | 879 'inputs': [ |
| 874 '<(DEPTH)/native_client/build/build_nexe.py', | 880 '<(DEPTH)/native_client/build/build_nexe.py', |
| 875 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', | 881 '>!@pymod_do_main(>(get_sources) >(sources) >(_sources))', |
| 876 '>@(extra_deps)', | 882 '>@(extra_deps)', |
| 877 '>@(extra_deps_newlib_mips)', | 883 '>@(extra_deps_newlib_mips)', |
| 878 '^(source_list_newlib_mips)', | 884 '^(source_list_newlib_mips)', |
| 879 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_pnacl/stamp.p rep', | 885 '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/<(OS)_pnacl/stamp.p rep', |
| 886 '<(PRODUCT_DIR)/tls_edit', | |
| 880 ], | 887 ], |
| 881 'outputs': ['>(out_newlib_mips)'], | 888 'outputs': ['>(out_newlib_mips)'], |
| 882 'action': [ | 889 'action': [ |
| 883 'python', | 890 'python', |
| 884 '<(DEPTH)/native_client/build/build_nexe.py', | 891 '<(DEPTH)/native_client/build/build_nexe.py', |
| 885 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', | 892 '-t', '<(SHARED_INTERMEDIATE_DIR)/sdk/toolchain/', |
| 886 '>@(extra_args)', | 893 '>@(extra_args)', |
| 887 '--arch', 'mips', | 894 '--arch', 'mips', |
| 888 '--build', 'newlib_nexe', | 895 '--build', 'newlib_nexe', |
| 889 '--root', '<(DEPTH)', | 896 '--root', '<(DEPTH)', |
| 890 '--name', '>(out_newlib_mips)', | 897 '--name', '>(out_newlib_mips)', |
| 891 '--objdir', '>(objdir_newlib_mips)', | 898 '--objdir', '>(objdir_newlib_mips)', |
| 892 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', | 899 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in clude_dirs)', |
| 893 '--compile_flags=-stdlib=libstdc++ ^(compile_flags) >(_compile _flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', | 900 '--compile_flags=-stdlib=libstdc++ ^(compile_flags) >(_compile _flags) ^(pnacl_compile_flags) >(_pnacl_compile_flags)', |
| 894 '--gomadir', '<(gomadir)', | 901 '--gomadir', '<(gomadir)', |
| 895 '--defines=^(defines) >(_defines)', | 902 '--defines=^(defines) >(_defines)', |
| 896 '--link_flags=-arch mips -stdlib=libstdc++ --pnacl-allow-trans late --pnacl-allow-native -Wt,-mtls-use-call --pnacl-disable-abi-check -Wl,-Trod ata-segment=<(NACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) -B> (tc_lib_dir_irt_mips) ^(link_flags) >(_link_flags)', | 903 '--link_flags=-arch mips -stdlib=libstdc++ --pnacl-allow-trans late --pnacl-allow-native -Wt,-mtls-use-call --pnacl-disable-abi-check -Wl,-Trod ata-segment=<(NACL_IRT_DATA_START) -Wl,-Ttext-segment=<(NACL_IRT_TEXT_START) -B> (tc_lib_dir_irt_mips) ^(link_flags) >(_link_flags)', |
| 897 '--source-list=^(source_list_newlib_mips)', | 904 '--source-list=^(source_list_newlib_mips)', |
| 905 '--tls-edit=<(PRODUCT_DIR)/tls_edit', | |
| 898 ], | 906 ], |
| 899 }, | 907 }, |
| 900 ], | 908 ], |
| 901 }], | 909 }], |
| 902 # mips IRT library action | 910 # mips IRT library action |
| 903 ['nlib_target!="" and build_irt!=0', { | 911 ['nlib_target!="" and build_irt!=0', { |
| 904 'variables': { | 912 'variables': { |
| 905 'tool_name': 'irt', | 913 'tool_name': 'irt', |
| 906 'out_newlib_mips%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/li bmips/>(nlib_target)', | 914 'out_newlib_mips%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/li bmips/>(nlib_target)', |
| 907 'objdir_newlib_mips%': '>(INTERMEDIATE_DIR)/<(tool_name)-mips/>(_t arget_name)', | 915 'objdir_newlib_mips%': '>(INTERMEDIATE_DIR)/<(tool_name)-mips/>(_t arget_name)', |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1599 }], # end ia32 | 1607 }], # end ia32 |
| 1600 ], # end ia32 or x64 | 1608 ], # end ia32 or x64 |
| 1601 # TODO(jvoung): implement MIPS clause. | 1609 # TODO(jvoung): implement MIPS clause. |
| 1602 # Do they want the IRT ABI to be biased toward --target=mipsel-...-nacl | 1610 # Do they want the IRT ABI to be biased toward --target=mipsel-...-nacl |
| 1603 # or do they want it to be le32 along with -expand-byval, etc. | 1611 # or do they want it to be le32 along with -expand-byval, etc. |
| 1604 # (then the shim isn't necessary)? | 1612 # (then the shim isn't necessary)? |
| 1605 }], # end pnacl actions for building ABI-biased native libraries | 1613 }], # end pnacl actions for building ABI-biased native libraries |
| 1606 ], # end conditions for pnacl biased nlib | 1614 ], # end conditions for pnacl biased nlib |
| 1607 }, | 1615 }, |
| 1608 } | 1616 } |
| OLD | NEW |