OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This GYP file defines untrusted (NaCl) targets. All targets in this | 5 # This GYP file defines untrusted (NaCl) targets. All targets in this |
6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid | 6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid |
7 # requiring NaCl sources for building. | 7 # requiring NaCl sources for building. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 '-lppapi', | 91 '-lppapi', |
92 '-pthread', | 92 '-pthread', |
93 ], | 93 ], |
94 'link_flags!': [ | 94 'link_flags!': [ |
95 '-O3', | 95 '-O3', |
96 ], | 96 ], |
97 'translate_flags': [ | 97 'translate_flags': [ |
98 '-O0', | 98 '-O0', |
99 ], | 99 ], |
100 'conditions': [ | 100 'conditions': [ |
101 ['target_arch!="arm"', { | 101 ['target_arch=="ia32" or target_arch=="x64"', { |
102 'extra_deps_newlib64': [ | 102 'extra_deps_newlib64': [ |
103 '>(tc_lib_dir_newlib64)/libppapi_cpp.a', | 103 '>(tc_lib_dir_newlib64)/libppapi_cpp.a', |
104 '>(tc_lib_dir_newlib64)/libppapi.a', | 104 '>(tc_lib_dir_newlib64)/libppapi.a', |
105 ], | 105 ], |
106 'extra_deps_newlib32': [ | 106 'extra_deps_newlib32': [ |
107 '>(tc_lib_dir_newlib32)/libppapi_cpp.a', | 107 '>(tc_lib_dir_newlib32)/libppapi_cpp.a', |
108 '>(tc_lib_dir_newlib32)/libppapi.a', | 108 '>(tc_lib_dir_newlib32)/libppapi.a', |
109 ], | 109 ], |
110 'extra_deps_glibc64': [ | 110 'extra_deps_glibc64': [ |
111 '>(tc_lib_dir_glibc64)/libppapi_cpp.so', | 111 '>(tc_lib_dir_glibc64)/libppapi_cpp.so', |
(...skipping 18 matching lines...) Expand all Loading... | |
130 'sources': [ | 130 'sources': [ |
131 '<@(test_common_source_files)', | 131 '<@(test_common_source_files)', |
132 '<@(test_nacl_source_files)', | 132 '<@(test_nacl_source_files)', |
133 ], | 133 ], |
134 'extra_args': [ | 134 'extra_args': [ |
135 '--strip-all', | 135 '--strip-all', |
136 ], | 136 ], |
137 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', | 137 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', |
138 }, | 138 }, |
139 'conditions': [ | 139 'conditions': [ |
140 ['target_arch!="arm" and disable_glibc==0', { | 140 ['target_arch!="arm" and target_arch!="mipsel" and disable_glibc==0', { |
141 'variables': { | 141 'variables': { |
142 'build_glibc': 1, | 142 'build_glibc': 1, |
143 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which | 143 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which |
144 # doesn't work on Windows. | 144 # doesn't work on Windows. |
145 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', | 145 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', |
146 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', | 146 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', |
147 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', | 147 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', |
148 'nmf_glibc%': '<(PRODUCT_DIR)/>(nexe_target)_glibc.nmf', | 148 'nmf_glibc%': '<(PRODUCT_DIR)/>(nexe_target)_glibc.nmf', |
149 }, | 149 }, |
150 'actions': [ | 150 'actions': [ |
(...skipping 18 matching lines...) Expand all Loading... | |
169 '--stage-dependencies=<(PRODUCT_DIR)', | 169 '--stage-dependencies=<(PRODUCT_DIR)', |
170 ], | 170 ], |
171 }, | 171 }, |
172 ], | 172 ], |
173 }], | 173 }], |
174 # Test PNaCl pre-translated code (pre-translated to save bot time). | 174 # Test PNaCl pre-translated code (pre-translated to save bot time). |
175 # We only care about testing that code generation is correct, | 175 # We only care about testing that code generation is correct, |
176 # and in-browser translation is tested elsewhere. | 176 # and in-browser translation is tested elsewhere. |
177 # NOTE: native_client/build/untrusted.gypi dictates that | 177 # NOTE: native_client/build/untrusted.gypi dictates that |
178 # PNaCl only generate x86-32 and x86-64 on x86 platforms, | 178 # PNaCl only generate x86-32 and x86-64 on x86 platforms, |
179 # or ARM on ARM platforms, not all versions always. | 179 # or ARM on ARM platforms, not all versions always. |
jvoung (off chromium)
2014/02/06 00:39:56
TODO() to be able to build mips tests?
petarj
2014/02/20 00:23:18
Done.
| |
180 # The same goes for the PNaCl shims. So, we have two variations here. | 180 # The same goes for the PNaCl shims. So, we have two variations here. |
181 ['disable_pnacl==0 and target_arch!="arm"', { | 181 ['disable_pnacl==0 and (target_arch=="ia32" or target_arch=="x64")', { |
182 'variables': { | 182 'variables': { |
183 'build_pnacl_newlib': 1, | 183 'build_pnacl_newlib': 1, |
184 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', | 184 'nmf_pnacl%': '<(PRODUCT_DIR)/>(nexe_target)_pnacl.nmf', |
185 }, | 185 }, |
186 # Shim is a dependency for the nexe because we pre-translate. | 186 # Shim is a dependency for the nexe because we pre-translate. |
187 'dependencies': [ | 187 'dependencies': [ |
188 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt _shim.gyp:pnacl_irt_shim', | 188 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt _shim.gyp:pnacl_irt_shim', |
189 ], | 189 ], |
190 'actions': [ | 190 'actions': [ |
191 { | 191 { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 '>@(_inputs)', | 227 '>@(_inputs)', |
228 '--output=>(nmf_pnacl)', | 228 '--output=>(nmf_pnacl)', |
229 ], | 229 ], |
230 }, | 230 }, |
231 ], | 231 ], |
232 }], | 232 }], |
233 ], | 233 ], |
234 }, | 234 }, |
235 ], | 235 ], |
236 } | 236 } |
OLD | NEW |