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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['OS=="linux"', { | 8 ['OS=="linux"', { |
9 'compile_suid_client': 1, | 9 'compile_suid_client': 1, |
10 'compile_credentials': 1, | 10 'compile_credentials': 1, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 'sandbox_services', | 304 'sandbox_services', |
305 ], | 305 ], |
306 'include_dirs': [ | 306 'include_dirs': [ |
307 '..', | 307 '..', |
308 ], | 308 ], |
309 }, | 309 }, |
310 ], | 310 ], |
311 'conditions': [ | 311 'conditions': [ |
312 [ 'OS=="android"', { | 312 [ 'OS=="android"', { |
313 'targets': [ | 313 'targets': [ |
314 { | 314 { |
315 'target_name': 'sandbox_linux_unittests_stripped', | 315 'target_name': 'sandbox_linux_unittests_stripped', |
316 'type': 'none', | 316 'type': 'none', |
317 'dependencies': [ 'sandbox_linux_unittests' ], | 317 'dependencies': [ 'sandbox_linux_unittests' ], |
318 'actions': [{ | 318 'actions': [{ |
319 'action_name': 'strip sandbox_linux_unittests', | 319 'action_name': 'strip sandbox_linux_unittests', |
320 'inputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests' ], | 320 'inputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests' ], |
321 'outputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped' ], | 321 'outputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped' ], |
322 'action': [ '<(android_strip)', '<@(_inputs)', '-o', '<@(_outputs)' ], | 322 'action': [ '<(android_strip)', '<@(_inputs)', '-o', '<@(_outputs)' ], |
323 }], | 323 }], |
324 } | 324 }, |
325 ], | 325 { |
| 326 'target_name': 'sandbox_linux_unittests_deps', |
| 327 'type': 'none', |
| 328 'dependencies': [ |
| 329 'sandbox_linux_unittests_stripped', |
| 330 ], |
| 331 # For the component build, ensure dependent shared libraries are |
| 332 # stripped and put alongside sandbox_linux_unittests to simplify pushing |
| 333 # to the device. |
| 334 'variables': { |
| 335 'output_dir': '<(PRODUCT_DIR)/sandbox_linux_unittests_deps/', |
| 336 'native_binary': '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped', |
| 337 'include_main_binary': 0, |
| 338 }, |
| 339 'includes': [ |
| 340 '../../build/android/native_app_dependencies.gypi' |
| 341 ], |
| 342 }], |
326 }], | 343 }], |
327 [ 'OS=="android"', { | 344 [ 'OS=="android"', { |
328 'targets': [ | 345 'targets': [ |
329 { | 346 { |
330 'target_name': 'sandbox_linux_jni_unittests_apk', | 347 'target_name': 'sandbox_linux_jni_unittests_apk', |
331 'type': 'none', | 348 'type': 'none', |
332 'variables': { | 349 'variables': { |
333 'test_suite_name': 'sandbox_linux_jni_unittests', | 350 'test_suite_name': 'sandbox_linux_jni_unittests', |
334 }, | 351 }, |
335 'dependencies': [ | 352 'dependencies': [ |
(...skipping 15 matching lines...) Expand all Loading... |
351 '../../build/isolate.gypi', | 368 '../../build/isolate.gypi', |
352 ], | 369 ], |
353 'sources': [ | 370 'sources': [ |
354 '../sandbox_linux_unittests.isolate', | 371 '../sandbox_linux_unittests.isolate', |
355 ], | 372 ], |
356 }, | 373 }, |
357 ], | 374 ], |
358 }], | 375 }], |
359 ], | 376 ], |
360 } | 377 } |
OLD | NEW |