OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/common_untrusted.gypi', | 10 '../build/common_untrusted.gypi', |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', | 171 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', |
172 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_nacl_n
onsfi', | 172 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_nacl_n
onsfi', |
173 ], | 173 ], |
174 }, | 174 }, |
175 ], | 175 ], |
176 }], | 176 }], |
177 | 177 |
178 ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test=
=1', { | 178 ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test=
=1', { |
179 'targets': [ | 179 'targets': [ |
180 { | 180 { |
181 'target_name': 'nacl_helper_nonsfi_unittests', | 181 'target_name': 'nacl_helper_nonsfi_unittests_main', |
182 'type': 'none', | 182 'type': 'none', |
183 'variables': { | 183 'variables': { |
184 'nacl_untrusted_build': 1, | 184 'nacl_untrusted_build': 1, |
185 'nexe_target': 'nacl_helper_nonsfi_unittests', | 185 'nexe_target': 'nacl_helper_nonsfi_unittests', |
186 # Rename the output binary file to nacl_helper_nonsfi_unittests | 186 # Rename the output binary file to nacl_helper_nonsfi_unittests |
187 # and put it directly under out/{Debug,Release}/, so that this is | 187 # and put it directly under out/{Debug,Release}/, so that this is |
188 # in the standard location, for running on the buildbots. | 188 # in the standard location, for running on the buildbots. |
189 'out_newlib32_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unittests'
, | 189 'out_newlib32_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unittests_
main', |
190 'out_newlib_arm_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unitttes
ts', | 190 'out_newlib_arm_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unitttes
ts_main', |
191 | 191 |
192 'build_glibc': 0, | 192 'build_glibc': 0, |
193 'build_newlib': 0, | 193 'build_newlib': 0, |
194 'build_irt': 0, | 194 'build_irt': 0, |
195 'build_pnacl_newlib': 0, | 195 'build_pnacl_newlib': 0, |
196 'build_nonsfi_helper': 1, | 196 'build_nonsfi_helper': 1, |
197 | 197 |
198 'sources': [ | 198 'sources': [ |
199 'nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc', | 199 'nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc', |
200 'nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc', | 200 'nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc', |
| 201 'nacl/loader/nonsfi/run_all_unittests.cc', |
201 ], | 202 ], |
202 | 203 |
203 'link_flags': [ | 204 'link_flags': [ |
204 '-lbase_nacl_nonsfi', | 205 '-lbase_nacl_nonsfi', |
205 '-lcontent_common_nacl_nonsfi', | 206 '-lcontent_common_nacl_nonsfi', |
206 '-levent_nacl_nonsfi', | 207 '-levent_nacl_nonsfi', |
207 '-lgio', | 208 '-lgio', |
208 '-lgtest_main_nacl', | |
209 '-lgtest_nacl', | 209 '-lgtest_nacl', |
210 '-lnacl_helper_nonsfi_sandbox', | 210 '-lnacl_helper_nonsfi_sandbox', |
211 '-lplatform', | 211 '-lplatform', |
212 '-lsandbox_linux_nacl_nonsfi', | 212 '-lsandbox_linux_nacl_nonsfi', |
213 '-lsandbox_linux_test_utils_nacl_nonsfi', | 213 '-lsandbox_linux_test_utils_nacl_nonsfi', |
| 214 '-ltest_support_base_nacl_nonsfi', |
214 ], | 215 ], |
215 | 216 |
216 'conditions': [ | 217 'conditions': [ |
217 ['target_arch=="ia32" or target_arch=="x64"', { | 218 ['target_arch=="ia32" or target_arch=="x64"', { |
218 'extra_deps_newlib32_nonsfi': [ | 219 'extra_deps_newlib32_nonsfi': [ |
219 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', | 220 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', |
220 '>(tc_lib_dir_nonsfi_helper32)/libcontent_common_nacl_nonsfi.a
', | 221 '>(tc_lib_dir_nonsfi_helper32)/libcontent_common_nacl_nonsfi.a
', |
221 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', | 222 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', |
222 '>(tc_lib_dir_nonsfi_helper32)/libgio.a', | 223 '>(tc_lib_dir_nonsfi_helper32)/libgio.a', |
223 '>(tc_lib_dir_nonsfi_helper32)/libgtest_main_nacl.a', | |
224 '>(tc_lib_dir_nonsfi_helper32)/libgtest_nacl.a', | 224 '>(tc_lib_dir_nonsfi_helper32)/libgtest_nacl.a', |
225 '>(tc_lib_dir_nonsfi_helper32)/libnacl_helper_nonsfi_sandbox.a
', | 225 '>(tc_lib_dir_nonsfi_helper32)/libnacl_helper_nonsfi_sandbox.a
', |
226 '>(tc_lib_dir_nonsfi_helper32)/libplatform.a', | 226 '>(tc_lib_dir_nonsfi_helper32)/libplatform.a', |
227 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_linux_nacl_nonsfi.a'
, | 227 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_linux_nacl_nonsfi.a'
, |
228 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_linux_test_utils_nac
l_nonsfi.a', | 228 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_linux_test_utils_nac
l_nonsfi.a', |
| 229 '>(tc_lib_dir_nonsfi_helper32)/libtest_support_base_nacl_nonsf
i.a', |
229 ], | 230 ], |
230 }], | 231 }], |
231 ['target_arch=="arm"', { | 232 ['target_arch=="arm"', { |
232 'extra_deps_newlib_arm_nonsfi': [ | 233 'extra_deps_newlib_arm_nonsfi': [ |
233 '>(tc_lib_dir_nonsfi_helper_arm)/libbase_nacl_nonsfi.a', | 234 '>(tc_lib_dir_nonsfi_helper_arm)/libbase_nacl_nonsfi.a', |
234 '>(tc_lib_dir_nonsfi_helper_arm)/libcontent_common_nacl_nonsfi
.a', | 235 '>(tc_lib_dir_nonsfi_helper_arm)/libcontent_common_nacl_nonsfi
.a', |
235 '>(tc_lib_dir_nonsfi_helper_arm)/libevent_nacl_nonsfi.a', | 236 '>(tc_lib_dir_nonsfi_helper_arm)/libevent_nacl_nonsfi.a', |
236 '>(tc_lib_dir_nonsfi_helper_arm)/libgio.a', | 237 '>(tc_lib_dir_nonsfi_helper_arm)/libgio.a', |
237 '>(tc_lib_dir_nonsfi_helper_arm)/libgtest_main_nacl.a', | |
238 '>(tc_lib_dir_nonsfi_helper_arm)/libgtest_nacl.a', | 238 '>(tc_lib_dir_nonsfi_helper_arm)/libgtest_nacl.a', |
239 '>(tc_lib_dir_nonsfi_helper_arm)/libnacl_helper_nonsfi_sandbox
.a', | 239 '>(tc_lib_dir_nonsfi_helper_arm)/libnacl_helper_nonsfi_sandbox
.a', |
240 '>(tc_lib_dir_nonsfi_helper_arm)/libplatform.a', | 240 '>(tc_lib_dir_nonsfi_helper_arm)/libplatform.a', |
241 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_linux_nacl_nonsfi.
a', | 241 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_linux_nacl_nonsfi.
a', |
242 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_linux_test_utils_n
acl_nonsfi.a', | 242 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_linux_test_utils_n
acl_nonsfi.a', |
| 243 '>(tc_lib_dir_nonsfi_helper_arm)/libtest_support_base_nacl_non
sfi.a', |
243 ], | 244 ], |
244 }], | 245 }], |
245 ], | 246 ], |
246 }, | 247 }, |
247 | 248 |
248 'dependencies': [ | 249 'dependencies': [ |
249 '../base/base_nacl.gyp:base_nacl_nonsfi', | 250 '../base/base_nacl.gyp:base_nacl_nonsfi', |
| 251 '../base/base_nacl.gyp:test_support_base_nacl_nonsfi', |
250 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', | 252 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', |
251 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', | 253 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', |
252 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 254 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
253 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_nacl_n
onsfi', | 255 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_nacl_n
onsfi', |
254 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_test_u
tils_nacl_nonsfi', | 256 '../sandbox/linux/sandbox_linux_nacl_nonsfi.gyp:sandbox_linux_test_u
tils_nacl_nonsfi', |
255 '../testing/gtest_nacl.gyp:gtest_main_nacl', | |
256 '../testing/gtest_nacl.gyp:gtest_nacl', | 257 '../testing/gtest_nacl.gyp:gtest_nacl', |
257 'nacl_helper_nonsfi_sandbox', | 258 'nacl_helper_nonsfi_sandbox', |
258 ], | 259 ], |
259 }, | 260 }, |
260 ], | 261 ], |
261 }], | 262 }], |
262 | 263 |
263 ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test=
=1 and test_isolation_mode!="noop"', { | 264 ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test=
=1 and test_isolation_mode!="noop"', { |
264 'targets': [ | 265 'targets': [ |
265 { | 266 { |
266 'target_name': 'nacl_helper_nonsfi_unittests_run', | 267 'target_name': 'nacl_helper_nonsfi_unittests_run', |
267 'type': 'none', | 268 'type': 'none', |
268 'dependencies': [ | 269 'dependencies': [ |
269 'nacl_helper_nonsfi_unittests', | 270 'nacl.gyp:nacl_helper_nonsfi_unittests', |
270 ], | 271 ], |
271 'includes': [ | 272 'includes': [ |
272 '../build/isolate.gypi', | 273 '../build/isolate.gypi', |
273 ], | 274 ], |
274 'sources': [ | 275 'sources': [ |
275 'nacl_helper_nonsfi_unittests.isolate', | 276 'nacl_helper_nonsfi_unittests.isolate', |
276 ], | 277 ], |
277 }, | 278 }, |
278 ], | 279 ], |
279 }], | 280 }], |
280 ], | 281 ], |
281 } | 282 } |
OLD | NEW |