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', | |
Ryan Sleevi
2012/05/23 23:09:24
Since you're directly depending on the build produ
nilesh
2012/05/23 23:55:40
I should have thought of this. Done. Thanks.
| |
554 ], | |
555 'variables': { | |
556 'test_suite_name': 'content_unittests', | |
557 'input_shlib': '<(PRODUCT_DIR)/lib.target/<(SHARED_LIB_PREFIX)conten t_unittests<(SHARED_LIB_SUFFIX)', | |
558 'input_jars': [ | |
559 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', | |
560 '<(PRODUCT_DIR)/lib.java/chromium_content.jar', | |
561 ], | |
562 }, | |
563 'includes': [ '../build/apk_test.gypi' ], | |
564 }, | |
565 ], | |
566 }], | |
539 ], | 567 ], |
540 } | 568 } |
OLD | NEW |