| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 'include_dirs': [], | 144 'include_dirs': [], |
| 145 'variables': { | 145 'variables': { |
| 146 'nexe_target': '', | 146 'nexe_target': '', |
| 147 'nlib_target': '', | 147 'nlib_target': '', |
| 148 'nso_target': '', | 148 'nso_target': '', |
| 149 'build_bionic': 0, | 149 'build_bionic': 0, |
| 150 'build_newlib': 0, | 150 'build_newlib': 0, |
| 151 'build_glibc': 0, | 151 'build_glibc': 0, |
| 152 'build_irt': 0, | 152 'build_irt': 0, |
| 153 'build_nonsfi_helper': 0, | 153 'build_nonsfi_helper': 0, |
| 154 'disable_glibc%': 1, | 154 'disable_glibc%': 0, |
| 155 'disable_bionic%': 1, | 155 'disable_bionic%': 1, |
| 156 'extra_args': [], | 156 'extra_args': [], |
| 157 'enable_x86_32': 0, | 157 'enable_x86_32': 0, |
| 158 'enable_x86_64': 0, | 158 'enable_x86_64': 0, |
| 159 'enable_arm': 1, | 159 'enable_arm': 1, |
| 160 'enable_mips': 0, | 160 'enable_mips': 0, |
| 161 'enable_x86_32_nonsfi': 0, | 161 'enable_x86_32_nonsfi': 0, |
| 162 'enable_arm_nonsfi': 0, | 162 'enable_arm_nonsfi': 0, |
| 163 'extra_deps': [], | 163 'extra_deps': [], |
| 164 'extra_deps_newlib_arm': [], | 164 'extra_deps_newlib_arm': [], |
| 165 'extra_deps_newlib_arm_nonsfi': [], | 165 'extra_deps_newlib_arm_nonsfi': [], |
| 166 'extra_deps_bionic_arm': [], | 166 'extra_deps_bionic_arm': [], |
| 167 'native_sources': [], | 167 'native_sources': [], |
| 168 'nacl_glibc_tc_root': '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_OS
)_x86/nacl_arm_glibc', | 168 'nacl_glibc_tc_root': '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_OS
)_x86/nacl_arm_glibc', |
| 169 'nacl_newlib_tc_root': '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_O
S)_x86/nacl_arm_newlib', | 169 'nacl_newlib_tc_root': '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_O
S)_x86/nacl_arm_newlib', |
| 170 'tc_lib_dir_bionic_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/libarm'
, | 170 'tc_lib_dir_bionic_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/libarm'
, |
| 171 'tc_lib_dir_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm'
, | 171 'tc_lib_dir_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm'
, |
| 172 'tc_lib_dir_glibc_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/libarm', |
| 172 'tc_lib_dir_irt_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libarm', | 173 'tc_lib_dir_irt_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libarm', |
| 173 'tc_lib_dir_nonsfi_helper_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_nonsfi_
helper/libarm', | 174 'tc_lib_dir_nonsfi_helper_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_nonsfi_
helper/libarm', |
| 174 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', | 175 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', |
| 176 'tc_include_dir_glibc': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/include', |
| 175 'tc_include_dir_bionic': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/include
', | 177 'tc_include_dir_bionic': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/include
', |
| 176 'include_dirs': ['<(DEPTH)'], | 178 'include_dirs': ['<(DEPTH)'], |
| 177 'defines': [ | 179 'defines': [ |
| 178 '<@(nacl_default_defines)', | 180 '<@(nacl_default_defines)', |
| 179 'NACL_BUILD_ARCH=arm', | 181 'NACL_BUILD_ARCH=arm', |
| 180 ], | 182 ], |
| 181 'sources': [], | 183 'sources': [], |
| 182 'link_flags': [], | 184 'link_flags': [], |
| 183 }, | 185 }, |
| 184 }, | 186 }, |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 ], | 672 ], |
| 671 }, | 673 }, |
| 672 ], | 674 ], |
| 673 }], | 675 }], |
| 674 ], | 676 ], |
| 675 }, | 677 }, |
| 676 }], # end x86-32 Non-SFI helper nexe / library actions. | 678 }], # end x86-32 Non-SFI helper nexe / library actions. |
| 677 ['target_arch=="arm"', { | 679 ['target_arch=="arm"', { |
| 678 'target_defaults': { | 680 'target_defaults': { |
| 679 'target_conditions': [ | 681 'target_conditions': [ |
| 682 # arm glibc nexe action |
| 683 ['nexe_target!="" and build_glibc!=0', { |
| 684 'variables': { |
| 685 'tool_name': 'glibc', |
| 686 'out_glibc_arm%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_arm.nexe', |
| 687 'objdir_glibc_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_tar
get_name)', |
| 688 }, |
| 689 'actions': [ |
| 690 { |
| 691 'action_name': 'build glibc arm nexe', |
| 692 'variables': { |
| 693 'source_list_glibc_arm%': '^|(<(tool_name)-arm.>(_target_name)
.source_list.gypcmd ^(_sources) ^(sources) ^(native_sources))', |
| 694 }, |
| 695 'msvs_cygwin_shell': 0, |
| 696 'description': 'building >(out_glibc_arm)', |
| 697 'inputs': [ |
| 698 '<@(common_inputs)', |
| 699 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ
e_dirs) -S >(sources) >(_sources) >(native_sources))', |
| 700 '>@(extra_deps)', |
| 701 '^(source_list_glibc_arm)', |
| 702 '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_OS)_x86/nacl_ar
m_glibc/nacl_arm_glibc.json', |
| 703 ], |
| 704 'outputs': ['>(out_glibc_arm)'], |
| 705 'action': [ |
| 706 '<@(common_args)', |
| 707 '>@(extra_args)', |
| 708 '--arch', 'arm', |
| 709 '--build', 'glibc_nexe', |
| 710 '--name', '>(out_glibc_arm)', |
| 711 '--objdir', '>(objdir_glibc_arm)', |
| 712 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_inc
lude_dirs)', |
| 713 '--compile_flags=<(arm_compile_flags) ^(gcc_compile_flags) >(_
gcc_compile_flags) ^(compile_flags) >(_compile_flags)', |
| 714 '--gomadir', '<(gomadir)', |
| 715 '--defines=^(defines) >(_defines)', |
| 716 '--link_flags=-B>(tc_lib_dir_glibc_arm) -L>(tc_lib_dir_glibc_a
rm) ^(link_flags) >(_link_flags)', |
| 717 '--source-list=^(source_list_glibc_arm)', |
| 718 ], |
| 719 }, |
| 720 ], |
| 721 }], |
| 722 # arm glibc library action |
| 723 ['nlib_target!="" and build_glibc!=0', { |
| 724 'variables': { |
| 725 'tool_name': 'glibc', |
| 726 'out_glibc_arm%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_name)/liba
rm/>(nlib_target)', |
| 727 'objdir_glibc_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_targ
et_name)', |
| 728 }, |
| 729 'actions': [ |
| 730 { |
| 731 'action_name': 'build glibc arm nlib', |
| 732 'variables': { |
| 733 'source_list_glibc_arm%': '^|(<(tool_name)-arm.>(_target_name
).source_list.gypcmd ^(_sources) ^(sources) ^(native_sources))', |
| 734 }, |
| 735 'msvs_cygwin_shell': 0, |
| 736 'description': 'building >(out_glibc_arm)', |
| 737 'inputs': [ |
| 738 '<@(common_inputs)', |
| 739 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_includ
e_dirs) -S >(sources) >(_sources) >(native_sources))', |
| 740 '>@(extra_deps)', |
| 741 '^(source_list_glibc_arm)', |
| 742 '<(DEPTH)/native_client/toolchain/<(TOOLCHAIN_OS)_x86/nacl_ar
m_glibc/nacl_arm_glibc.json', |
| 743 ], |
| 744 'outputs': ['>(out_glibc_arm)'], |
| 745 'action': [ |
| 746 '<@(common_args)', |
| 747 '>@(extra_args)', |
| 748 '--arch', 'arm', |
| 749 '--build', 'glibc_nlib', |
| 750 '--name', '>(out_glibc_arm)', |
| 751 '--objdir', '>(objdir_glibc_arm)', |
| 752 '--include-dirs=>(tc_include_dir_glibc) ^(include_dirs) >(_inc
lude_dirs)', |
| 753 '--compile_flags=<(arm_compile_flags) ^(gcc_compile_flags) >(_
gcc_compile_flags) ^(compile_flags) >(_compile_flags)', |
| 754 '--gomadir', '<(gomadir)', |
| 755 '--defines=^(defines) >(_defines)', |
| 756 '--link_flags=-B>(tc_lib_dir_glibc_arm) ^(link_flags) >(_link_
flags)', |
| 757 '--source-list=^(source_list_glibc_arm)', |
| 758 ], |
| 759 }, |
| 760 ], |
| 761 }], |
| 680 # arm newlib nexe action | 762 # arm newlib nexe action |
| 681 ['nexe_target!="" and build_newlib!=0', { | 763 ['nexe_target!="" and build_newlib!=0', { |
| 682 'variables': { | 764 'variables': { |
| 683 'tool_name': 'newlib', | 765 'tool_name': 'newlib', |
| 684 'out_newlib_arm%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_arm.nexe
', | 766 'out_newlib_arm%': '<(PRODUCT_DIR)/>(nexe_target)_newlib_arm.nexe
', |
| 685 'objdir_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_ta
rget_name)', | 767 'objdir_newlib_arm%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm/>(_ta
rget_name)', |
| 686 }, | 768 }, |
| 687 'actions': [ | 769 'actions': [ |
| 688 { | 770 { |
| 689 'action_name': 'build newlib arm nexe', | 771 'action_name': 'build newlib arm nexe', |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 '--source-list=^(source_list_newlib_mips)', | 1237 '--source-list=^(source_list_newlib_mips)', |
| 1156 ], | 1238 ], |
| 1157 }, | 1239 }, |
| 1158 ], | 1240 ], |
| 1159 }], | 1241 }], |
| 1160 ], # end target_conditions for mips newlib | 1242 ], # end target_conditions for mips newlib |
| 1161 }, | 1243 }, |
| 1162 }], # end target_arch = mips | 1244 }], # end target_arch = mips |
| 1163 ['target_arch=="ia32" or target_arch=="x64"', { | 1245 ['target_arch=="ia32" or target_arch=="x64"', { |
| 1164 'target_defaults': { | 1246 'target_defaults': { |
| 1165 # x86-64 glibc nexe action | |
| 1166 'target_conditions': [ | 1247 'target_conditions': [ |
| 1248 # x86-64 glibc nexe action |
| 1167 ['nexe_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable
_glibc==0', { | 1249 ['nexe_target!="" and build_glibc!=0 and enable_x86_64!=0 and disable
_glibc==0', { |
| 1168 'variables': { | 1250 'variables': { |
| 1169 'tool_name': 'glibc', | 1251 'tool_name': 'glibc', |
| 1170 'out_glibc64%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x64.nexe', | 1252 'out_glibc64%': '<(PRODUCT_DIR)/>(nexe_target)_glibc_x64.nexe', |
| 1171 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t
arget_name)', | 1253 'objdir_glibc64%': '>(INTERMEDIATE_DIR)/<(tool_name)-x86-64/>(_t
arget_name)', |
| 1172 }, | 1254 }, |
| 1173 'actions': [ | 1255 'actions': [ |
| 1174 { | 1256 { |
| 1175 'action_name': 'build glibc x86-64 nexe', | 1257 'action_name': 'build glibc x86-64 nexe', |
| 1176 'variables': { | 1258 'variables': { |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 ], | 1963 ], |
| 1882 }, | 1964 }, |
| 1883 ], | 1965 ], |
| 1884 }], | 1966 }], |
| 1885 ], | 1967 ], |
| 1886 }], # end MIPS | 1968 }], # end MIPS |
| 1887 # end pnacl actions for building ABI-biased native libraries | 1969 # end pnacl actions for building ABI-biased native libraries |
| 1888 ], # end conditions for pnacl biased nlib | 1970 ], # end conditions for pnacl biased nlib |
| 1889 }, | 1971 }, |
| 1890 } | 1972 } |
| OLD | NEW |