blob: 9847b90c6a85b30bbcfb12f6a5b4e1f54b7971a9 [file] [log] [blame]
[email protected]64f5650c2013-01-11 05:35:091# 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]7fa0f512013-10-22 14:19:366 '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 },
[email protected]62885ab2013-01-23 03:55:1612 'conditions': [
[email protected]01587e12013-10-03 18:24:5413 ['android_webview_build == 0', {
[email protected]62885ab2013-01-23 03:55:1614 'targets': [
15 {
16 'target_name': 'components_unittests',
17 'type': '<(gtest_target_type)',
18 'sources': [
[email protected]ad602e62013-10-30 16:47:5319 'auto_login_parser/auto_login_parser_unittest.cc',
[email protected]4daa4ee12013-11-04 19:40:1120 'autofill/core/browser/webdata/autofill_entry_unittest.cc',
[email protected]d3ff31f2013-08-29 23:48:3521 'autofill/core/common/form_data_unittest.cc',
22 'autofill/core/common/form_field_data_unittest.cc',
[email protected]ad602e62013-10-30 16:47:5323 'autofill/core/common/password_form_fill_data_unittest.cc',
[email protected]0dd6f2032013-05-20 23:33:4024 'browser_context_keyed_service/browser_context_dependency_manager_unittest.cc',
25 'browser_context_keyed_service/dependency_graph_unittest.cc',
[email protected]703fe5302013-11-15 17:52:5026 'dom_distiller/core/article_entry_unittest.cc',
[email protected]c0f759b2013-11-13 22:05:3027 'dom_distiller/core/distiller_unittest.cc',
[email protected]960f1d262013-10-09 19:52:1428 'dom_distiller/core/distiller_url_fetcher_unittest.cc',
[email protected]0664b5ab2013-09-23 04:14:4529 'dom_distiller/core/dom_distiller_database_unittest.cc',
[email protected]96a45d872013-10-22 21:17:5630 'dom_distiller/core/dom_distiller_model_unittest.cc',
[email protected]703fe5302013-11-15 17:52:5031 'dom_distiller/core/dom_distiller_service_unittest.cc',
[email protected]9cff6652013-10-03 20:28:5232 'dom_distiller/core/dom_distiller_store_unittest.cc',
[email protected]703fe5302013-11-15 17:52:5033 'dom_distiller/core/fake_distiller.cc',
34 'dom_distiller/core/fake_distiller.h',
35 'dom_distiller/core/task_tracker_unittest.cc',
[email protected]fb1397ce2013-08-13 22:55:0736 'json_schema/json_schema_validator_unittest.cc',
37 'json_schema/json_schema_validator_unittest_base.cc',
38 'json_schema/json_schema_validator_unittest_base.h',
[email protected]62885ab2013-01-23 03:55:1639 'navigation_interception/intercept_navigation_resource_throttle_unittest.cc',
[email protected]72779c92013-10-18 09:53:0240 'precache/core/precache_fetcher_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0141 'sessions/serialized_navigation_entry_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1642 'test/run_all_unittests.cc',
[email protected]499e7c52013-10-04 16:03:0943 'translate/common/translate_metrics_unittest.cc',
44 'translate/common/translate_util_unittest.cc',
45 'translate/language_detection/language_detection_util_unittest.cc',
[email protected]50ae9f12013-08-29 18:03:2246 # TODO(asvitkine): These should be tested on iOS too.
47 'variations/entropy_provider_unittest.cc',
48 'variations/metrics_util_unittest.cc',
49 'variations/variations_associated_data_unittest.cc',
50 'variations/variations_seed_processor_unittest.cc',
[email protected]28a66e252013-01-25 07:54:0251 'visitedlink/test/visitedlink_unittest.cc',
[email protected]40a7e412013-04-29 18:13:0152 'webdata/encryptor/encryptor_password_mac_unittest.cc',
53 'webdata/encryptor/encryptor_unittest.cc',
[email protected]4daa4ee12013-11-04 19:40:1154 'webdata/encryptor/ie7_password_unittest_win.cc',
[email protected]e41d0082013-05-16 04:37:5455 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
[email protected]62885ab2013-01-23 03:55:1656 ],
57 'include_dirs': [
58 '..',
59 ],
60 'dependencies': [
61 '../base/base.gyp:test_support_base',
[email protected]82c10122013-10-03 15:12:2262 '../sync/sync.gyp:sync',
[email protected]62885ab2013-01-23 03:55:1663 '../testing/gmock.gyp:gmock',
64 '../testing/gtest.gyp:gtest',
65
[email protected]d3ff31f2013-08-29 23:48:3566 # Dependencies of autofill
[email protected]4daa4ee12013-11-04 19:40:1167 'components.gyp:autofill_core_browser',
[email protected]7fa0f512013-10-22 14:19:3668 'components.gyp:autofill_core_common',
[email protected]d3ff31f2013-08-29 23:48:3569
[email protected]28a66e252013-01-25 07:54:0270 # Dependencies of auto_login_parser
[email protected]7fa0f512013-10-22 14:19:3671 'components.gyp:auto_login_parser',
[email protected]da84fa42013-03-24 20:57:3672
[email protected]0dd6f2032013-05-20 23:33:4073 # Dependencies of browser_context_keyed_service
[email protected]7fa0f512013-10-22 14:19:3674 'components.gyp:browser_context_keyed_service',
[email protected]0dd6f2032013-05-20 23:33:4075
[email protected]0664b5ab2013-09-23 04:14:4576 # Dependencies of dom_distiller
[email protected]7fa0f512013-10-22 14:19:3677 'components.gyp:distilled_page_proto',
78 'components.gyp:dom_distiller_core',
[email protected]0664b5ab2013-09-23 04:14:4579
[email protected]da84fa42013-03-24 20:57:3680 # Dependencies of encryptor
[email protected]7fa0f512013-10-22 14:19:3681 'components.gyp:encryptor',
[email protected]28a66e252013-01-25 07:54:0282
[email protected]fb1397ce2013-08-13 22:55:0783 # Dependencies of json_schema
[email protected]7fa0f512013-10-22 14:19:3684 'components.gyp:json_schema',
[email protected]fb1397ce2013-08-13 22:55:0785
[email protected]62885ab2013-01-23 03:55:1686 # Dependencies of intercept_navigation_resource_throttle_unittest.cc
[email protected]ba42b1e2013-10-19 22:13:1787 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]62885ab2013-01-23 03:55:1688 '../skia/skia.gyp:skia',
[email protected]7fa0f512013-10-22 14:19:3689 'components.gyp:navigation_interception',
[email protected]72779c92013-10-18 09:53:0290
[email protected]183be4e2013-08-14 14:41:1091 # Dependencies of policy
[email protected]7fa0f512013-10-22 14:19:3692 'components.gyp:policy_component',
[email protected]183be4e2013-08-14 14:41:1093
[email protected]72779c92013-10-18 09:53:0294 # Dependencies of precache
[email protected]7fa0f512013-10-22 14:19:3695 'components.gyp:precache_core',
96 'components.gyp:precache_core_proto',
[email protected]72779c92013-10-18 09:53:0297
[email protected]40a7e412013-04-29 18:13:0198 # Dependencies of sessions
[email protected]40a7e412013-04-29 18:13:0199 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
[email protected]7fa0f512013-10-22 14:19:36100 'components.gyp:sessions',
101 'components.gyp:sessions_test_support',
[email protected]40a7e412013-04-29 18:13:01102
[email protected]499e7c52013-10-04 16:03:09103 # Dependencies of translate.
[email protected]7fa0f512013-10-22 14:19:36104 'components.gyp:translate_common',
105 'components.gyp:translate_language_detection',
[email protected]499e7c52013-10-04 16:03:09106
[email protected]50ae9f12013-08-29 18:03:22107 # Dependencies of variations
[email protected]7fa0f512013-10-22 14:19:36108 'components.gyp:variations',
[email protected]50ae9f12013-08-29 18:03:22109
[email protected]28a66e252013-01-25 07:54:02110 # Dependencies of visitedlink
[email protected]7fa0f512013-10-22 14:19:36111 'components.gyp:visitedlink_browser',
112 'components.gyp:visitedlink_renderer',
[email protected]28a66e252013-01-25 07:54:02113 '../content/content_resources.gyp:content_resources',
[email protected]e41d0082013-05-16 04:37:54114
[email protected]7fa0f512013-10-22 14:19:36115 'components.gyp:web_modal',
116 'components.gyp:web_modal_test_support',
[email protected]62885ab2013-01-23 03:55:16117 ],
[email protected]c03ef212013-01-24 23:44:30118 'conditions': [
[email protected]01587e12013-10-03 18:24:54119 ['OS == "ios"', {
120 'sources/': [
121 ['exclude', '\\.cc$'],
122 ['include', '^test/run_all_unittests\\.cc$'],
123 # TODO(ios): Include files here as they are made to work, see
124 # http://crbug.com/303011.
125 # TODO(asvitkine): Bring up varations/ unittests on iOS.
126 ['include', '^dom_distiller'],
[email protected]499e7c52013-10-04 16:03:09127 ['include', '^translate'],
[email protected]01587e12013-10-03 18:24:54128 ],
129 'dependencies!': [
130 'autofill_core_common',
131 'navigation_interception',
132 'visitedlink_renderer',
133 ],
134 }],
[email protected]ef42ee8c82013-11-01 05:26:13135 ['disable_nacl==0', {
136 'sources': [
[email protected]7c766e92013-11-22 20:44:02137 'nacl/browser/nacl_file_host_unittest.cc',
138 'nacl/browser/nacl_process_host_unittest.cc',
[email protected]ef42ee8c82013-11-01 05:26:13139 'nacl/browser/nacl_validation_cache_unittest.cc',
[email protected]7c766e92013-11-22 20:44:02140 'nacl/browser/pnacl_host_unittest.cc',
[email protected]30a90712013-11-18 16:26:11141 'nacl/browser/pnacl_translation_cache_unittest.cc',
[email protected]7c766e92013-11-22 20:44:02142 'nacl/browser/test_nacl_browser_delegate.cc',
[email protected]ef42ee8c82013-11-01 05:26:13143 ],
144 'dependencies': [
145 'nacl.gyp:nacl_browser',
[email protected]30a90712013-11-18 16:26:11146 'nacl_common.gyp:nacl_common',
[email protected]ef42ee8c82013-11-01 05:26:13147 ],
148 }],
[email protected]e41d0082013-05-16 04:37:54149 ['OS == "android"', {
150 'sources!': [
151 'web_modal/web_contents_modal_dialog_manager_unittest.cc',
152 ],
153 'dependencies!': [
[email protected]7fa0f512013-10-22 14:19:36154 'components.gyp:web_modal',
155 'components.gyp:web_modal_test_support',
[email protected]e41d0082013-05-16 04:37:54156 ],
157 }],
[email protected]c03ef212013-01-24 23:44:30158 ['OS == "android" and gtest_target_type == "shared_library"', {
159 'dependencies': [
160 '../testing/android/native_test.gyp:native_test_native_code',
161 ]
162 }],
[email protected]c5c9e6dc2013-01-30 12:46:58163 ['OS=="win" and win_use_allocator_shim==1', {
164 'dependencies': [
165 '../base/allocator/allocator.gyp:allocator',
166 ],
167 }],
[email protected]19e9de232013-07-23 20:21:06168 ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
169 'dependencies': [
170 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
171 ],
172 'link_settings': {
173 'ldflags': ['-rdynamic'],
174 },
175 }],
[email protected]183be4e2013-08-14 14:41:10176 ['configuration_policy==1', {
177 'sources': [
[email protected]3af8f802013-11-22 11:48:57178 'policy/core/common/policy_bundle_unittest.cc',
[email protected]c4a138a2013-11-21 19:54:57179 'policy/core/common/policy_map_unittest.cc',
[email protected]f39e98e2013-11-22 17:50:47180 'policy/core/common/schema_map_unittest.cc',
181 'policy/core/common/schema_registry_unittest.cc',
[email protected]3a597cc2013-09-16 10:51:26182 'policy/core/common/schema_unittest.cc',
[email protected]183be4e2013-08-14 14:41:10183 ],
184 }],
[email protected]c03ef212013-01-24 23:44:30185 ],
[email protected]aa6eacc2013-02-09 21:18:42186 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
187 'msvs_disabled_warnings': [4267, ],
[email protected]b1babd92013-04-05 18:29:42188 },
[email protected]01587e12013-10-03 18:24:54189 ],
190 }],
191 ['OS != "ios" and android_webview_build == 0', {
192 'targets': [
[email protected]b1babd92013-04-05 18:29:42193 {
194 'target_name': 'components_perftests',
195 'type': '<(gtest_target_type)',
196 'dependencies': [
197 '../base/base.gyp:base',
198 '../base/base.gyp:test_support_perf',
[email protected]ba42b1e2013-10-19 22:13:17199 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]b1babd92013-04-05 18:29:42200 '../testing/gtest.gyp:gtest',
201 '../ui/compositor/compositor.gyp:compositor',
[email protected]7fa0f512013-10-22 14:19:36202 'components.gyp:visitedlink_browser',
[email protected]b1babd92013-04-05 18:29:42203 ],
204 'include_dirs': [
205 '..',
206 ],
207 'sources': [
208 'visitedlink/test/visitedlink_perftest.cc',
209 ],
210 'conditions': [
211 ['OS == "android" and gtest_target_type == "shared_library"', {
212 'dependencies': [
213 '../testing/android/native_test.gyp:native_test_native_code',
214 ],
215 }],
216 ],
217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
218 'msvs_disabled_warnings': [ 4267, ],
219 },
[email protected]64f5650c2013-01-11 05:35:09220 ],
[email protected]c03ef212013-01-24 23:44:30221 'conditions': [
222 ['OS == "android" and gtest_target_type == "shared_library"', {
223 'targets': [
224 {
225 'target_name': 'components_unittests_apk',
226 'type': 'none',
227 'dependencies': [
228 'components_unittests',
229 ],
230 'variables': {
231 'test_suite_name': 'components_unittests',
232 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
233 },
234 'includes': [ '../build/apk_test.gypi' ],
235 },
236 ],
237 }],
238 ],
[email protected]62885ab2013-01-23 03:55:16239 }],
[email protected]c0f759b2013-11-13 22:05:30240 ['OS!="ios"', {
241 'targets': [
242 {
243 'target_name': 'components_browsertests',
244 'type': '<(gtest_target_type)',
245 'defines!': ['CONTENT_IMPLEMENTATION'],
246 'dependencies': [
247 '../content/content_shell_and_tests.gyp:content_browser_test_support',
248 '../content/content_shell_and_tests.gyp:test_support_content',
249 '../skia/skia.gyp:skia',
250 '../testing/gtest.gyp:gtest',
251 'components.gyp:dom_distiller_content',
252 'components.gyp:dom_distiller_core',
253 ],
254 'include_dirs': [
255 '..',
256 ],
257 'defines': [
258 'HAS_OUT_OF_PROC_TEST_RUNNER',
259 ],
260 'sources': [
261 '../content/test/content_test_launcher.cc',
262 'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
263 ],
264 'conditions': [
265 ['OS=="win"', {
266 'resource_include_dirs': [
267 '<(SHARED_INTERMEDIATE_DIR)/webkit',
268 ],
269 'sources': [
270 '../content/shell/app/resource.h',
271 '../content/shell/app/shell.rc',
272 # TODO: It would be nice to have these pulled in
273 # automatically from direct_dependent_settings in
274 # their various targets (net.gyp:net_resources, etc.),
275 # but that causes errors in other targets when
276 # resulting .res files get referenced multiple times.
277 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
278 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
279 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
280 ],
281 'dependencies': [
282 '<(DEPTH)/net/net.gyp:net_resources',
283 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
284 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
285 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
286 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
287 ],
288 'configurations': {
289 'Debug_Base': {
290 'msvs_settings': {
291 'VCLinkerTool': {
292 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
293 },
294 },
295 },
296 },
297 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
298 'msvs_disabled_warnings': [ 4267, ],
299 }],
300 ['OS=="win" and win_use_allocator_shim==1', {
301 'dependencies': [
302 '../base/allocator/allocator.gyp:allocator',
303 ],
304 }],
305 ],
306 },
307 ],
308 }],
[email protected]62885ab2013-01-23 03:55:16309 ],
[email protected]64f5650c2013-01-11 05:35:09310}