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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 'sandbox_services', | 293 'sandbox_services', |
294 ], | 294 ], |
295 'include_dirs': [ | 295 'include_dirs': [ |
296 '..', | 296 '..', |
297 ], | 297 ], |
298 }, | 298 }, |
299 ], | 299 ], |
300 'conditions': [ | 300 'conditions': [ |
301 [ 'OS=="android"', { | 301 [ 'OS=="android"', { |
302 'targets': [ | 302 'targets': [ |
303 { | 303 { |
304 'target_name': 'sandbox_linux_unittests_stripped', | 304 'target_name': 'sandbox_linux_unittests_stripped', |
305 'type': 'none', | 305 'type': 'none', |
306 'dependencies': [ 'sandbox_linux_unittests' ], | 306 'dependencies': [ 'sandbox_linux_unittests' ], |
307 'actions': [{ | 307 'actions': [{ |
308 'action_name': 'strip sandbox_linux_unittests', | 308 'action_name': 'strip sandbox_linux_unittests', |
309 'inputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests' ], | 309 'inputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests' ], |
310 'outputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped' ], | 310 'outputs': [ '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped' ], |
311 'action': [ '<(android_strip)', '<@(_inputs)', '-o', '<@(_outputs)' ], | 311 'action': [ '<(android_strip)', '<@(_inputs)', '-o', '<@(_outputs)' ], |
312 }], | 312 }], |
313 } | 313 }, |
314 ], | 314 { |
| 315 'target_name': 'sandbox_linux_unittests_deps', |
| 316 'type': 'none', |
| 317 'dependencies': [ |
| 318 'sandbox_linux_unittests_stripped', |
| 319 ], |
| 320 # For the component build, ensure dependent shared libraries are |
| 321 # stripped and put alongside sandbox_linux_unittests to simplify pushing |
| 322 # to the device. |
| 323 'variables': { |
| 324 'output_dir': '<(PRODUCT_DIR)/sandbox_linux_unittests_deps/', |
| 325 'native_binary': '<(PRODUCT_DIR)/sandbox_linux_unittests_stripped', |
| 326 'include_main_binary': 0, |
| 327 }, |
| 328 'includes': [ |
| 329 '../../build/android/native_app_dependencies.gypi' |
| 330 ], |
| 331 }], |
315 }], | 332 }], |
316 [ 'OS=="android"', { | 333 [ 'OS=="android"', { |
317 'targets': [ | 334 'targets': [ |
318 { | 335 { |
319 'target_name': 'sandbox_linux_jni_unittests_apk', | 336 'target_name': 'sandbox_linux_jni_unittests_apk', |
320 'type': 'none', | 337 'type': 'none', |
321 'variables': { | 338 'variables': { |
322 'test_suite_name': 'sandbox_linux_jni_unittests', | 339 'test_suite_name': 'sandbox_linux_jni_unittests', |
323 }, | 340 }, |
324 'dependencies': [ | 341 'dependencies': [ |
(...skipping 15 matching lines...) Expand all Loading... |
340 '../../build/isolate.gypi', | 357 '../../build/isolate.gypi', |
341 ], | 358 ], |
342 'sources': [ | 359 'sources': [ |
343 '../sandbox_linux_unittests.isolate', | 360 '../sandbox_linux_unittests.isolate', |
344 ], | 361 ], |
345 }, | 362 }, |
346 ], | 363 ], |
347 }], | 364 }], |
348 ], | 365 ], |
349 } | 366 } |
OLD | NEW |