[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 6 | 'conditions': [ |
| 7 | ['OS != "ios"', { |
| 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'components_unittests', |
| 11 | 'type': '<(gtest_target_type)', |
| 12 | 'sources': [ |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 13 | 'auto_login_parser/auto_login_parser_unittest.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 14 | 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc', |
| 15 | 'test/run_all_unittests.cc', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 16 | 'visitedlink/test/visitedlink_unittest.cc', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 17 | ], |
| 18 | 'include_dirs': [ |
| 19 | '..', |
| 20 | ], |
| 21 | 'dependencies': [ |
| 22 | '../base/base.gyp:test_support_base', |
| 23 | '../testing/gmock.gyp:gmock', |
| 24 | '../testing/gtest.gyp:gtest', |
| 25 | |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 26 | # Dependencies of auto_login_parser |
| 27 | 'components.gyp:auto_login_parser', |
| 28 | |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 29 | # Dependencies of intercept_navigation_resource_throttle_unittest.cc |
| 30 | '../content/content.gyp:test_support_content', |
| 31 | '../skia/skia.gyp:skia', |
| 32 | 'navigation_interception', |
[email protected] | 28a66e25 | 2013-01-25 07:54:02 | [diff] [blame] | 33 | |
| 34 | # Dependencies of visitedlink |
| 35 | 'components.gyp:visitedlink_browser', |
| 36 | 'components.gyp:visitedlink_renderer', |
| 37 | '../content/content_resources.gyp:content_resources', |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 38 | ], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 39 | 'conditions': [ |
| 40 | ['OS == "android" and gtest_target_type == "shared_library"', { |
| 41 | 'dependencies': [ |
| 42 | '../testing/android/native_test.gyp:native_test_native_code', |
| 43 | ] |
| 44 | }], |
[email protected] | c5c9e6dc | 2013-01-30 12:46:58 | [diff] [blame^] | 45 | ['OS=="win" and win_use_allocator_shim==1', { |
| 46 | 'dependencies': [ |
| 47 | '../base/allocator/allocator.gyp:allocator', |
| 48 | ], |
| 49 | }], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 50 | ], |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 51 | } |
[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 52 | ], |
[email protected] | c03ef21 | 2013-01-24 23:44:30 | [diff] [blame] | 53 | 'conditions': [ |
| 54 | ['OS == "android" and gtest_target_type == "shared_library"', { |
| 55 | 'targets': [ |
| 56 | { |
| 57 | 'target_name': 'components_unittests_apk', |
| 58 | 'type': 'none', |
| 59 | 'dependencies': [ |
| 60 | 'components_unittests', |
| 61 | ], |
| 62 | 'variables': { |
| 63 | 'test_suite_name': 'components_unittests', |
| 64 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)', |
| 65 | }, |
| 66 | 'includes': [ '../build/apk_test.gypi' ], |
| 67 | }, |
| 68 | ], |
| 69 | }], |
| 70 | ], |
[email protected] | 62885ab | 2013-01-23 03:55:16 | [diff] [blame] | 71 | }], |
| 72 | ], |
[email protected] | 64f5650c | 2013-01-11 05:35:09 | [diff] [blame] | 73 | } |