blob: 25a4363a4ef0d2df4544376867b675f50ab6e595 [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{
6 'target_defaults': {
7 'variables': {
8 'chrome_common_target': 0,
9 },
10 'target_conditions': [
11 ['chrome_common_target==1', {
12 'include_dirs': [
13 '..',
14 ],
15 'conditions': [
16 ['OS=="win"', {
17 'include_dirs': [
[email protected]cd134c8c2010-03-09 05:23:1218 '<(DEPTH)/third_party/wtl/include',
[email protected]dd363682009-12-28 20:30:4619 ],
[email protected]dd363682009-12-28 20:30:4620 }],
21 ],
22 'sources': [
23 # .cc, .h, and .mm files under chrome/common that are used on all
24 # platforms, including both 32-bit and 64-bit Windows.
25 # Test files are not included.
[email protected]3e0f7d522010-06-18 04:09:1426 'common/about_handler.cc',
27 'common/about_handler.h',
[email protected]646b9b92010-04-30 21:51:5828 'common/app_mode_common_mac.h',
29 'common/app_mode_common_mac.mm',
[email protected]0d2fbd5c2011-03-23 10:40:1530 'common/attrition_experiments.h',
[email protected]d4cff272011-05-02 15:46:0131 'common/attributed_string_coder_mac.h',
32 'common/attributed_string_coder_mac.mm',
[email protected]b907defe2011-02-23 02:45:3433 'common/auto_start_linux.cc',
34 'common/auto_start_linux.h',
[email protected]19d6e1e82011-01-26 05:08:5835 'common/autofill_messages.h',
[email protected]dd363682009-12-28 20:30:4636 'common/child_process_logging.h',
37 'common/child_process_logging_linux.cc',
38 'common/child_process_logging_mac.mm',
39 'common/child_process_logging_win.cc',
[email protected]cf3ac3972010-12-22 20:02:2940 'common/chrome_version_info.cc',
41 'common/chrome_version_info.h',
[email protected]aee541e2010-03-19 01:52:4542 'common/content_settings.cc',
43 'common/content_settings.h',
[email protected]f895131a2010-07-23 05:36:0244 'common/content_settings_helper.cc',
45 'common/content_settings_helper.h',
[email protected]aee541e2010-03-19 01:52:4546 'common/content_settings_types.h',
[email protected]dd363682009-12-28 20:30:4647 'common/devtools_messages.h',
[email protected]89480312011-05-04 17:14:1648 'common/external_ipc_fuzzer.h',
49 'common/external_ipc_fuzzer.cc',
[email protected]3eb0d8f72010-12-15 23:38:2550 'common/guid.cc',
[email protected]cf3ac3972010-12-22 20:02:2951 'common/guid.h',
[email protected]3eb0d8f72010-12-15 23:38:2552 'common/guid_posix.cc',
53 'common/guid_win.cc',
[email protected]60f36f92011-04-12 16:18:3154 'common/icon_messages.h',
[email protected]1c9c7fb2011-03-11 16:38:3855 'common/instant_types.h',
[email protected]dd363682009-12-28 20:30:4656 'common/logging_chrome.cc',
57 'common/logging_chrome.h',
[email protected]1226abb2010-06-10 18:01:2858 'common/metrics_helpers.cc',
[email protected]3e0f7d522010-06-18 04:09:1459 'common/metrics_helpers.h',
[email protected]293fd7a92010-11-16 21:14:5860 'common/multi_process_lock.h',
61 'common/multi_process_lock_linux.cc',
62 'common/multi_process_lock_mac.cc',
63 'common/multi_process_lock_win.cc',
[email protected]103607e2010-02-01 18:57:0964 'common/nacl_cmd_line.cc',
65 'common/nacl_cmd_line.h',
[email protected]7a4de7a62010-08-17 18:38:2466 'common/nacl_messages.cc',
[email protected]dd363682009-12-28 20:30:4667 'common/nacl_messages.h',
[email protected]7a4de7a62010-08-17 18:38:2468 'common/nacl_types.h',
[email protected]7664ab32011-02-01 23:35:2569 'common/profiling.cc',
70 'common/profiling.h',
[email protected]dd363682009-12-28 20:30:4671 'common/ref_counted_util.h',
[email protected]133139772011-04-14 22:14:1372 'common/safe_browsing/safebrowsing_messages.h',
[email protected]382abc22010-01-17 10:09:3973 'common/sandbox_policy.cc',
74 'common/sandbox_policy.h',
[email protected]5c08f222010-09-22 09:37:2175 'common/switch_utils.cc',
76 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:4677 'common/time_format.cc',
78 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:4679 'common/win_safe_util.cc',
80 'common/win_safe_util.h',
81 ],
82 }],
83 ],
84 },
85 'targets': [
86 {
87 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:5388 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:4689 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
90 'variables': {
91 'chrome_common_target': 1,
92 },
93 # TODO(gregoryd): This could be shared with the 64-bit target, but
94 # it does not work due to a gyp issue.
95 'direct_dependent_settings': {
96 'include_dirs': [
97 '..',
98 ],
99 },
100 'dependencies': [
101 # TODO(gregoryd): chrome_resources and chrome_strings could be
102 # shared with the 64-bit target, but it does not work due to a gyp
103 # issue.
[email protected]f86369722011-02-17 13:25:23104 'app/policy/cloud_policy_codegen.gyp:policy',
[email protected]dd363682009-12-28 20:30:46105 'chrome_resources',
106 'chrome_strings',
107 'common_constants',
[email protected]3c3065d2010-05-06 21:59:55108 'common_net',
[email protected]0d64bb72010-07-07 05:36:38109 'default_plugin/default_plugin.gyp:default_plugin',
[email protected]9966325b2011-04-18 05:00:10110 'safe_browsing_csd_proto',
[email protected]dd363682009-12-28 20:30:46111 'theme_resources',
[email protected]5ca37da2011-04-21 19:40:15112 'theme_resources_standard',
[email protected]dd363682009-12-28 20:30:46113 '../app/app.gyp:app_base',
114 '../app/app.gyp:app_resources',
115 '../base/base.gyp:base',
116 '../base/base.gyp:base_i18n',
[email protected]23bb71f2011-04-21 22:22:10117 '../base/base.gyp:base_static',
[email protected]dd363682009-12-28 20:30:46118 '../build/temp_gyp/googleurl.gyp:googleurl',
[email protected]6c54e7e42011-03-02 20:52:34119 '../content/content.gyp:content_common',
[email protected]dd363682009-12-28 20:30:46120 '../ipc/ipc.gyp:ipc',
121 '../net/net.gyp:net',
[email protected]13095402010-07-20 00:15:43122 '../printing/printing.gyp:printing',
[email protected]dd363682009-12-28 20:30:46123 '../skia/skia.gyp:skia',
[email protected]423bfef2010-06-18 17:17:28124 '../third_party/bzip2/bzip2.gyp:bzip2',
[email protected]dd363682009-12-28 20:30:46125 '../third_party/icu/icu.gyp:icui18n',
126 '../third_party/icu/icu.gyp:icuuc',
127 '../third_party/libxml/libxml.gyp:libxml',
128 '../third_party/sqlite/sqlite.gyp:sqlite',
129 '../third_party/zlib/zlib.gyp:zlib',
[email protected]69d3dfe82010-05-14 03:21:55130 '../webkit/support/webkit_support.gyp:glue',
[email protected]dd363682009-12-28 20:30:46131 ],
132 'sources': [
133 # .cc, .h, and .mm files under chrome/common that are not required for
134 # building 64-bit Windows targets. Test files are not included.
[email protected]cdb8bc282010-11-22 19:23:06135 'common/automation_constants.cc',
136 'common/automation_constants.h',
137 'common/automation_messages.cc',
138 'common/automation_messages.h',
139 'common/automation_messages_internal.h',
140 'common/badge_util.cc',
141 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:10142 'common/bzip2_error_handler.cc',
[email protected]50e52cd2011-03-10 00:57:29143 'common/chrome_content_client.cc',
144 'common/chrome_content_client.h',
[email protected]490f79c12011-03-17 22:24:43145 'common/chrome_content_plugin_client.cc',
146 'common/chrome_content_plugin_client.h',
[email protected]de119cf22011-05-11 20:41:35147 'common/cloud_print/cloud_print_proxy_info.cc',
148 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]ceee7662011-05-12 21:06:00149 'common/common_api.h',
[email protected]cdb8bc282010-11-22 19:23:06150 'common/common_glue.cc',
[email protected]fffaf972011-03-24 01:34:35151 'common/common_message_generator.cc',
152 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:03153 'common/common_param_traits.cc',
154 'common/common_param_traits.h',
[email protected]cdb8bc282010-11-22 19:23:06155 'common/default_plugin.cc',
156 'common/default_plugin.h',
157 'common/deprecated/event_sys-inl.h',
158 'common/deprecated/event_sys.h',
[email protected]dd363682009-12-28 20:30:46159 'common/extensions/extension.cc',
160 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13161 'common/extensions/extension_action.cc',
162 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46163 'common/extensions/extension_constants.cc',
164 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46165 'common/extensions/extension_error_utils.cc',
166 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13167 'common/extensions/extension_file_util.cc',
168 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48169 'common/extensions/extension_icon_set.cc',
170 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46171 'common/extensions/extension_l10n_util.cc',
172 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09173 'common/extensions/extension_localization_peer.cc',
174 'common/extensions/extension_localization_peer.h',
[email protected]dd363682009-12-28 20:30:46175 'common/extensions/extension_message_bundle.cc',
176 'common/extensions/extension_message_bundle.h',
[email protected]44c49c92011-03-28 16:17:23177 'common/extensions/extension_messages.cc',
178 'common/extensions/extension_messages.h',
[email protected]dd363682009-12-28 20:30:46179 'common/extensions/extension_resource.cc',
180 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36181 'common/extensions/extension_set.cc',
182 'common/extensions/extension_set.h',
[email protected]e2dffe02011-01-20 20:30:06183 'common/extensions/extension_sidebar_defaults.h',
184 'common/extensions/extension_sidebar_utils.cc',
185 'common/extensions/extension_sidebar_utils.h',
[email protected]dd363682009-12-28 20:30:46186 'common/extensions/extension_unpacker.cc',
187 'common/extensions/extension_unpacker.h',
[email protected]b6b805e92011-04-16 09:24:14188 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42189 'common/extensions/file_browser_handler.h',
[email protected]dd363682009-12-28 20:30:46190 'common/extensions/update_manifest.cc',
191 'common/extensions/update_manifest.h',
192 'common/extensions/url_pattern.cc',
193 'common/extensions/url_pattern.h',
[email protected]cced75a2011-05-20 08:31:12194 'common/extensions/url_pattern_set.cc',
195 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46196 'common/extensions/user_script.cc',
197 'common/extensions/user_script.h',
[email protected]ae4efe42011-04-18 21:28:05198 'common/favicon_url.cc',
199 'common/favicon_url.h',
[email protected]6658ca82010-05-20 18:20:29200 'common/important_file_writer.cc',
201 'common/important_file_writer.h',
[email protected]ea587b02010-05-21 15:01:35202 'common/json_pref_store.cc',
203 'common/json_pref_store.h',
[email protected]639e6712010-11-11 22:21:43204 'common/json_schema_validator.cc',
205 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46206 'common/jstemplate_builder.cc',
207 'common/jstemplate_builder.h',
[email protected]4130d9e2011-03-22 05:19:29208 'common/launchd_mac.h',
209 'common/launchd_mac.mm',
[email protected]dd363682009-12-28 20:30:46210 'common/libxml_utils.cc',
211 'common/libxml_utils.h',
[email protected]dd363682009-12-28 20:30:46212 'common/native_window_notification_source.h',
[email protected]f2d1f612010-12-09 15:10:17213 'common/persistent_pref_store.h',
[email protected]0f1afed2010-12-15 17:22:28214 'common/pref_store.cc',
[email protected]ce1850e92010-10-15 08:40:58215 'common/pref_store.h',
[email protected]1375e3ab2011-03-24 17:07:22216 'common/print_messages.h',
[email protected]51a01812011-05-05 08:46:11217 'common/random.cc',
218 'common/random.h',
[email protected]7a4de7a62010-08-17 18:38:24219 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46220 'common/render_messages.h',
[email protected]9966325b2011-04-18 05:00:10221 '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.cc',
[email protected]133139772011-04-14 22:14:13222 '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.h',
[email protected]c08e7932011-03-29 04:08:14223 'common/search_provider.h',
[email protected]cccd3762010-11-12 18:40:01224 'common/security_style.h',
[email protected]38fe1962010-07-31 07:57:00225 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24226 'common/service_process_util.cc',
227 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36228 'common/service_process_util_linux.cc',
229 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04230 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36231 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04232 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46233 'common/spellcheck_common.cc',
234 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45235 'common/spellcheck_messages.h',
[email protected]dd363682009-12-28 20:30:46236 'common/sqlite_utils.cc',
237 'common/sqlite_utils.h',
[email protected]d4cff272011-05-02 15:46:01238 'common/text_input_client_messages.cc',
239 'common/text_input_client_messages.h',
[email protected]dd363682009-12-28 20:30:46240 'common/thumbnail_score.cc',
241 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46242 'common/url_constants.cc',
243 'common/url_constants.h',
244 'common/utility_messages.h',
[email protected]dd363682009-12-28 20:30:46245 'common/visitedlink_common.cc',
246 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44247 'common/web_apps.cc',
248 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06249 'common/web_resource/web_resource_unpacker.cc',
250 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46251 'common/worker_thread_ticker.cc',
252 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46253 'common/zip.cc', # Requires zlib directly.
254 'common/zip.h',
255 ],
256 'conditions': [
[email protected]cb5e5072011-05-19 21:49:41257 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46258 'dependencies': [
259 '../build/linux/system.gyp:gtk',
260 ],
261 'export_dependent_settings': [
262 '../third_party/sqlite/sqlite.gyp:sqlite',
263 ],
264 'link_settings': {
265 'libraries': [
266 '-lX11',
267 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54268 '-lXss',
[email protected]dd363682009-12-28 20:30:46269 '-lXext',
270 ],
271 },
272 },],
[email protected]cb5e5072011-05-19 21:49:41273 ['os_posix == 1 and OS != "mac"', {
[email protected]4641d3c2010-08-26 21:44:13274 'include_dirs': [
275 '<(SHARED_INTERMEDIATE_DIR)',
276 ],
[email protected]79440c52010-08-27 22:53:02277 # Because posix_version generates a header, we must set the
278 # hard_dependency flag.
279 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13280 'actions': [
281 {
282 'action_name': 'posix_version',
283 'variables': {
284 'lastchange_path':
285 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
286 'version_py_path': 'tools/build/version.py',
287 'version_path': 'VERSION',
288 'template_input_path': 'common/chrome_version_info_posix.h.version',
289 },
290 'conditions': [
291 [ 'branding == "Chrome"', {
292 'variables': {
293 'branding_path':
294 'app/theme/google_chrome/BRANDING',
295 },
296 }, { # else branding!="Chrome"
297 'variables': {
298 'branding_path':
299 'app/theme/chromium/BRANDING',
300 },
301 }],
302 ],
303 'inputs': [
304 '<(template_input_path)',
305 '<(version_path)',
306 '<(branding_path)',
307 '<(lastchange_path)',
308 ],
309 'outputs': [
310 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
311 ],
312 'action': [
313 'python',
314 '<(version_py_path)',
315 '-f', '<(version_path)',
316 '-f', '<(branding_path)',
317 '-f', '<(lastchange_path)',
318 '<(template_input_path)',
319 '<@(_outputs)',
320 ],
321 'message': 'Generating version information',
322 },
323 ],
324 }],
[email protected]dd363682009-12-28 20:30:46325 ['OS=="linux" and selinux==1', {
326 'dependencies': [
327 '../build/linux/system.gyp:selinux',
328 ],
329 }],
330 ['OS=="mac"', {
[email protected]56f0f262011-02-24 17:14:36331 'include_dirs': [
332 '../third_party/GTM',
333 ],
[email protected]dd363682009-12-28 20:30:46334 }],
[email protected]382abc22010-01-17 10:09:39335 ['OS!="win"', {
336 'sources!': [
337 'common/sandbox_policy.cc',
338 ],
339 }],
[email protected]8cc9dd622010-06-28 15:13:10340 ['remoting==1', {
341 'dependencies': [
[email protected]6831f8bd2011-05-13 21:41:09342 '../remoting/remoting.gyp:remoting_client_plugin',
[email protected]8cc9dd622010-06-28 15:13:10343 ],
344 }],
[email protected]dd363682009-12-28 20:30:46345 ],
346 'export_dependent_settings': [
347 '../app/app.gyp:app_base',
[email protected]23bb71f2011-04-21 22:22:10348 '../base/base.gyp:base',
[email protected]dd363682009-12-28 20:30:46349 ],
350 },
[email protected]3c3065d2010-05-06 21:59:55351 {
352 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53353 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55354 'sources': [
[email protected]f3d01742010-05-07 02:53:55355 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55356 'common/net/net_resource_provider.cc',
357 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01358 'common/net/predictor_common.h',
[email protected]68d2a05f2010-05-07 21:39:55359 'common/net/url_fetcher.cc',
360 'common/net/url_fetcher.h',
[email protected]d2f05d02011-01-27 18:51:01361 'common/net/gaia/gaia_auth_consumer.cc',
[email protected]a0e77042010-07-01 22:28:23362 'common/net/gaia/gaia_auth_consumer.h',
[email protected]1d8fe712010-11-10 22:47:26363 'common/net/gaia/gaia_auth_fetcher.cc',
364 'common/net/gaia/gaia_auth_fetcher.h',
[email protected]f3d01742010-05-07 02:53:55365 'common/net/gaia/gaia_authenticator.cc',
366 'common/net/gaia/gaia_authenticator.h',
[email protected]8fbfe662011-03-22 00:02:19367 'common/net/gaia/gaia_oauth_client.cc',
368 'common/net/gaia/gaia_oauth_client.h',
[email protected]2b85b67a2011-02-10 23:41:40369 'common/net/gaia/google_service_auth_error.cc',
[email protected]99074c52010-08-19 18:44:19370 'common/net/gaia/google_service_auth_error.h',
[email protected]b1c2a5542010-10-08 12:44:40371 'common/net/x509_certificate_model.cc',
372 'common/net/x509_certificate_model_nss.cc',
373 'common/net/x509_certificate_model_openssl.cc',
374 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55375 ],
376 'dependencies': [
377 'chrome_resources',
378 'chrome_strings',
[email protected]8dc64b42010-05-14 07:26:42379 '../app/app.gyp:app_base',
[email protected]3c3065d2010-05-06 21:59:55380 '../base/base.gyp:base',
[email protected]f56279c2011-02-02 18:12:31381 '../gpu/gpu.gyp:gpu_ipc',
[email protected]3c3065d2010-05-06 21:59:55382 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42383 '../net/net.gyp:net',
[email protected]b1c2a5542010-10-08 12:44:40384 '../third_party/icu/icu.gyp:icui18n',
385 '../third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55386 ],
[email protected]b1c2a5542010-10-08 12:44:40387 'conditions': [
[email protected]cb5e5072011-05-19 21:49:41388 ['os_posix == 1 and OS != "mac"', {
[email protected]3ddfe482010-11-02 10:43:45389 'conditions': [
390 ['use_openssl==1', {
391 'dependencies': [
[email protected]32e1dee2010-12-09 18:36:24392 '../third_party/openssl/openssl.gyp:openssl',
[email protected]3ddfe482010-11-02 10:43:45393 ],
394 },
395 { # else !use_openssl
396 'dependencies': [
397 '../build/linux/system.gyp:nss',
398 ],
399 },
400 ],
[email protected]b1c2a5542010-10-08 12:44:40401 ],
402 },
403 { # else: OS is not in the above list
404 'sources!': [
405 'common/net/x509_certificate_model_nss.cc',
406 'common/net/x509_certificate_model_openssl.cc',
407 ],
408 },
409 ],
410 ['use_openssl==1', {
411 'sources!': [
412 'common/net/x509_certificate_model_nss.cc',
413 ],
414 },
415 { # else !use_openssl: remove the unneeded files
416 'sources!': [
417 'common/net/x509_certificate_model_openssl.cc',
418 ],
419 },
420 ],
421 ],
[email protected]3c3065d2010-05-06 21:59:55422 },
[email protected]133139772011-04-14 22:14:13423 {
424 # Protobuf compiler / generator for the safebrowsing client-side detection
425 # (csd) request protocol buffer which is used both in the renderer and in
426 # the browser.
427 'target_name': 'safe_browsing_csd_proto',
428 'type': 'none',
429 'sources': [ 'common/safe_browsing/csd.proto' ],
430 'rules': [
431 {
432 'rule_name': 'genproto',
433 'extension': 'proto',
434 'inputs': [
435 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
436 ],
437 'variables': {
438 # The protoc compiler requires a proto_path argument with the
439 # directory containing the .proto file.
440 # There's no generator variable that corresponds to this, so fake
441 # it.
442 'rule_input_relpath': 'common/safe_browsing',
443 },
444 'outputs': [
445 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h',
446 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc',
447 ],
448 'action': [
449 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
450 '--proto_path=./<(rule_input_relpath)',
451 './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
452 '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)',
453 ],
454 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
455 },
456 ],
457 'dependencies': [
458 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
459 '../third_party/protobuf/protobuf.gyp:protoc#host',
460 ],
461 'direct_dependent_settings': {
462 'include_dirs': [
463 '<(protoc_out_dir)',
464 ]
465 },
466 'export_dependent_settings': [
467 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
468 ],
469 },
[email protected]dd363682009-12-28 20:30:46470 ],
471 'conditions': [
472 ['OS=="win"', {
473 'targets': [
474 {
475 'target_name': 'common_nacl_win64',
[email protected]5a547332011-05-19 23:18:53476 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:46477 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
478 'variables': {
479 'chrome_common_target': 1,
480 },
481 'dependencies': [
482 # TODO(gregoryd): chrome_resources and chrome_strings could be
483 # shared with the 32-bit target, but it does not work due to a gyp
484 # issue.
485 'chrome_resources',
486 'chrome_strings',
487 'common_constants_win64',
[email protected]f86369722011-02-17 13:25:23488 'app/policy/cloud_policy_codegen.gyp:policy_win64',
[email protected]dd363682009-12-28 20:30:46489 '../app/app.gyp:app_base_nacl_win64',
490 '../app/app.gyp:app_resources',
491 '../base/base.gyp:base_nacl_win64',
492 '../ipc/ipc.gyp:ipc_win64',
[email protected]3e0f7d522010-06-18 04:09:14493 '../third_party/libxml/libxml.gyp:libxml',
[email protected]dd363682009-12-28 20:30:46494 ],
495 'include_dirs': [
[email protected]dd363682009-12-28 20:30:46496 '../third_party/icu/public/i18n',
497 '../third_party/icu/public/common',
498 # We usually get these skia directories by adding a dependency on
499 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
500 # directories are required for resolving the includes in any case.
[email protected]38789d82010-11-17 06:03:44501 '../third_party/skia/include/config',
[email protected]dd363682009-12-28 20:30:46502 '../third_party/skia/include/core',
503 '../skia/config',
[email protected]38789d82010-11-17 06:03:44504 '../skia/config/win',
[email protected]dd363682009-12-28 20:30:46505 ],
506 'defines': [
[email protected]dd363682009-12-28 20:30:46507 '<@(nacl_win64_defines)',
508 ],
509 'sources': [
510 '../webkit/glue/webkit_glue_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20511 'common/url_constants.cc',
[email protected]7ef40ffe12011-03-08 05:05:28512 # TODO(bradnelson): once automatic generation of 64 bit targets on
513 # Windows is ready, take this out and add a dependency on
514 # content_common.gypi.
515 '../content/common/file_system/file_system_dispatcher_dummy.cc',
[email protected]b2e375f2011-03-03 23:20:24516 '../content/common/message_router.cc',
[email protected]10e5cf12011-04-13 04:10:40517 '../content/common/quota_dispatcher_dummy.cc',
[email protected]620161e2011-03-07 18:05:26518 '../content/common/resource_dispatcher_dummy.cc',
[email protected]7ef40ffe12011-03-08 05:05:28519 '../content/common/socket_stream_dispatcher_dummy.cc',
[email protected]dd363682009-12-28 20:30:46520 ],
521 'export_dependent_settings': [
522 '../app/app.gyp:app_base_nacl_win64',
[email protected]f86369722011-02-17 13:25:23523 'app/policy/cloud_policy_codegen.gyp:policy_win64',
[email protected]dd363682009-12-28 20:30:46524 ],
525 # TODO(gregoryd): This could be shared with the 32-bit target, but
526 # it does not work due to a gyp issue.
527 'direct_dependent_settings': {
528 'include_dirs': [
529 '..',
530 ],
531 },
532 'configurations': {
533 'Common_Base': {
534 'msvs_target_platform': 'x64',
535 },
536 },
537 },
538 ],
539 }],
540 ],
541}