blob: 8bcc58d83a35b096fbe09af26d27f06c4530727d [file] [log] [blame]
[email protected]b907defe2011-02-23 02:45:341# Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]dd363682009-12-28 20:30:462# 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]dd363682009-12-28 20:30:466 'targets': [
7 {
8 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:539 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:4610 'variables': {
11 'chrome_common_target': 1,
12 },
[email protected]93156cec2011-09-12 21:14:4413 'include_dirs': [
14 '..',
15 ],
[email protected]dd363682009-12-28 20:30:4616 'direct_dependent_settings': {
17 'include_dirs': [
18 '..',
19 ],
20 },
21 'dependencies': [
22 # TODO(gregoryd): chrome_resources and chrome_strings could be
23 # shared with the 64-bit target, but it does not work due to a gyp
24 # issue.
[email protected]f86369722011-02-17 13:25:2325 'app/policy/cloud_policy_codegen.gyp:policy',
[email protected]dd363682009-12-28 20:30:4626 'chrome_resources',
27 'chrome_strings',
28 'common_constants',
[email protected]3c3065d2010-05-06 21:59:5529 'common_net',
[email protected]0d64bb72010-07-07 05:36:3830 'default_plugin/default_plugin.gyp:default_plugin',
[email protected]dd363682009-12-28 20:30:4631 'theme_resources',
[email protected]dd363682009-12-28 20:30:4632 '../base/base.gyp:base',
33 '../base/base.gyp:base_i18n',
[email protected]23bb71f2011-04-21 22:22:1034 '../base/base.gyp:base_static',
[email protected]dd363682009-12-28 20:30:4635 '../build/temp_gyp/googleurl.gyp:googleurl',
[email protected]6c54e7e42011-03-02 20:52:3436 '../content/content.gyp:content_common',
[email protected]dd363682009-12-28 20:30:4637 '../ipc/ipc.gyp:ipc',
38 '../net/net.gyp:net',
[email protected]13095402010-07-20 00:15:4339 '../printing/printing.gyp:printing',
[email protected]dd363682009-12-28 20:30:4640 '../skia/skia.gyp:skia',
[email protected]423bfef2010-06-18 17:17:2841 '../third_party/bzip2/bzip2.gyp:bzip2',
[email protected]dd363682009-12-28 20:30:4642 '../third_party/icu/icu.gyp:icui18n',
43 '../third_party/icu/icu.gyp:icuuc',
44 '../third_party/libxml/libxml.gyp:libxml',
45 '../third_party/sqlite/sqlite.gyp:sqlite',
46 '../third_party/zlib/zlib.gyp:zlib',
[email protected]29b25d092011-06-29 20:57:3447 '../ui/ui.gyp:ui_resources',
[email protected]51bf1612011-08-16 23:19:0648 '../ui/ui.gyp:ui_resources_standard',
[email protected]69d3dfe82010-05-14 03:21:5549 '../webkit/support/webkit_support.gyp:glue',
[email protected]dd363682009-12-28 20:30:4650 ],
51 'sources': [
[email protected]93156cec2011-09-12 21:14:4452 'common/about_handler.cc',
53 'common/about_handler.h',
[email protected]4a6d74152011-09-26 20:42:3054 'common/all_messages.h',
[email protected]93156cec2011-09-12 21:14:4455 'common/attrition_experiments.h',
56 'common/auto_start_linux.cc',
57 'common/auto_start_linux.h',
58 'common/autofill_messages.h',
[email protected]cdb8bc282010-11-22 19:23:0659 'common/automation_constants.cc',
60 'common/automation_constants.h',
61 'common/automation_messages.cc',
62 'common/automation_messages.h',
63 'common/automation_messages_internal.h',
64 'common/badge_util.cc',
65 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:1066 'common/bzip2_error_handler.cc',
[email protected]93156cec2011-09-12 21:14:4467 'common/child_process_logging.h',
68 'common/child_process_logging_linux.cc',
69 'common/child_process_logging_mac.mm',
70 'common/child_process_logging_win.cc',
[email protected]50e52cd2011-03-10 00:57:2971 'common/chrome_content_client.cc',
72 'common/chrome_content_client.h',
[email protected]93156cec2011-09-12 21:14:4473 'common/chrome_notification_types.h',
[email protected]208d3b72011-08-31 22:35:1374 'common/chrome_plugin_messages.h',
[email protected]c530c852011-10-24 18:18:3475 'common/chrome_result_codes.h',
[email protected]19a5c7442011-10-21 20:00:4176 'common/chrome_utility_messages.h',
[email protected]93156cec2011-09-12 21:14:4477 'common/chrome_version_info.cc',
78 'common/chrome_version_info_linux.cc',
79 'common/chrome_version_info_mac.mm',
80 'common/chrome_version_info_win.cc',
81 'common/chrome_version_info.h',
[email protected]de119cf22011-05-11 20:41:3582 'common/cloud_print/cloud_print_proxy_info.cc',
83 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]ceee7662011-05-12 21:06:0084 'common/common_api.h',
[email protected]fffaf972011-03-24 01:34:3585 'common/common_message_generator.cc',
86 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:0387 'common/common_param_traits.cc',
88 'common/common_param_traits.h',
[email protected]93156cec2011-09-12 21:14:4489 'common/content_settings.cc',
90 'common/content_settings.h',
91 'common/content_settings_helper.cc',
92 'common/content_settings_helper.h',
[email protected]1d03fa32011-09-21 08:19:2793 'common/content_settings_pattern.cc',
94 'common/content_settings_pattern.h',
95 'common/content_settings_pattern_parser.cc',
96 'common/content_settings_pattern_parser.h',
[email protected]93156cec2011-09-12 21:14:4497 'common/content_settings_types.h',
[email protected]083917c82011-07-13 00:34:3598 'common/custom_handlers/protocol_handler.cc',
99 'common/custom_handlers/protocol_handler.h',
[email protected]cdb8bc282010-11-22 19:23:06100 'common/default_plugin.cc',
101 'common/default_plugin.h',
[email protected]dd363682009-12-28 20:30:46102 'common/extensions/extension.cc',
103 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13104 'common/extensions/extension_action.cc',
105 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46106 'common/extensions/extension_constants.cc',
107 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46108 'common/extensions/extension_error_utils.cc',
109 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13110 'common/extensions/extension_file_util.cc',
111 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48112 'common/extensions/extension_icon_set.cc',
113 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46114 'common/extensions/extension_l10n_util.cc',
115 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09116 'common/extensions/extension_localization_peer.cc',
117 'common/extensions/extension_localization_peer.h',
[email protected]dd363682009-12-28 20:30:46118 'common/extensions/extension_message_bundle.cc',
119 'common/extensions/extension_message_bundle.h',
[email protected]44c49c92011-03-28 16:17:23120 'common/extensions/extension_messages.cc',
121 'common/extensions/extension_messages.h',
[email protected]0d3e4a22011-06-23 19:02:52122 'common/extensions/extension_permission_set.cc',
123 'common/extensions/extension_permission_set.h',
[email protected]dd363682009-12-28 20:30:46124 'common/extensions/extension_resource.cc',
125 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36126 'common/extensions/extension_set.cc',
127 'common/extensions/extension_set.h',
[email protected]e2dffe02011-01-20 20:30:06128 'common/extensions/extension_sidebar_defaults.h',
129 'common/extensions/extension_sidebar_utils.cc',
130 'common/extensions/extension_sidebar_utils.h',
[email protected]dd363682009-12-28 20:30:46131 'common/extensions/extension_unpacker.cc',
132 'common/extensions/extension_unpacker.h',
[email protected]b6b805e92011-04-16 09:24:14133 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42134 'common/extensions/file_browser_handler.h',
[email protected]dd363682009-12-28 20:30:46135 'common/extensions/update_manifest.cc',
136 'common/extensions/update_manifest.h',
137 'common/extensions/url_pattern.cc',
138 'common/extensions/url_pattern.h',
[email protected]cced75a2011-05-20 08:31:12139 'common/extensions/url_pattern_set.cc',
140 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46141 'common/extensions/user_script.cc',
142 'common/extensions/user_script.h',
[email protected]93156cec2011-09-12 21:14:44143 'common/external_ipc_fuzzer.h',
144 'common/external_ipc_fuzzer.cc',
[email protected]ae4efe42011-04-18 21:28:05145 'common/favicon_url.cc',
146 'common/favicon_url.h',
[email protected]93156cec2011-09-12 21:14:44147 'common/guid.cc',
148 'common/guid.h',
149 'common/guid_posix.cc',
150 'common/guid_win.cc',
151 'common/icon_messages.h',
[email protected]6658ca82010-05-20 18:20:29152 'common/important_file_writer.cc',
153 'common/important_file_writer.h',
[email protected]93156cec2011-09-12 21:14:44154 'common/instant_types.h',
[email protected]ea587b02010-05-21 15:01:35155 'common/json_pref_store.cc',
156 'common/json_pref_store.h',
[email protected]639e6712010-11-11 22:21:43157 'common/json_schema_validator.cc',
158 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46159 'common/jstemplate_builder.cc',
160 'common/jstemplate_builder.h',
[email protected]93156cec2011-09-12 21:14:44161 'common/logging_chrome.cc',
162 'common/logging_chrome.h',
[email protected]46821242011-08-19 13:59:59163 'common/mac/app_mode_common.h',
164 'common/mac/app_mode_common.mm',
[email protected]00ecec52011-08-19 20:01:24165 'common/mac/cfbundle_blocker.h',
166 'common/mac/cfbundle_blocker.mm',
[email protected]46821242011-08-19 13:59:59167 'common/mac/launchd.h',
168 'common/mac/launchd.mm',
[email protected]d02437b2011-09-06 17:25:15169 'common/mac/objc_method_swizzle.h',
170 'common/mac/objc_method_swizzle.mm',
171 'common/mac/objc_zombie.h',
172 'common/mac/objc_zombie.mm',
[email protected]93156cec2011-09-12 21:14:44173 'common/metrics_helpers.cc',
174 'common/metrics_helpers.h',
[email protected]cac267c2011-09-29 15:18:10175 'common/metrics_log_manager.cc',
176 'common/metrics_log_manager.h',
[email protected]93156cec2011-09-12 21:14:44177 'common/multi_process_lock.h',
178 'common/multi_process_lock_linux.cc',
179 'common/multi_process_lock_mac.cc',
180 'common/multi_process_lock_win.cc',
181 'common/nacl_cmd_line.cc',
182 'common/nacl_cmd_line.h',
183 'common/nacl_messages.cc',
184 'common/nacl_messages.h',
185 'common/nacl_types.h',
[email protected]dd363682009-12-28 20:30:46186 'common/libxml_utils.cc',
187 'common/libxml_utils.h',
[email protected]dd363682009-12-28 20:30:46188 'common/native_window_notification_source.h',
[email protected]f2d1f612010-12-09 15:10:17189 'common/persistent_pref_store.h',
[email protected]0f1afed2010-12-15 17:22:28190 'common/pref_store.cc',
[email protected]ce1850e92010-10-15 08:40:58191 'common/pref_store.h',
[email protected]b4bd67a2011-08-22 19:04:09192 'common/print_messages.cc',
[email protected]1375e3ab2011-03-24 17:07:22193 'common/print_messages.h',
[email protected]93156cec2011-09-12 21:14:44194 'common/profiling.cc',
195 'common/profiling.h',
[email protected]51a01812011-05-05 08:46:11196 'common/random.cc',
197 'common/random.h',
[email protected]93156cec2011-09-12 21:14:44198 'common/ref_counted_util.h',
[email protected]7a4de7a62010-08-17 18:38:24199 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46200 'common/render_messages.h',
[email protected]93156cec2011-09-12 21:14:44201 'common/safe_browsing/safebrowsing_messages.h',
[email protected]c08e7932011-03-29 04:08:14202 'common/search_provider.h',
[email protected]38fe1962010-07-31 07:57:00203 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24204 'common/service_process_util.cc',
205 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36206 'common/service_process_util_linux.cc',
207 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04208 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36209 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04210 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46211 'common/spellcheck_common.cc',
212 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45213 'common/spellcheck_messages.h',
[email protected]93156cec2011-09-12 21:14:44214 'common/switch_utils.cc',
215 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:46216 'common/thumbnail_score.cc',
217 'common/thumbnail_score.h',
[email protected]93156cec2011-09-12 21:14:44218 'common/time_format.cc',
219 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46220 'common/url_constants.cc',
221 'common/url_constants.h',
[email protected]ee162d82011-10-06 06:35:37222 'common/chrome_view_types.cc',
223 'common/chrome_view_types.h',
[email protected]dd363682009-12-28 20:30:46224 'common/visitedlink_common.cc',
225 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44226 'common/web_apps.cc',
227 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06228 'common/web_resource/web_resource_unpacker.cc',
229 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46230 'common/worker_thread_ticker.cc',
231 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46232 'common/zip.cc', # Requires zlib directly.
233 'common/zip.h',
234 ],
235 'conditions': [
[email protected]93156cec2011-09-12 21:14:44236 ['OS=="win"', {
237 'include_dirs': [
238 '<(DEPTH)/third_party/wtl/include',
239 ],
240 }],
[email protected]cb5e5072011-05-19 21:49:41241 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46242 'dependencies': [
243 '../build/linux/system.gyp:gtk',
244 ],
245 'export_dependent_settings': [
246 '../third_party/sqlite/sqlite.gyp:sqlite',
247 ],
248 'link_settings': {
249 'libraries': [
250 '-lX11',
251 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54252 '-lXss',
[email protected]dd363682009-12-28 20:30:46253 '-lXext',
254 ],
255 },
256 },],
[email protected]666900e2011-08-27 18:09:06257 ['toolkit_views==1', {
258 'sources': [
259 'common/native_web_keyboard_event_views.cc',
260 'common/native_web_keyboard_event_views.h',
261 ],
[email protected]0ce34852011-09-23 20:00:51262 }],
263 ['use_aura==1', {
264 'dependencies!': [
265 'default_plugin/default_plugin.gyp:default_plugin',
266 ],
267 }],
[email protected]cb5e5072011-05-19 21:49:41268 ['os_posix == 1 and OS != "mac"', {
[email protected]4641d3c2010-08-26 21:44:13269 'include_dirs': [
270 '<(SHARED_INTERMEDIATE_DIR)',
271 ],
[email protected]79440c52010-08-27 22:53:02272 # Because posix_version generates a header, we must set the
273 # hard_dependency flag.
274 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13275 'actions': [
276 {
277 'action_name': 'posix_version',
278 'variables': {
279 'lastchange_path':
280 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
281 'version_py_path': 'tools/build/version.py',
282 'version_path': 'VERSION',
283 'template_input_path': 'common/chrome_version_info_posix.h.version',
284 },
285 'conditions': [
286 [ 'branding == "Chrome"', {
287 'variables': {
288 'branding_path':
289 'app/theme/google_chrome/BRANDING',
290 },
291 }, { # else branding!="Chrome"
292 'variables': {
293 'branding_path':
294 'app/theme/chromium/BRANDING',
295 },
296 }],
297 ],
298 'inputs': [
299 '<(template_input_path)',
300 '<(version_path)',
301 '<(branding_path)',
302 '<(lastchange_path)',
303 ],
304 'outputs': [
305 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
306 ],
307 'action': [
308 'python',
309 '<(version_py_path)',
310 '-f', '<(version_path)',
311 '-f', '<(branding_path)',
312 '-f', '<(lastchange_path)',
313 '<(template_input_path)',
314 '<@(_outputs)',
315 ],
316 'message': 'Generating version information',
317 },
318 ],
319 }],
[email protected]dd363682009-12-28 20:30:46320 ['OS=="linux" and selinux==1', {
321 'dependencies': [
322 '../build/linux/system.gyp:selinux',
323 ],
324 }],
325 ['OS=="mac"', {
[email protected]00ecec52011-08-19 20:01:24326 'dependencies': [
327 '../third_party/mach_override/mach_override.gyp:mach_override',
328 ],
[email protected]56f0f262011-02-24 17:14:36329 'include_dirs': [
330 '../third_party/GTM',
331 ],
[email protected]dd363682009-12-28 20:30:46332 }],
[email protected]8cc9dd622010-06-28 15:13:10333 ['remoting==1', {
334 'dependencies': [
[email protected]6831f8bd2011-05-13 21:41:09335 '../remoting/remoting.gyp:remoting_client_plugin',
[email protected]8cc9dd622010-06-28 15:13:10336 ],
337 }],
[email protected]dd363682009-12-28 20:30:46338 ],
339 'export_dependent_settings': [
[email protected]23bb71f2011-04-21 22:22:10340 '../base/base.gyp:base',
[email protected]dd363682009-12-28 20:30:46341 ],
342 },
[email protected]3c3065d2010-05-06 21:59:55343 {
344 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53345 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55346 'sources': [
[email protected]f3d01742010-05-07 02:53:55347 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55348 'common/net/net_resource_provider.cc',
349 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01350 'common/net/predictor_common.h',
[email protected]d2f05d02011-01-27 18:51:01351 'common/net/gaia/gaia_auth_consumer.cc',
[email protected]a0e77042010-07-01 22:28:23352 'common/net/gaia/gaia_auth_consumer.h',
[email protected]1d8fe712010-11-10 22:47:26353 'common/net/gaia/gaia_auth_fetcher.cc',
354 'common/net/gaia/gaia_auth_fetcher.h',
[email protected]f3d01742010-05-07 02:53:55355 'common/net/gaia/gaia_authenticator.cc',
356 'common/net/gaia/gaia_authenticator.h',
[email protected]8fbfe662011-03-22 00:02:19357 'common/net/gaia/gaia_oauth_client.cc',
358 'common/net/gaia/gaia_oauth_client.h',
[email protected]63411a012011-06-15 19:14:24359 'common/net/gaia/gaia_urls.cc',
360 'common/net/gaia/gaia_urls.h',
[email protected]2b85b67a2011-02-10 23:41:40361 'common/net/gaia/google_service_auth_error.cc',
[email protected]99074c52010-08-19 18:44:19362 'common/net/gaia/google_service_auth_error.h',
[email protected]69c14c302011-06-19 23:40:35363 'common/net/gaia/oauth_request_signer.cc',
364 'common/net/gaia/oauth_request_signer.h',
[email protected]b1c2a5542010-10-08 12:44:40365 'common/net/x509_certificate_model.cc',
366 'common/net/x509_certificate_model_nss.cc',
367 'common/net/x509_certificate_model_openssl.cc',
368 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55369 ],
370 'dependencies': [
371 'chrome_resources',
372 'chrome_strings',
373 '../base/base.gyp:base',
[email protected]56af67212011-06-29 20:53:11374 '../crypto/crypto.gyp:crypto',
[email protected]f56279c2011-02-02 18:12:31375 '../gpu/gpu.gyp:gpu_ipc',
[email protected]3c3065d2010-05-06 21:59:55376 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42377 '../net/net.gyp:net',
[email protected]b1c2a5542010-10-08 12:44:40378 '../third_party/icu/icu.gyp:icui18n',
379 '../third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55380 ],
[email protected]b1c2a5542010-10-08 12:44:40381 'conditions': [
[email protected]cb5e5072011-05-19 21:49:41382 ['os_posix == 1 and OS != "mac"', {
[email protected]638e9df42011-05-31 17:19:30383 'dependencies': [
384 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40385 ],
386 },
387 { # else: OS is not in the above list
388 'sources!': [
389 'common/net/x509_certificate_model_nss.cc',
390 'common/net/x509_certificate_model_openssl.cc',
391 ],
392 },
393 ],
394 ['use_openssl==1', {
395 'sources!': [
396 'common/net/x509_certificate_model_nss.cc',
397 ],
398 },
399 { # else !use_openssl: remove the unneeded files
400 'sources!': [
401 'common/net/x509_certificate_model_openssl.cc',
402 ],
403 },
404 ],
405 ],
[email protected]3c3065d2010-05-06 21:59:55406 },
[email protected]133139772011-04-14 22:14:13407 {
[email protected]1c20dd62011-08-19 21:54:33408 # Protobuf compiler / generator for the safebrowsing client
409 # model proto and the client-side detection (csd) request
410 # protocol buffer.
[email protected]cae64fe2011-06-17 17:54:50411 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33412 'type': 'static_library',
413 'sources': [
414 'common/safe_browsing/client_model.proto',
415 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50416 ],
[email protected]1c20dd62011-08-19 21:54:33417 'variables': {
418 'proto_in_dir': 'common/safe_browsing',
419 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50420 },
[email protected]1c20dd62011-08-19 21:54:33421 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13422 },
[email protected]dd363682009-12-28 20:30:46423 ],
[email protected]dd363682009-12-28 20:30:46424}