blob: 81e65a48aee14d43f09a65b555a755d548887e8d [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]058fe532013-11-28 06:45:59146 'nacl.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]23a8cf5c2013-11-26 13:53:37180 'policy/core/common/registry_dict_win_unittest.cc',
[email protected]f39e98e2013-11-22 17:50:47181 'policy/core/common/schema_map_unittest.cc',
182 'policy/core/common/schema_registry_unittest.cc',
[email protected]3a597cc2013-09-16 10:51:26183 'policy/core/common/schema_unittest.cc',
[email protected]183be4e2013-08-14 14:41:10184 ],
185 }],
[email protected]c03ef212013-01-24 23:44:30186 ],
[email protected]aa6eacc2013-02-09 21:18:42187 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
188 'msvs_disabled_warnings': [4267, ],
[email protected]b1babd92013-04-05 18:29:42189 },
[email protected]01587e12013-10-03 18:24:54190 ],
191 }],
192 ['OS != "ios" and android_webview_build == 0', {
193 'targets': [
[email protected]b1babd92013-04-05 18:29:42194 {
195 'target_name': 'components_perftests',
196 'type': '<(gtest_target_type)',
197 'dependencies': [
198 '../base/base.gyp:base',
199 '../base/base.gyp:test_support_perf',
[email protected]ba42b1e2013-10-19 22:13:17200 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]b1babd92013-04-05 18:29:42201 '../testing/gtest.gyp:gtest',
202 '../ui/compositor/compositor.gyp:compositor',
[email protected]7fa0f512013-10-22 14:19:36203 'components.gyp:visitedlink_browser',
[email protected]b1babd92013-04-05 18:29:42204 ],
205 'include_dirs': [
206 '..',
207 ],
208 'sources': [
209 'visitedlink/test/visitedlink_perftest.cc',
210 ],
211 'conditions': [
212 ['OS == "android" and gtest_target_type == "shared_library"', {
213 'dependencies': [
214 '../testing/android/native_test.gyp:native_test_native_code',
215 ],
216 }],
217 ],
218 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
219 'msvs_disabled_warnings': [ 4267, ],
220 },
[email protected]64f5650c2013-01-11 05:35:09221 ],
[email protected]c03ef212013-01-24 23:44:30222 'conditions': [
223 ['OS == "android" and gtest_target_type == "shared_library"', {
224 'targets': [
225 {
226 'target_name': 'components_unittests_apk',
227 'type': 'none',
228 'dependencies': [
229 'components_unittests',
230 ],
231 'variables': {
232 'test_suite_name': 'components_unittests',
233 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)components_unittests<(SHARED_LIB_SUFFIX)',
234 },
235 'includes': [ '../build/apk_test.gypi' ],
236 },
237 ],
238 }],
239 ],
[email protected]62885ab2013-01-23 03:55:16240 }],
[email protected]c0f759b2013-11-13 22:05:30241 ['OS!="ios"', {
242 'targets': [
243 {
244 'target_name': 'components_browsertests',
245 'type': '<(gtest_target_type)',
246 'defines!': ['CONTENT_IMPLEMENTATION'],
247 'dependencies': [
248 '../content/content_shell_and_tests.gyp:content_browser_test_support',
249 '../content/content_shell_and_tests.gyp:test_support_content',
250 '../skia/skia.gyp:skia',
251 '../testing/gtest.gyp:gtest',
252 'components.gyp:dom_distiller_content',
253 'components.gyp:dom_distiller_core',
254 ],
255 'include_dirs': [
256 '..',
257 ],
258 'defines': [
259 'HAS_OUT_OF_PROC_TEST_RUNNER',
260 ],
261 'sources': [
262 '../content/test/content_test_launcher.cc',
263 'dom_distiller/content/distiller_page_web_contents_browsertest.cc',
264 ],
265 'conditions': [
266 ['OS=="win"', {
267 'resource_include_dirs': [
268 '<(SHARED_INTERMEDIATE_DIR)/webkit',
269 ],
270 'sources': [
271 '../content/shell/app/resource.h',
272 '../content/shell/app/shell.rc',
273 # TODO: It would be nice to have these pulled in
274 # automatically from direct_dependent_settings in
275 # their various targets (net.gyp:net_resources, etc.),
276 # but that causes errors in other targets when
277 # resulting .res files get referenced multiple times.
278 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
279 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.rc',
280 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
281 ],
282 'dependencies': [
283 '<(DEPTH)/net/net.gyp:net_resources',
284 '<(DEPTH)/third_party/iaccessible2/iaccessible2.gyp:iaccessible2',
285 '<(DEPTH)/third_party/isimpledom/isimpledom.gyp:isimpledom',
286 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
287 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
288 ],
289 'configurations': {
290 'Debug_Base': {
291 'msvs_settings': {
292 'VCLinkerTool': {
293 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
294 },
295 },
296 },
297 },
298 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
299 'msvs_disabled_warnings': [ 4267, ],
300 }],
301 ['OS=="win" and win_use_allocator_shim==1', {
302 'dependencies': [
303 '../base/allocator/allocator.gyp:allocator',
304 ],
305 }],
306 ],
307 },
308 ],
309 }],
[email protected]62885ab2013-01-23 03:55:16310 ],
[email protected]64f5650c2013-01-11 05:35:09311}