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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 'build_irt': 0, | 78 'build_irt': 0, |
79 'build_nonsfi_helper': 0, | 79 'build_nonsfi_helper': 0, |
80 'disable_glibc%': 0, | 80 'disable_glibc%': 0, |
81 'disable_bionic%': 1, | 81 'disable_bionic%': 1, |
82 'extra_args': [], | 82 'extra_args': [], |
83 'enable_x86_32': 1, | 83 'enable_x86_32': 1, |
84 'enable_x86_64': 1, | 84 'enable_x86_64': 1, |
85 'enable_arm': 0, | 85 'enable_arm': 0, |
86 'enable_mips': 0, | 86 'enable_mips': 0, |
87 'enable_x86_32_nonsfi': 0, | 87 'enable_x86_32_nonsfi': 0, |
| 88 'enable_arm_nonsfi': 0, |
88 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_x86_glibc', | 89 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_x86_glibc', |
89 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_x86_newlib', | 90 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_x86_newlib', |
90 'tc_lib_dir_newlib32': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32', | 91 'tc_lib_dir_newlib32': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32', |
91 'tc_lib_dir_newlib64': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64', | 92 'tc_lib_dir_newlib64': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64', |
92 'tc_lib_dir_glibc32': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32', | 93 'tc_lib_dir_glibc32': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32', |
93 'tc_lib_dir_glibc64': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64', | 94 'tc_lib_dir_glibc64': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64', |
94 'tc_lib_dir_irt32': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/lib32', | 95 'tc_lib_dir_irt32': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/lib32', |
95 'tc_lib_dir_irt64': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/lib64', | 96 'tc_lib_dir_irt64': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/lib64', |
96 'tc_lib_dir_nonsfi_helper32': '<(SHARED_INTERMEDIATE_DIR)/tc_nonsfi_he
lper/lib32', | 97 'tc_lib_dir_nonsfi_helper32': '<(SHARED_INTERMEDIATE_DIR)/tc_nonsfi_he
lper/lib32', |
97 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', | 98 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 'build_irt': 0, | 135 'build_irt': 0, |
135 'build_nonsfi_helper': 0, | 136 'build_nonsfi_helper': 0, |
136 'disable_glibc%': 1, | 137 'disable_glibc%': 1, |
137 'disable_bionic%': 1, | 138 'disable_bionic%': 1, |
138 'extra_args': [], | 139 'extra_args': [], |
139 'enable_x86_32': 0, | 140 'enable_x86_32': 0, |
140 'enable_x86_64': 0, | 141 'enable_x86_64': 0, |
141 'enable_arm': 1, | 142 'enable_arm': 1, |
142 'enable_mips': 0, | 143 'enable_mips': 0, |
143 'enable_x86_32_nonsfi': 0, | 144 'enable_x86_32_nonsfi': 0, |
| 145 'enable_arm_nonsfi': 0, |
144 'extra_deps': [], | 146 'extra_deps': [], |
145 'extra_deps_newlib_arm': [], | 147 'extra_deps_newlib_arm': [], |
| 148 'extra_deps_newlib_arm_nonsfi': [], |
146 'extra_deps_bionic_arm': [], | 149 'extra_deps_bionic_arm': [], |
147 'native_sources': [], | 150 'native_sources': [], |
148 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_arm_glibc', | 151 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_arm_glibc', |
149 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_arm_newlib', | 152 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_arm_newlib', |
150 'tc_lib_dir_bionic_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/libarm'
, | 153 'tc_lib_dir_bionic_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/libarm'
, |
151 'tc_lib_dir_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm'
, | 154 'tc_lib_dir_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm'
, |
152 'tc_lib_dir_irt_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libarm', | 155 'tc_lib_dir_irt_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libarm', |
| 156 'tc_lib_dir_nonsfi_helper_arm': '<(SHARED_INTERMEDIATE_DIR)/tc_nonsfi_
helper/libarm', |
153 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', | 157 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', |
154 'tc_include_dir_bionic': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/include
', | 158 'tc_include_dir_bionic': '<(SHARED_INTERMEDIATE_DIR)/tc_bionic/include
', |
155 'include_dirs': ['<(DEPTH)'], | 159 'include_dirs': ['<(DEPTH)'], |
156 'defines': [ | 160 'defines': [ |
157 '<@(nacl_default_defines)', | 161 '<@(nacl_default_defines)', |
158 'NACL_BUILD_ARCH=arm', | 162 'NACL_BUILD_ARCH=arm', |
159 ], | 163 ], |
160 'sources': [], | 164 'sources': [], |
161 'link_flags': [], | 165 'link_flags': [], |
162 }, | 166 }, |
(...skipping 16 matching lines...) Expand all Loading... |
179 'build_irt': 0, | 183 'build_irt': 0, |
180 'build_nonsfi_helper': 0, | 184 'build_nonsfi_helper': 0, |
181 'disable_glibc%': 1, | 185 'disable_glibc%': 1, |
182 'disable_bionic%': 1, | 186 'disable_bionic%': 1, |
183 'extra_args': [], | 187 'extra_args': [], |
184 'enable_x86_32': 0, | 188 'enable_x86_32': 0, |
185 'enable_x86_64': 0, | 189 'enable_x86_64': 0, |
186 'enable_arm': 0, | 190 'enable_arm': 0, |
187 'enable_mips': 1, | 191 'enable_mips': 1, |
188 'enable_x86_32_nonsfi': 0, | 192 'enable_x86_32_nonsfi': 0, |
| 193 'enable_arm_nonsfi': 0, |
189 'extra_deps': [], | 194 'extra_deps': [], |
190 'extra_deps_newlib_mips': [], | 195 'extra_deps_newlib_mips': [], |
191 'native_sources': [], | 196 'native_sources': [], |
192 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_mips_glibc', | 197 'nacl_glibc_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_
x86/nacl_mips_glibc', |
193 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_mips_newlib', | 198 'nacl_newlib_tc_root': '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)
_x86/nacl_mips_newlib', |
194 'tc_lib_dir_newlib_mips': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libmip
s', | 199 'tc_lib_dir_newlib_mips': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libmip
s', |
195 'tc_lib_dir_irt_mips': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libmips', | 200 'tc_lib_dir_irt_mips': '<(SHARED_INTERMEDIATE_DIR)/tc_irt/libmips', |
196 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', | 201 'tc_include_dir_newlib': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include
', |
197 'include_dirs': ['<(DEPTH)'], | 202 'include_dirs': ['<(DEPTH)'], |
198 'defines': [ | 203 'defines': [ |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in
clude_dirs)', | 852 '--include-dirs=>(tc_include_dir_newlib) ^(include_dirs) >(_in
clude_dirs)', |
848 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(gcc_i
rt_compile_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >(
_compile_flags)', | 853 '--compile_flags=-Wno-unused-local-typedefs -Wno-psabi ^(gcc_i
rt_compile_flags) ^(gcc_compile_flags) >(_gcc_compile_flags) ^(compile_flags) >(
_compile_flags)', |
849 '--gomadir', '<(gomadir)', | 854 '--gomadir', '<(gomadir)', |
850 '--defines=^(defines) >(_defines)', | 855 '--defines=^(defines) >(_defines)', |
851 '--link_flags=-B>(tc_lib_dir_irt_arm) ^(gcc_irt_link_flags) ^(
link_flags) >(_link_flags)', | 856 '--link_flags=-B>(tc_lib_dir_irt_arm) ^(gcc_irt_link_flags) ^(
link_flags) >(_link_flags)', |
852 '--source-list=^(source_list_newlib_arm)', | 857 '--source-list=^(source_list_newlib_arm)', |
853 ], | 858 ], |
854 }, | 859 }, |
855 ], | 860 ], |
856 }], | 861 }], |
| 862 # ARM helper library build or PNaCl PPAPI shim for nonsfi |
| 863 # build. |
| 864 ['nlib_target!="" and (build_nonsfi_helper!=0 or (pnacl_native_biased!
=0 and enable_arm_nonsfi==1))', { |
| 865 'variables': { |
| 866 'tool_name': 'nonsfi_helper', |
| 867 'out_newlib_arm_nonsfi%': '<(SHARED_INTERMEDIATE_DIR)/tc_<(tool_na
me)/libarm/>(nlib_target)', |
| 868 'objdir_newlib_arm_nonsfi%': '>(INTERMEDIATE_DIR)/<(tool_name)-arm
-nonsfi/>(_target_name)', |
| 869 }, |
| 870 'actions': [ |
| 871 { |
| 872 'action_name': 'build nonsfi_helper arm nlib', |
| 873 'variables': { |
| 874 'source_list_newlib_arm_nonsfi%': '^|(<(tool_name)-arm-nonsfi.
>(_target_name).source_list.gypcmd ^(_sources) ^(sources))', |
| 875 }, |
| 876 'msvs_cygwin_shell': 0, |
| 877 'description': 'building >(out_newlib_arm_nonsfi)', |
| 878 'inputs': [ |
| 879 '<(DEPTH)/native_client/build/build_nexe.py', |
| 880 '>!@pymod_do_main(scan_sources -I . >(include_dirs) >(_include
_dirs) -S >(sources) >(_sources))', |
| 881 '>@(extra_deps)', |
| 882 '>@(extra_deps_newlib_arm_nonsfi)', |
| 883 '^(source_list_newlib_arm_nonsfi)', |
| 884 '<(SHARED_INTERMEDIATE_DIR)/sdk/<(TOOLCHAIN_OS)_x86/nacl_arm_n
ewlib/stamp.prep', |
| 885 ], |
| 886 'outputs': ['>(out_newlib_arm_nonsfi)'], |
| 887 'action': [ |
| 888 '<@(common_args)', |
| 889 '>@(extra_args)', |
| 890 '--arch', 'arm-nonsfi', |
| 891 '--build', 'newlib_nlib_pnacl', |
| 892 '--name', '>(out_newlib_arm_nonsfi)', |
| 893 '--objdir', '>(objdir_newlib_arm_nonsfi)', |
| 894 '--include-dirs=>(tc_include_dir_newlib) <(DEPTH)/native_clien
t/src/public/linux_syscalls ^(include_dirs) >(_include_dirs)', |
| 895 '--compile_flags=--target=armv7-unknown-nacl-gnueabi --pnacl-b
ias=arm-nonsfi --pnacl-allow-translate --pnacl-allow-native -arch arm-nonsfi -mf
loat-abi=hard ^(compile_flags) >(_compile_flags) ^(pnacl_compile_flags) >(_pnacl
_compile_flags)', |
| 896 '--gomadir', '<(gomadir)', |
| 897 '--defines=^(defines) >(_defines)', |
| 898 '--link_flags=-B>(tc_lib_dir_nonsfi_helper_arm) ^(link_flags)
>(_link_flags)', |
| 899 '--source-list=^(source_list_newlib_arm_nonsfi)', |
| 900 ], |
| 901 }, |
| 902 ], |
| 903 }], |
857 ], # end target_conditions for arm newlib (nexe/nlib) | 904 ], # end target_conditions for arm newlib (nexe/nlib) |
858 }, | 905 }, |
859 }], # end target_arch = arm | 906 }], # end target_arch = arm |
860 ['target_arch=="mipsel"', { | 907 ['target_arch=="mipsel"', { |
861 'target_defaults': { | 908 'target_defaults': { |
862 'target_conditions': [ | 909 'target_conditions': [ |
863 # mips newlib nexe action | 910 # mips newlib nexe action |
864 ['nexe_target!="" and build_newlib!=0', { | 911 ['nexe_target!="" and build_newlib!=0', { |
865 'variables': { | 912 'variables': { |
866 'tool_name': 'newlib', | 913 'tool_name': 'newlib', |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 'target_conditions': [ | 1385 'target_conditions': [ |
1339 # pnacl actions for building pexes and translating them | 1386 # pnacl actions for building pexes and translating them |
1340 ['nexe_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0 ' | 1387 ['nexe_target!="" and disable_pnacl==0 and build_pnacl_newlib!=0 ' |
1341 'and pnacl_native_biased==0', { | 1388 'and pnacl_native_biased==0', { |
1342 'variables': { | 1389 'variables': { |
1343 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl
_newlib_x32.nexe', | 1390 'out_pnacl_newlib_x86_32_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl
_newlib_x32.nexe', |
1344 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl
_newlib_x64.nexe', | 1391 'out_pnacl_newlib_x86_64_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl
_newlib_x64.nexe', |
1345 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_ne
wlib_arm.nexe', | 1392 'out_pnacl_newlib_arm_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_ne
wlib_arm.nexe', |
1346 'out_pnacl_newlib_mips_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n
ewlib_mips32.nexe', | 1393 'out_pnacl_newlib_mips_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl_n
ewlib_mips32.nexe', |
1347 'out_pnacl_newlib_x86_32_nonsfi_nexe%': '<(PRODUCT_DIR)/>(nexe_target
)_pnacl_newlib_x32_nonsfi.nexe', | 1394 'out_pnacl_newlib_x86_32_nonsfi_nexe%': '<(PRODUCT_DIR)/>(nexe_target
)_pnacl_newlib_x32_nonsfi.nexe', |
| 1395 'out_pnacl_newlib_arm_nonsfi_nexe%': '<(PRODUCT_DIR)/>(nexe_target)_p
nacl_newlib_arm_nonsfi.nexe', |
1348 'tool_name': 'pnacl_newlib', | 1396 'tool_name': 'pnacl_newlib', |
1349 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', | 1397 'inst_dir': '<(SHARED_INTERMEDIATE_DIR)/tc_pnacl_newlib', |
1350 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', | 1398 'out_pnacl_newlib%': '<(PRODUCT_DIR)/>(nexe_target)_newlib.pexe', |
1351 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_n
ame)', | 1399 'objdir_pnacl_newlib%': '>(INTERMEDIATE_DIR)/<(tool_name)/>(_target_n
ame)', |
1352 'link_flags': [ | 1400 'link_flags': [ |
1353 '-O3', | 1401 '-O3', |
1354 ], | 1402 ], |
1355 'translate_flags': [], | 1403 'translate_flags': [], |
1356 }, | 1404 }, |
1357 'actions': [ | 1405 'actions': [ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 'action' : [ | 1518 'action' : [ |
1471 '<@(common_args)', | 1519 '<@(common_args)', |
1472 '--arch', 'arm', | 1520 '--arch', 'arm', |
1473 '--build', 'newlib_translate', | 1521 '--build', 'newlib_translate', |
1474 '--name', '>(out_pnacl_newlib_arm_nexe)', | 1522 '--name', '>(out_pnacl_newlib_arm_nexe)', |
1475 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_
lib_dir_pnacl_translate)/lib-arm', | 1523 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_
lib_dir_pnacl_translate)/lib-arm', |
1476 '>(out_pnacl_newlib)', | 1524 '>(out_pnacl_newlib)', |
1477 ], | 1525 ], |
1478 }], | 1526 }], |
1479 }], | 1527 }], |
| 1528 [ 'enable_arm_nonsfi!=0 and translate_pexe_with_build!=0', { |
| 1529 'actions': [{ |
| 1530 'action_name': 'translate newlib pexe to ARM-nonsfi nexe', |
| 1531 'msvs_cygwin_shell': 0, |
| 1532 'description': 'translating >(out_pnacl_newlib_arm_nonsfi_nexe)', |
| 1533 'inputs': [ |
| 1534 # Having this in the input somehow causes devenv warnings |
| 1535 # when building pnacl browser tests. |
| 1536 # '<(DEPTH)/native_client/build/build_nexe.py', |
| 1537 '>(out_pnacl_newlib)', |
| 1538 ], |
| 1539 'outputs': [ '>(out_pnacl_newlib_arm_nonsfi_nexe)' ], |
| 1540 'action' : [ |
| 1541 '<@(common_args)', |
| 1542 '--arch', 'arm-nonsfi', |
| 1543 '--build', 'newlib_translate', |
| 1544 '--name', '>(out_pnacl_newlib_arm_nonsfi_nexe)', |
| 1545 '--link_flags=^(translate_flags) >(translate_flags) -Wl,-L>(tc_
lib_dir_pnacl_translate)/lib-arm-nonsfi', |
| 1546 '>(out_pnacl_newlib)', |
| 1547 ], |
| 1548 }], |
| 1549 }], |
1480 [ 'enable_mips!=0 and translate_pexe_with_build!=0', { | 1550 [ 'enable_mips!=0 and translate_pexe_with_build!=0', { |
1481 'actions': [{ | 1551 'actions': [{ |
1482 'action_name': 'translate newlib pexe to MIPS nexe', | 1552 'action_name': 'translate newlib pexe to MIPS nexe', |
1483 'msvs_cygwin_shell': 0, | 1553 'msvs_cygwin_shell': 0, |
1484 'description': 'translating >(out_pnacl_newlib_mips_nexe)', | 1554 'description': 'translating >(out_pnacl_newlib_mips_nexe)', |
1485 'inputs': [ | 1555 'inputs': [ |
1486 # Having this in the input somehow causes devenv warnings | 1556 # Having this in the input somehow causes devenv warnings |
1487 # when building pnacl browser tests. | 1557 # when building pnacl browser tests. |
1488 # '<(DEPTH)/native_client/build/build_nexe.py', | 1558 # '<(DEPTH)/native_client/build/build_nexe.py', |
1489 '>(out_pnacl_newlib)', | 1559 '>(out_pnacl_newlib)', |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1725 ], | 1795 ], |
1726 }, | 1796 }, |
1727 ], | 1797 ], |
1728 }], | 1798 }], |
1729 ], | 1799 ], |
1730 }], # end MIPS | 1800 }], # end MIPS |
1731 # end pnacl actions for building ABI-biased native libraries | 1801 # end pnacl actions for building ABI-biased native libraries |
1732 ], # end conditions for pnacl biased nlib | 1802 ], # end conditions for pnacl biased nlib |
1733 }, | 1803 }, |
1734 } | 1804 } |
OLD | NEW |