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': { |
| 7 # This turns on e.g. the filename-based detection of which |
| 8 # platforms to include source files on (e.g. files ending in |
| 9 # _mac.h or _mac.cc are only compiled on MacOSX). |
| 10 'chromium_code': 1, |
| 11 }, |
6 'conditions': [ | 12 'conditions': [ |
7 ['android_webview_build == 0', { | 13 ['android_webview_build == 0', { |
8 'targets': [ | 14 'targets': [ |
9 { | 15 { |
10 'target_name': 'components_unittests', | 16 'target_name': 'components_unittests', |
11 'type': '<(gtest_target_type)', | 17 'type': '<(gtest_target_type)', |
12 'sources': [ | 18 'sources': [ |
13 'autofill/core/common/form_data_unittest.cc', | 19 'autofill/core/common/form_data_unittest.cc', |
14 'autofill/core/common/form_field_data_unittest.cc', | 20 'autofill/core/common/form_field_data_unittest.cc', |
15 'auto_login_parser/auto_login_parser_unittest.cc', | 21 'auto_login_parser/auto_login_parser_unittest.cc', |
(...skipping 26 matching lines...) Expand all Loading... |
42 'include_dirs': [ | 48 'include_dirs': [ |
43 '..', | 49 '..', |
44 ], | 50 ], |
45 'dependencies': [ | 51 'dependencies': [ |
46 '../base/base.gyp:test_support_base', | 52 '../base/base.gyp:test_support_base', |
47 '../sync/sync.gyp:sync', | 53 '../sync/sync.gyp:sync', |
48 '../testing/gmock.gyp:gmock', | 54 '../testing/gmock.gyp:gmock', |
49 '../testing/gtest.gyp:gtest', | 55 '../testing/gtest.gyp:gtest', |
50 | 56 |
51 # Dependencies of autofill | 57 # Dependencies of autofill |
52 'autofill_core_common', | 58 'components.gyp:autofill_core_common', |
53 | 59 |
54 # Dependencies of auto_login_parser | 60 # Dependencies of auto_login_parser |
55 'auto_login_parser', | 61 'components.gyp:auto_login_parser', |
56 | 62 |
57 # Dependencies of browser_context_keyed_service | 63 # Dependencies of browser_context_keyed_service |
58 'browser_context_keyed_service', | 64 'components.gyp:browser_context_keyed_service', |
59 | 65 |
60 # Dependencies of dom_distiller | 66 # Dependencies of dom_distiller |
61 'distilled_page_proto', | 67 'components.gyp:distilled_page_proto', |
62 'dom_distiller_core', | 68 'components.gyp:dom_distiller_core', |
63 | 69 |
64 # Dependencies of encryptor | 70 # Dependencies of encryptor |
65 'encryptor', | 71 'components.gyp:encryptor', |
66 | 72 |
67 # Dependencies of json_schema | 73 # Dependencies of json_schema |
68 'json_schema', | 74 'components.gyp:json_schema', |
69 | 75 |
70 # Dependencies of intercept_navigation_resource_throttle_unittest.cc | 76 # Dependencies of intercept_navigation_resource_throttle_unittest.cc |
71 '../content/content_shell_and_tests.gyp:test_support_content', | 77 '../content/content_shell_and_tests.gyp:test_support_content', |
72 '../skia/skia.gyp:skia', | 78 '../skia/skia.gyp:skia', |
73 'navigation_interception', | 79 'components.gyp:navigation_interception', |
74 | 80 |
75 # Dependencies of policy | 81 # Dependencies of policy |
76 'policy_component', | 82 'components.gyp:policy_component', |
77 | 83 |
78 # Dependencies of precache | 84 # Dependencies of precache |
79 'precache_core', | 85 'components.gyp:precache_core', |
80 'precache_core_proto', | 86 'components.gyp:precache_core_proto', |
81 | 87 |
82 # Dependencies of sessions | 88 # Dependencies of sessions |
83 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | 89 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
84 'sessions', | 90 'components.gyp:sessions', |
85 'sessions_test_support', | 91 'components.gyp:sessions_test_support', |
86 | 92 |
87 # Dependencies of translate. | 93 # Dependencies of translate. |
88 'translate_common', | 94 'components.gyp:translate_common', |
89 'translate_language_detection', | 95 'components.gyp:translate_language_detection', |
90 | 96 |
91 # Dependencies of variations | 97 # Dependencies of variations |
92 'variations', | 98 'components.gyp:variations', |
93 | 99 |
94 # Dependencies of visitedlink | 100 # Dependencies of visitedlink |
95 'visitedlink_browser', | 101 'components.gyp:visitedlink_browser', |
96 'visitedlink_renderer', | 102 'components.gyp:visitedlink_renderer', |
97 '../content/content_resources.gyp:content_resources', | 103 '../content/content_resources.gyp:content_resources', |
98 | 104 |
99 'web_modal', | 105 'components.gyp:web_modal', |
100 'web_modal_test_support', | 106 'components.gyp:web_modal_test_support', |
101 ], | 107 ], |
102 'conditions': [ | 108 'conditions': [ |
103 ['OS == "ios"', { | 109 ['OS == "ios"', { |
104 'sources/': [ | 110 'sources/': [ |
105 ['exclude', '\\.cc$'], | 111 ['exclude', '\\.cc$'], |
106 ['include', '^test/run_all_unittests\\.cc$'], | 112 ['include', '^test/run_all_unittests\\.cc$'], |
107 # TODO(ios): Include files here as they are made to work, see | 113 # TODO(ios): Include files here as they are made to work, see |
108 # http://crbug.com/303011. | 114 # http://crbug.com/303011. |
109 # TODO(asvitkine): Bring up varations/ unittests on iOS. | 115 # TODO(asvitkine): Bring up varations/ unittests on iOS. |
110 ['include', '^dom_distiller'], | 116 ['include', '^dom_distiller'], |
111 ['include', '^translate'], | 117 ['include', '^translate'], |
112 ], | 118 ], |
113 'dependencies!': [ | 119 'dependencies!': [ |
114 'autofill_core_common', | 120 'autofill_core_common', |
115 'navigation_interception', | 121 'navigation_interception', |
116 'visitedlink_renderer', | 122 'visitedlink_renderer', |
117 ], | 123 ], |
118 }], | 124 }], |
119 ['OS == "android"', { | 125 ['OS == "android"', { |
120 'sources!': [ | 126 'sources!': [ |
121 'web_modal/web_contents_modal_dialog_manager_unittest.cc', | 127 'web_modal/web_contents_modal_dialog_manager_unittest.cc', |
122 ], | 128 ], |
123 'dependencies!': [ | 129 'dependencies!': [ |
124 'web_modal', | 130 'components.gyp:web_modal', |
125 'web_modal_test_support', | 131 'components.gyp:web_modal_test_support', |
126 ], | 132 ], |
127 }], | 133 }], |
128 ['OS == "android" and gtest_target_type == "shared_library"', { | 134 ['OS == "android" and gtest_target_type == "shared_library"', { |
129 'dependencies': [ | 135 'dependencies': [ |
130 '../testing/android/native_test.gyp:native_test_native_code', | 136 '../testing/android/native_test.gyp:native_test_native_code', |
131 ] | 137 ] |
132 }], | 138 }], |
133 ['OS=="win" and win_use_allocator_shim==1', { | 139 ['OS=="win" and win_use_allocator_shim==1', { |
134 'dependencies': [ | 140 'dependencies': [ |
135 '../base/allocator/allocator.gyp:allocator', | 141 '../base/allocator/allocator.gyp:allocator', |
(...skipping 22 matching lines...) Expand all Loading... |
158 'targets': [ | 164 'targets': [ |
159 { | 165 { |
160 'target_name': 'components_perftests', | 166 'target_name': 'components_perftests', |
161 'type': '<(gtest_target_type)', | 167 'type': '<(gtest_target_type)', |
162 'dependencies': [ | 168 'dependencies': [ |
163 '../base/base.gyp:base', | 169 '../base/base.gyp:base', |
164 '../base/base.gyp:test_support_perf', | 170 '../base/base.gyp:test_support_perf', |
165 '../content/content_shell_and_tests.gyp:test_support_content', | 171 '../content/content_shell_and_tests.gyp:test_support_content', |
166 '../testing/gtest.gyp:gtest', | 172 '../testing/gtest.gyp:gtest', |
167 '../ui/compositor/compositor.gyp:compositor', | 173 '../ui/compositor/compositor.gyp:compositor', |
168 'visitedlink_browser', | 174 'components.gyp:visitedlink_browser', |
169 ], | 175 ], |
170 'include_dirs': [ | 176 'include_dirs': [ |
171 '..', | 177 '..', |
172 ], | 178 ], |
173 'sources': [ | 179 'sources': [ |
174 'visitedlink/test/visitedlink_perftest.cc', | 180 'visitedlink/test/visitedlink_perftest.cc', |
175 ], | 181 ], |
176 'conditions': [ | 182 'conditions': [ |
177 ['OS == "android" and gtest_target_type == "shared_library"', { | 183 ['OS == "android" and gtest_target_type == "shared_library"', { |
178 'dependencies': [ | 184 'dependencies': [ |
(...skipping 19 matching lines...) Expand all Loading... |
198 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo
nents_unittests<(SHARED_LIB_SUFFIX)', | 204 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)compo
nents_unittests<(SHARED_LIB_SUFFIX)', |
199 }, | 205 }, |
200 'includes': [ '../build/apk_test.gypi' ], | 206 'includes': [ '../build/apk_test.gypi' ], |
201 }, | 207 }, |
202 ], | 208 ], |
203 }], | 209 }], |
204 ], | 210 ], |
205 }], | 211 }], |
206 ], | 212 ], |
207 } | 213 } |
OLD | NEW |