blob: f2616d993b3ebd38d537f331834fbf39621a72a5 [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]89480312011-05-04 17:14:1647 'common/external_ipc_fuzzer.h',
48 'common/external_ipc_fuzzer.cc',
[email protected]3eb0d8f72010-12-15 23:38:2549 'common/guid.cc',
[email protected]cf3ac3972010-12-22 20:02:2950 'common/guid.h',
[email protected]3eb0d8f72010-12-15 23:38:2551 'common/guid_posix.cc',
52 'common/guid_win.cc',
[email protected]60f36f92011-04-12 16:18:3153 'common/icon_messages.h',
[email protected]1c9c7fb2011-03-11 16:38:3854 'common/instant_types.h',
[email protected]dd363682009-12-28 20:30:4655 'common/logging_chrome.cc',
56 'common/logging_chrome.h',
[email protected]1226abb2010-06-10 18:01:2857 'common/metrics_helpers.cc',
[email protected]3e0f7d522010-06-18 04:09:1458 'common/metrics_helpers.h',
[email protected]293fd7a92010-11-16 21:14:5859 'common/multi_process_lock.h',
60 'common/multi_process_lock_linux.cc',
61 'common/multi_process_lock_mac.cc',
62 'common/multi_process_lock_win.cc',
[email protected]103607e2010-02-01 18:57:0963 'common/nacl_cmd_line.cc',
64 'common/nacl_cmd_line.h',
[email protected]7a4de7a62010-08-17 18:38:2465 'common/nacl_messages.cc',
[email protected]dd363682009-12-28 20:30:4666 'common/nacl_messages.h',
[email protected]7a4de7a62010-08-17 18:38:2467 'common/nacl_types.h',
[email protected]7664ab32011-02-01 23:35:2568 'common/profiling.cc',
69 'common/profiling.h',
[email protected]dd363682009-12-28 20:30:4670 'common/ref_counted_util.h',
[email protected]133139772011-04-14 22:14:1371 'common/safe_browsing/safebrowsing_messages.h',
[email protected]5c08f222010-09-22 09:37:2172 'common/switch_utils.cc',
73 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:4674 'common/time_format.cc',
75 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:4676 'common/win_safe_util.cc',
77 'common/win_safe_util.h',
78 ],
79 }],
80 ],
81 },
82 'targets': [
83 {
84 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:5385 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:4686 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
87 'variables': {
88 'chrome_common_target': 1,
89 },
90 # TODO(gregoryd): This could be shared with the 64-bit target, but
91 # it does not work due to a gyp issue.
92 'direct_dependent_settings': {
93 'include_dirs': [
94 '..',
[email protected]cae64fe2011-06-17 17:54:5095 # Allow other targets to depend on common for the SafeBrowsing
96 # protobuf generated targets.
97 '<(protoc_out_dir)',
[email protected]dd363682009-12-28 20:30:4698 ],
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]cae64fe2011-06-17 17:54:50111 'safe_browsing_proto',
[email protected]dd363682009-12-28 20:30:46112 'theme_resources',
[email protected]5ca37da2011-04-21 19:40:15113 'theme_resources_standard',
[email protected]dd363682009-12-28 20:30:46114 '../app/app.gyp:app_base',
115 '../app/app.gyp:app_resources',
116 '../base/base.gyp:base',
117 '../base/base.gyp:base_i18n',
[email protected]23bb71f2011-04-21 22:22:10118 '../base/base.gyp:base_static',
[email protected]dd363682009-12-28 20:30:46119 '../build/temp_gyp/googleurl.gyp:googleurl',
[email protected]6c54e7e42011-03-02 20:52:34120 '../content/content.gyp:content_common',
[email protected]dd363682009-12-28 20:30:46121 '../ipc/ipc.gyp:ipc',
122 '../net/net.gyp:net',
[email protected]13095402010-07-20 00:15:43123 '../printing/printing.gyp:printing',
[email protected]dd363682009-12-28 20:30:46124 '../skia/skia.gyp:skia',
[email protected]423bfef2010-06-18 17:17:28125 '../third_party/bzip2/bzip2.gyp:bzip2',
[email protected]dd363682009-12-28 20:30:46126 '../third_party/icu/icu.gyp:icui18n',
127 '../third_party/icu/icu.gyp:icuuc',
128 '../third_party/libxml/libxml.gyp:libxml',
[email protected]cae64fe2011-06-17 17:54:50129 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
[email protected]dd363682009-12-28 20:30:46130 '../third_party/sqlite/sqlite.gyp:sqlite',
131 '../third_party/zlib/zlib.gyp:zlib',
[email protected]69d3dfe82010-05-14 03:21:55132 '../webkit/support/webkit_support.gyp:glue',
[email protected]dd363682009-12-28 20:30:46133 ],
134 'sources': [
135 # .cc, .h, and .mm files under chrome/common that are not required for
136 # building 64-bit Windows targets. Test files are not included.
[email protected]cdb8bc282010-11-22 19:23:06137 'common/automation_constants.cc',
138 'common/automation_constants.h',
139 'common/automation_messages.cc',
140 'common/automation_messages.h',
141 'common/automation_messages_internal.h',
142 'common/badge_util.cc',
143 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:10144 'common/bzip2_error_handler.cc',
[email protected]50e52cd2011-03-10 00:57:29145 'common/chrome_content_client.cc',
146 'common/chrome_content_client.h',
[email protected]490f79c12011-03-17 22:24:43147 'common/chrome_content_plugin_client.cc',
148 'common/chrome_content_plugin_client.h',
[email protected]de119cf22011-05-11 20:41:35149 'common/cloud_print/cloud_print_proxy_info.cc',
150 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]ceee7662011-05-12 21:06:00151 'common/common_api.h',
[email protected]fffaf972011-03-24 01:34:35152 'common/common_message_generator.cc',
153 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:03154 'common/common_param_traits.cc',
155 'common/common_param_traits.h',
[email protected]cdb8bc282010-11-22 19:23:06156 'common/default_plugin.cc',
157 'common/default_plugin.h',
158 'common/deprecated/event_sys-inl.h',
159 'common/deprecated/event_sys.h',
[email protected]dd363682009-12-28 20:30:46160 'common/extensions/extension.cc',
161 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13162 'common/extensions/extension_action.cc',
163 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46164 'common/extensions/extension_constants.cc',
165 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46166 'common/extensions/extension_error_utils.cc',
167 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13168 'common/extensions/extension_file_util.cc',
169 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48170 'common/extensions/extension_icon_set.cc',
171 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46172 'common/extensions/extension_l10n_util.cc',
173 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09174 'common/extensions/extension_localization_peer.cc',
175 'common/extensions/extension_localization_peer.h',
[email protected]dd363682009-12-28 20:30:46176 'common/extensions/extension_message_bundle.cc',
177 'common/extensions/extension_message_bundle.h',
[email protected]44c49c92011-03-28 16:17:23178 'common/extensions/extension_messages.cc',
179 'common/extensions/extension_messages.h',
[email protected]dd363682009-12-28 20:30:46180 'common/extensions/extension_resource.cc',
181 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36182 'common/extensions/extension_set.cc',
183 'common/extensions/extension_set.h',
[email protected]e2dffe02011-01-20 20:30:06184 'common/extensions/extension_sidebar_defaults.h',
185 'common/extensions/extension_sidebar_utils.cc',
186 'common/extensions/extension_sidebar_utils.h',
[email protected]dd363682009-12-28 20:30:46187 'common/extensions/extension_unpacker.cc',
188 'common/extensions/extension_unpacker.h',
[email protected]b6b805e92011-04-16 09:24:14189 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42190 'common/extensions/file_browser_handler.h',
[email protected]dd363682009-12-28 20:30:46191 'common/extensions/update_manifest.cc',
192 'common/extensions/update_manifest.h',
193 'common/extensions/url_pattern.cc',
194 'common/extensions/url_pattern.h',
[email protected]cced75a2011-05-20 08:31:12195 'common/extensions/url_pattern_set.cc',
196 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46197 'common/extensions/user_script.cc',
198 'common/extensions/user_script.h',
[email protected]ae4efe42011-04-18 21:28:05199 'common/favicon_url.cc',
200 'common/favicon_url.h',
[email protected]6658ca82010-05-20 18:20:29201 'common/important_file_writer.cc',
202 'common/important_file_writer.h',
[email protected]ea587b02010-05-21 15:01:35203 'common/json_pref_store.cc',
204 'common/json_pref_store.h',
[email protected]639e6712010-11-11 22:21:43205 'common/json_schema_validator.cc',
206 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46207 'common/jstemplate_builder.cc',
208 'common/jstemplate_builder.h',
[email protected]4130d9e2011-03-22 05:19:29209 'common/launchd_mac.h',
210 'common/launchd_mac.mm',
[email protected]dd363682009-12-28 20:30:46211 'common/libxml_utils.cc',
212 'common/libxml_utils.h',
[email protected]dd363682009-12-28 20:30:46213 'common/native_window_notification_source.h',
[email protected]f2d1f612010-12-09 15:10:17214 'common/persistent_pref_store.h',
[email protected]0f1afed2010-12-15 17:22:28215 'common/pref_store.cc',
[email protected]ce1850e92010-10-15 08:40:58216 'common/pref_store.h',
[email protected]1375e3ab2011-03-24 17:07:22217 'common/print_messages.h',
[email protected]51a01812011-05-05 08:46:11218 'common/random.cc',
219 'common/random.h',
[email protected]7a4de7a62010-08-17 18:38:24220 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46221 'common/render_messages.h',
[email protected]cae64fe2011-06-17 17:54:50222 '<(protoc_out_dir)/chrome/common/safe_browsing/client_model.pb.cc',
223 '<(protoc_out_dir)/chrome/common/safe_browsing/client_model.pb.h',
[email protected]9966325b2011-04-18 05:00:10224 '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.cc',
[email protected]133139772011-04-14 22:14:13225 '<(protoc_out_dir)/chrome/common/safe_browsing/csd.pb.h',
[email protected]c08e7932011-03-29 04:08:14226 'common/search_provider.h',
[email protected]38fe1962010-07-31 07:57:00227 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24228 'common/service_process_util.cc',
229 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36230 'common/service_process_util_linux.cc',
231 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04232 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36233 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04234 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46235 'common/spellcheck_common.cc',
236 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45237 'common/spellcheck_messages.h',
[email protected]dd363682009-12-28 20:30:46238 'common/sqlite_utils.cc',
239 'common/sqlite_utils.h',
[email protected]d4cff272011-05-02 15:46:01240 'common/text_input_client_messages.h',
[email protected]dd363682009-12-28 20:30:46241 'common/thumbnail_score.cc',
242 'common/thumbnail_score.h',
[email protected]dd363682009-12-28 20:30:46243 'common/url_constants.cc',
244 'common/url_constants.h',
245 'common/utility_messages.h',
[email protected]dd363682009-12-28 20:30:46246 'common/visitedlink_common.cc',
247 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44248 'common/web_apps.cc',
249 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06250 'common/web_resource/web_resource_unpacker.cc',
251 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46252 'common/worker_thread_ticker.cc',
253 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46254 'common/zip.cc', # Requires zlib directly.
255 'common/zip.h',
256 ],
257 'conditions': [
[email protected]cb5e5072011-05-19 21:49:41258 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46259 'dependencies': [
260 '../build/linux/system.gyp:gtk',
261 ],
262 'export_dependent_settings': [
263 '../third_party/sqlite/sqlite.gyp:sqlite',
264 ],
265 'link_settings': {
266 'libraries': [
267 '-lX11',
268 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54269 '-lXss',
[email protected]dd363682009-12-28 20:30:46270 '-lXext',
271 ],
272 },
273 },],
[email protected]cb5e5072011-05-19 21:49:41274 ['os_posix == 1 and OS != "mac"', {
[email protected]4641d3c2010-08-26 21:44:13275 'include_dirs': [
276 '<(SHARED_INTERMEDIATE_DIR)',
277 ],
[email protected]79440c52010-08-27 22:53:02278 # Because posix_version generates a header, we must set the
279 # hard_dependency flag.
280 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13281 'actions': [
282 {
283 'action_name': 'posix_version',
284 'variables': {
285 'lastchange_path':
286 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
287 'version_py_path': 'tools/build/version.py',
288 'version_path': 'VERSION',
289 'template_input_path': 'common/chrome_version_info_posix.h.version',
290 },
291 'conditions': [
292 [ 'branding == "Chrome"', {
293 'variables': {
294 'branding_path':
295 'app/theme/google_chrome/BRANDING',
296 },
297 }, { # else branding!="Chrome"
298 'variables': {
299 'branding_path':
300 'app/theme/chromium/BRANDING',
301 },
302 }],
303 ],
304 'inputs': [
305 '<(template_input_path)',
306 '<(version_path)',
307 '<(branding_path)',
308 '<(lastchange_path)',
309 ],
310 'outputs': [
311 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
312 ],
313 'action': [
314 'python',
315 '<(version_py_path)',
316 '-f', '<(version_path)',
317 '-f', '<(branding_path)',
318 '-f', '<(lastchange_path)',
319 '<(template_input_path)',
320 '<@(_outputs)',
321 ],
322 'message': 'Generating version information',
323 },
324 ],
325 }],
[email protected]dd363682009-12-28 20:30:46326 ['OS=="linux" and selinux==1', {
327 'dependencies': [
328 '../build/linux/system.gyp:selinux',
329 ],
330 }],
331 ['OS=="mac"', {
[email protected]56f0f262011-02-24 17:14:36332 'include_dirs': [
333 '../third_party/GTM',
334 ],
[email protected]dd363682009-12-28 20:30:46335 }],
[email protected]8cc9dd622010-06-28 15:13:10336 ['remoting==1', {
337 'dependencies': [
[email protected]6831f8bd2011-05-13 21:41:09338 '../remoting/remoting.gyp:remoting_client_plugin',
[email protected]8cc9dd622010-06-28 15:13:10339 ],
340 }],
[email protected]dd363682009-12-28 20:30:46341 ],
342 'export_dependent_settings': [
343 '../app/app.gyp:app_base',
[email protected]23bb71f2011-04-21 22:22:10344 '../base/base.gyp:base',
[email protected]cae64fe2011-06-17 17:54:50345 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
[email protected]dd363682009-12-28 20:30:46346 ],
347 },
[email protected]3c3065d2010-05-06 21:59:55348 {
349 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53350 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55351 'sources': [
[email protected]f3d01742010-05-07 02:53:55352 'common/net/http_return.h',
[email protected]3c3065d2010-05-06 21:59:55353 'common/net/net_resource_provider.cc',
354 'common/net/net_resource_provider.h',
[email protected]3530cd92010-06-27 06:22:01355 'common/net/predictor_common.h',
[email protected]d2f05d02011-01-27 18:51:01356 'common/net/gaia/gaia_auth_consumer.cc',
[email protected]a0e77042010-07-01 22:28:23357 'common/net/gaia/gaia_auth_consumer.h',
[email protected]1d8fe712010-11-10 22:47:26358 'common/net/gaia/gaia_auth_fetcher.cc',
359 'common/net/gaia/gaia_auth_fetcher.h',
[email protected]f3d01742010-05-07 02:53:55360 'common/net/gaia/gaia_authenticator.cc',
361 'common/net/gaia/gaia_authenticator.h',
[email protected]8fbfe662011-03-22 00:02:19362 'common/net/gaia/gaia_oauth_client.cc',
363 'common/net/gaia/gaia_oauth_client.h',
[email protected]63411a012011-06-15 19:14:24364 'common/net/gaia/gaia_urls.cc',
365 'common/net/gaia/gaia_urls.h',
[email protected]2b85b67a2011-02-10 23:41:40366 'common/net/gaia/google_service_auth_error.cc',
[email protected]99074c52010-08-19 18:44:19367 'common/net/gaia/google_service_auth_error.h',
[email protected]b1c2a5542010-10-08 12:44:40368 'common/net/x509_certificate_model.cc',
369 'common/net/x509_certificate_model_nss.cc',
370 'common/net/x509_certificate_model_openssl.cc',
371 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55372 ],
373 'dependencies': [
374 'chrome_resources',
375 'chrome_strings',
[email protected]8dc64b42010-05-14 07:26:42376 '../app/app.gyp:app_base',
[email protected]3c3065d2010-05-06 21:59:55377 '../base/base.gyp:base',
[email protected]f56279c2011-02-02 18:12:31378 '../gpu/gpu.gyp:gpu_ipc',
[email protected]3c3065d2010-05-06 21:59:55379 '../net/net.gyp:net_resources',
[email protected]8dc64b42010-05-14 07:26:42380 '../net/net.gyp:net',
[email protected]b1c2a5542010-10-08 12:44:40381 '../third_party/icu/icu.gyp:icui18n',
382 '../third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55383 ],
[email protected]b1c2a5542010-10-08 12:44:40384 'conditions': [
[email protected]cb5e5072011-05-19 21:49:41385 ['os_posix == 1 and OS != "mac"', {
[email protected]638e9df42011-05-31 17:19:30386 'dependencies': [
387 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40388 ],
389 },
390 { # else: OS is not in the above list
391 'sources!': [
392 'common/net/x509_certificate_model_nss.cc',
393 'common/net/x509_certificate_model_openssl.cc',
394 ],
395 },
396 ],
397 ['use_openssl==1', {
398 'sources!': [
399 'common/net/x509_certificate_model_nss.cc',
400 ],
401 },
402 { # else !use_openssl: remove the unneeded files
403 'sources!': [
404 'common/net/x509_certificate_model_openssl.cc',
405 ],
406 },
407 ],
408 ],
[email protected]3c3065d2010-05-06 21:59:55409 },
[email protected]133139772011-04-14 22:14:13410 {
[email protected]cae64fe2011-06-17 17:54:50411 # Protobuf compiler / generator for the safebrowsing client model proto.
412 'target_name': 'safe_browsing_proto',
413 'type': 'none',
414 'sources': [ 'common/safe_browsing/client_model.proto' ],
415 'rules': [
416 {
417 'rule_name': 'genproto',
418 'extension': 'proto',
419 'inputs': [
420 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
421 ],
422 'variables': {
423 # The protoc compiler requires a proto_path argument with the
424 # directory containing the .proto file.
425 # There's no generator variable that corresponds to this, so fake
426 # it.
427 'rule_input_relpath': 'common/safe_browsing',
428 },
429 'outputs': [
430 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h',
431 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc',
432 ],
433 'action': [
434 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
435 '--proto_path=./<(rule_input_relpath)',
436 './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
437 '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)',
438 ],
439 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
440 },
441 ],
442 'dependencies': [
443 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
444 '../third_party/protobuf/protobuf.gyp:protoc#host',
445 ],
446 'direct_dependent_settings': {
447 'include_dirs': [
448 '<(protoc_out_dir)',
449 ]
450 },
451 'export_dependent_settings': [
452 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
453 ],
454 'hard_dependency': 1,
455 },
456 {
[email protected]133139772011-04-14 22:14:13457 # Protobuf compiler / generator for the safebrowsing client-side detection
458 # (csd) request protocol buffer which is used both in the renderer and in
459 # the browser.
460 'target_name': 'safe_browsing_csd_proto',
461 'type': 'none',
462 'sources': [ 'common/safe_browsing/csd.proto' ],
463 'rules': [
464 {
465 'rule_name': 'genproto',
466 'extension': 'proto',
467 'inputs': [
468 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
469 ],
470 'variables': {
471 # The protoc compiler requires a proto_path argument with the
472 # directory containing the .proto file.
473 # There's no generator variable that corresponds to this, so fake
474 # it.
475 'rule_input_relpath': 'common/safe_browsing',
476 },
477 'outputs': [
478 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.h',
479 '<(protoc_out_dir)/chrome/<(rule_input_relpath)/<(RULE_INPUT_ROOT).pb.cc',
480 ],
481 'action': [
482 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
483 '--proto_path=./<(rule_input_relpath)',
484 './<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
485 '--cpp_out=<(protoc_out_dir)/chrome/<(rule_input_relpath)',
486 ],
487 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
488 },
489 ],
490 'dependencies': [
491 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
492 '../third_party/protobuf/protobuf.gyp:protoc#host',
493 ],
494 'direct_dependent_settings': {
495 'include_dirs': [
496 '<(protoc_out_dir)',
497 ]
498 },
499 'export_dependent_settings': [
500 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
501 ],
[email protected]fe5cbab12011-05-26 23:39:00502 'hard_dependency': 1,
[email protected]133139772011-04-14 22:14:13503 },
[email protected]dd363682009-12-28 20:30:46504 ],
505 'conditions': [
506 ['OS=="win"', {
507 'targets': [
508 {
509 'target_name': 'common_nacl_win64',
[email protected]5a547332011-05-19 23:18:53510 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:46511 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
512 'variables': {
513 'chrome_common_target': 1,
514 },
515 'dependencies': [
516 # TODO(gregoryd): chrome_resources and chrome_strings could be
517 # shared with the 32-bit target, but it does not work due to a gyp
518 # issue.
519 'chrome_resources',
520 'chrome_strings',
521 'common_constants_win64',
[email protected]f86369722011-02-17 13:25:23522 'app/policy/cloud_policy_codegen.gyp:policy_win64',
[email protected]dd363682009-12-28 20:30:46523 '../app/app.gyp:app_base_nacl_win64',
524 '../app/app.gyp:app_resources',
525 '../base/base.gyp:base_nacl_win64',
526 '../ipc/ipc.gyp:ipc_win64',
[email protected]3e0f7d522010-06-18 04:09:14527 '../third_party/libxml/libxml.gyp:libxml',
[email protected]dd363682009-12-28 20:30:46528 ],
529 'include_dirs': [
[email protected]dd363682009-12-28 20:30:46530 '../third_party/icu/public/i18n',
531 '../third_party/icu/public/common',
532 # We usually get these skia directories by adding a dependency on
533 # skia, bu we don't need it for NaCl's 64-bit Windows support. The
534 # directories are required for resolving the includes in any case.
[email protected]38789d82010-11-17 06:03:44535 '../third_party/skia/include/config',
[email protected]dd363682009-12-28 20:30:46536 '../third_party/skia/include/core',
537 '../skia/config',
[email protected]38789d82010-11-17 06:03:44538 '../skia/config/win',
[email protected]dd363682009-12-28 20:30:46539 ],
540 'defines': [
[email protected]dd363682009-12-28 20:30:46541 '<@(nacl_win64_defines)',
542 ],
543 'sources': [
544 '../webkit/glue/webkit_glue_dummy.cc',
[email protected]7fc13ed2010-03-06 05:06:20545 'common/url_constants.cc',
[email protected]7ef40ffe12011-03-08 05:05:28546 # TODO(bradnelson): once automatic generation of 64 bit targets on
547 # Windows is ready, take this out and add a dependency on
548 # content_common.gypi.
549 '../content/common/file_system/file_system_dispatcher_dummy.cc',
[email protected]b2e375f2011-03-03 23:20:24550 '../content/common/message_router.cc',
[email protected]10e5cf12011-04-13 04:10:40551 '../content/common/quota_dispatcher_dummy.cc',
[email protected]620161e2011-03-07 18:05:26552 '../content/common/resource_dispatcher_dummy.cc',
[email protected]7ef40ffe12011-03-08 05:05:28553 '../content/common/socket_stream_dispatcher_dummy.cc',
[email protected]dd363682009-12-28 20:30:46554 ],
555 'export_dependent_settings': [
[email protected]f86369722011-02-17 13:25:23556 'app/policy/cloud_policy_codegen.gyp:policy_win64',
[email protected]dd363682009-12-28 20:30:46557 ],
558 # TODO(gregoryd): This could be shared with the 32-bit target, but
559 # it does not work due to a gyp issue.
560 'direct_dependent_settings': {
561 'include_dirs': [
562 '..',
563 ],
564 },
565 'configurations': {
566 'Common_Base': {
567 'msvs_target_platform': 'x64',
568 },
569 },
570 },
571 ],
572 }],
573 ],
574}