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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'test_support_content', | 8 'target_name': 'test_support_content', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'defines!': ['CONTENT_IMPLEMENTATION'], | 10 'defines!': ['CONTENT_IMPLEMENTATION'], |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 ['use_aura==1', { | 155 ['use_aura==1', { |
156 'dependencies': [ | 156 'dependencies': [ |
157 '../ui/aura/aura.gyp:test_support_aura', | 157 '../ui/aura/aura.gyp:test_support_aura', |
158 '../ui/compositor/compositor.gyp:compositor', | 158 '../ui/compositor/compositor.gyp:compositor', |
159 ], | 159 ], |
160 }], | 160 }], |
161 ], | 161 ], |
162 }, | 162 }, |
163 { | 163 { |
164 'target_name': 'content_unittests', | 164 'target_name': 'content_unittests', |
165 'type': 'executable', | 165 'type': '<(gtest_target_type)', |
166 'defines!': ['CONTENT_IMPLEMENTATION'], | 166 'defines!': ['CONTENT_IMPLEMENTATION'], |
167 'dependencies': [ | 167 'dependencies': [ |
168 'content_browser', | 168 'content_browser', |
169 'content_gpu', | 169 'content_gpu', |
170 'content_plugin', | 170 'content_plugin', |
171 'content_renderer', | 171 'content_renderer', |
172 'test_support_content', | 172 'test_support_content', |
173 'content_resources.gyp:content_resources', | 173 'content_resources.gyp:content_resources', |
174 '../base/base.gyp:test_support_base', | 174 '../base/base.gyp:test_support_base', |
175 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 175 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 }], | 389 }], |
390 ['OS == "android"', { | 390 ['OS == "android"', { |
391 'sources!': [ | 391 'sources!': [ |
392 'browser/geolocation/device_data_provider_unittest.cc', | 392 'browser/geolocation/device_data_provider_unittest.cc', |
393 'browser/geolocation/gps_location_provider_unittest_linux.cc', | 393 'browser/geolocation/gps_location_provider_unittest_linux.cc', |
394 'browser/geolocation/network_location_provider_unittest.cc', | 394 'browser/geolocation/network_location_provider_unittest.cc', |
395 'browser/geolocation/wifi_data_provider_common_unittest.cc', | 395 'browser/geolocation/wifi_data_provider_common_unittest.cc', |
396 'browser/geolocation/wifi_data_provider_linux_unittest.cc', | 396 'browser/geolocation/wifi_data_provider_linux_unittest.cc', |
397 ], | 397 ], |
398 }], | 398 }], |
| 399 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { |
| 400 'dependencies': [ |
| 401 '../testing/android/native_test.gyp:native_test_native_code', |
| 402 ] |
| 403 }], |
399 ], | 404 ], |
400 }, | 405 }, |
401 { | 406 { |
402 'target_name': 'content_browsertests', | 407 'target_name': 'content_browsertests', |
403 'type': 'executable', | 408 'type': 'executable', |
404 'defines!': ['CONTENT_IMPLEMENTATION'], | 409 'defines!': ['CONTENT_IMPLEMENTATION'], |
405 'dependencies': [ | 410 'dependencies': [ |
406 'content_browser', | 411 'content_browser', |
407 'content_gpu', | 412 'content_gpu', |
408 'content_plugin', | 413 'content_plugin', |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 'dependencies': [ | 534 'dependencies': [ |
530 'content_common', | 535 'content_common', |
531 '../testing/gtest.gyp:gtest', | 536 '../testing/gtest.gyp:gtest', |
532 ], | 537 ], |
533 'sources': [ | 538 'sources': [ |
534 'common/gpu/media/h264_parser_unittest.cc', | 539 'common/gpu/media/h264_parser_unittest.cc', |
535 ], | 540 ], |
536 } | 541 } |
537 ], | 542 ], |
538 }], | 543 }], |
| 544 # Special target to wrap a <(gtest_target_type)==shared_library |
| 545 # content_unittests into an android apk for execution. |
| 546 # See base.gyp for TODO(jrg)s about this strategy. |
| 547 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { |
| 548 'targets': [ |
| 549 { |
| 550 'target_name': 'content_unittests_apk', |
| 551 'type': 'none', |
| 552 'dependencies': [ |
| 553 'content_unittests', |
| 554 ], |
| 555 'actions': [ |
| 556 { |
| 557 # Generate apk files (including source and antfile) from |
| 558 # a template, and builds them. |
| 559 'action_name': 'generate_and_build', |
| 560 'inputs': [ |
| 561 '../testing/android/AndroidManifest.xml', |
| 562 '../testing/android/generate_native_test.py', |
| 563 '<(PRODUCT_DIR)/lib.target/libcontent_unittests.so', |
| 564 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
| 565 ], |
| 566 'outputs': [ |
| 567 '<(PRODUCT_DIR)/content_unittests_apk/content_unittests-debug.ap
k', |
| 568 ], |
| 569 'action': [ |
| 570 '../testing/android/generate_native_test.py', |
| 571 '--native_library', |
| 572 '<(PRODUCT_DIR)/lib.target/libcontent_unittests.so', |
| 573 '--jar', |
| 574 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
| 575 '--output', |
| 576 '<(PRODUCT_DIR)/content_unittests_apk', |
| 577 '--ant-args', |
| 578 '-DPRODUCT_DIR=<(PRODUCT_DIR)', |
| 579 '--ant-compile' |
| 580 ], |
| 581 }, |
| 582 ] |
| 583 }, |
| 584 ], |
| 585 }], |
539 ], | 586 ], |
540 } | 587 } |
OLD | NEW |