blob: 592fb6442813fea6b5bbb6eb3a29154b5901cfb0 [file] [log] [blame]
[email protected]3a80ea332012-01-09 19:53:291# Copyright (c) 2012 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,
[email protected]1cd90f72011-11-21 18:02:4412 # TODO(thakis): Turn this on. Blocked on g_log_function_mapping in
13 # ipc_message_macros.h. http://crbug.com/101600
14 #'enable_wexit_time_destructors': 1,
[email protected]dd363682009-12-28 20:30:4615 },
[email protected]93156cec2011-09-12 21:14:4416 'include_dirs': [
17 '..',
[email protected]b50368b2012-02-18 00:02:1318 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
[email protected]93156cec2011-09-12 21:14:4419 ],
[email protected]dd363682009-12-28 20:30:4620 'direct_dependent_settings': {
21 'include_dirs': [
22 '..',
23 ],
24 },
25 'dependencies': [
26 # TODO(gregoryd): chrome_resources and chrome_strings could be
27 # shared with the 64-bit target, but it does not work due to a gyp
28 # issue.
[email protected]dd363682009-12-28 20:30:4629 'common_constants',
[email protected]3c3065d2010-05-06 21:59:5530 'common_net',
[email protected]b9bbf5532011-11-03 07:35:2231 'common_version',
[email protected]7ae45d0502012-01-31 00:29:2632 'metrics_proto',
[email protected]37794d02011-11-30 18:24:2933 '<(DEPTH)/base/base.gyp:base',
34 '<(DEPTH)/base/base.gyp:base_i18n',
35 '<(DEPTH)/base/base.gyp:base_static',
36 '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
37 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
38 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
39 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
40 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
[email protected]ae33d322012-03-19 22:24:3541 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
[email protected]37794d02011-11-30 18:24:2942 '<(DEPTH)/content/content.gyp:content_common',
43 '<(DEPTH)/ipc/ipc.gyp:ipc',
44 '<(DEPTH)/net/net.gyp:net',
45 '<(DEPTH)/printing/printing.gyp:printing',
46 '<(DEPTH)/skia/skia.gyp:skia',
[email protected]b50368b2012-02-18 00:02:1347 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
[email protected]37794d02011-11-30 18:24:2948 '<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
49 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
50 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
51 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
[email protected]20f999b52012-08-24 22:32:5952 '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
[email protected]5bcf3b72012-09-14 00:20:2853 '<(DEPTH)/third_party/re2/re2.gyp:re2',
[email protected]37794d02011-11-30 18:24:2954 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
55 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
56 '<(DEPTH)/ui/ui.gyp:ui_resources',
[email protected]37794d02011-11-30 18:24:2957 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
[email protected]f87d7cb2012-09-10 10:01:0758 '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent',
[email protected]dd363682009-12-28 20:30:4659 ],
60 'sources': [
[email protected]4a6d74152011-09-26 20:42:3061 'common/all_messages.h',
[email protected]93156cec2011-09-12 21:14:4462 'common/attrition_experiments.h',
63 'common/auto_start_linux.cc',
64 'common/auto_start_linux.h',
65 'common/autofill_messages.h',
[email protected]cdb8bc282010-11-22 19:23:0666 'common/automation_constants.cc',
67 'common/automation_constants.h',
[email protected]165901feb2012-05-23 15:38:2268 'common/automation_events.cc',
69 'common/automation_events.h',
[email protected]c54ab2332011-12-05 21:05:4270 'common/automation_id.cc',
71 'common/automation_id.h',
[email protected]cdb8bc282010-11-22 19:23:0672 'common/automation_messages.cc',
73 'common/automation_messages.h',
74 'common/automation_messages_internal.h',
75 'common/badge_util.cc',
76 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:1077 'common/bzip2_error_handler.cc',
[email protected]93156cec2011-09-12 21:14:4478 'common/child_process_logging.h',
[email protected]93156cec2011-09-12 21:14:4479 'common/child_process_logging_mac.mm',
[email protected]1f26b9a2012-02-28 00:29:3880 'common/child_process_logging_posix.cc',
[email protected]93156cec2011-09-12 21:14:4481 'common/child_process_logging_win.cc',
[email protected]50e52cd2011-03-10 00:57:2982 'common/chrome_content_client.cc',
83 'common/chrome_content_client.h',
[email protected]93156cec2011-09-12 21:14:4484 'common/chrome_notification_types.h',
[email protected]c530c852011-10-24 18:18:3485 'common/chrome_result_codes.h',
[email protected]dbd825842011-11-25 20:55:2486 'common/chrome_sandbox_type_mac.h',
[email protected]19a5c7442011-10-21 20:00:4187 'common/chrome_utility_messages.h',
[email protected]93156cec2011-09-12 21:14:4488 'common/chrome_version_info.cc',
[email protected]3a12f882011-12-14 06:39:2589 'common/chrome_version_info_chromeos.cc',
[email protected]1f26b9a2012-02-28 00:29:3890 'common/chrome_version_info_posix.cc',
[email protected]93156cec2011-09-12 21:14:4491 'common/chrome_version_info_mac.mm',
92 'common/chrome_version_info_win.cc',
93 'common/chrome_version_info.h',
[email protected]13aec6c42011-10-27 21:22:0894 'common/cloud_print/cloud_print_class_mac.h',
95 'common/cloud_print/cloud_print_class_mac.mm',
[email protected]b106ca52012-03-13 06:08:4696 'common/cloud_print/cloud_print_helpers.cc',
97 'common/cloud_print/cloud_print_helpers.h',
[email protected]de119cf22011-05-11 20:41:3598 'common/cloud_print/cloud_print_proxy_info.cc',
99 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]fffaf972011-03-24 01:34:35100 'common/common_message_generator.cc',
101 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:03102 'common/common_param_traits.cc',
103 'common/common_param_traits.h',
[email protected]af049dd2012-06-26 01:01:42104 'common/common_param_traits_macros.h',
[email protected]93156cec2011-09-12 21:14:44105 'common/content_settings.cc',
106 'common/content_settings.h',
107 'common/content_settings_helper.cc',
108 'common/content_settings_helper.h',
[email protected]1d03fa32011-09-21 08:19:27109 'common/content_settings_pattern.cc',
110 'common/content_settings_pattern.h',
111 'common/content_settings_pattern_parser.cc',
112 'common/content_settings_pattern_parser.h',
[email protected]93156cec2011-09-12 21:14:44113 'common/content_settings_types.h',
[email protected]083917c82011-07-13 00:34:35114 'common/custom_handlers/protocol_handler.cc',
115 'common/custom_handlers/protocol_handler.h',
[email protected]29699c22012-10-03 23:57:39116 'common/descriptors_android.h',
[email protected]65907942012-05-22 19:59:47117 'common/extensions/command.cc',
118 'common/extensions/command.h',
[email protected]ee0be772011-12-02 08:02:10119 'common/extensions/csp_validator.cc',
120 'common/extensions/csp_validator.h',
[email protected]6d4aef22012-09-28 03:40:48121 'common/extensions/draggable_region.cc',
[email protected]a0629af92012-08-08 00:39:37122 'common/extensions/draggable_region.h',
[email protected]4df8ef12012-05-18 05:29:39123 'common/extensions/event_filter.cc',
124 'common/extensions/event_filter.h',
125 'common/extensions/event_filtering_info.cc',
126 'common/extensions/event_filtering_info.h',
127 'common/extensions/event_matcher.cc',
128 'common/extensions/event_matcher.h',
[email protected]dd363682009-12-28 20:30:46129 'common/extensions/extension.cc',
130 'common/extensions/extension.h',
[email protected]7c927b62010-02-24 09:54:13131 'common/extensions/extension_action.cc',
132 'common/extensions/extension_action.h',
[email protected]dd363682009-12-28 20:30:46133 'common/extensions/extension_constants.cc',
134 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46135 'common/extensions/extension_error_utils.cc',
136 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13137 'common/extensions/extension_file_util.cc',
138 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48139 'common/extensions/extension_icon_set.cc',
140 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46141 'common/extensions/extension_l10n_util.cc',
142 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09143 'common/extensions/extension_localization_peer.cc',
144 'common/extensions/extension_localization_peer.h',
[email protected]a52c0e92012-03-23 06:02:24145 'common/extensions/extension_manifest_constants.cc',
146 'common/extensions/extension_manifest_constants.h',
[email protected]44c49c92011-03-28 16:17:23147 'common/extensions/extension_messages.cc',
148 'common/extensions/extension_messages.h',
[email protected]808d1512011-12-14 16:29:59149 'common/extensions/extension_process_policy.cc',
150 'common/extensions/extension_process_policy.h',
[email protected]dd363682009-12-28 20:30:46151 'common/extensions/extension_resource.cc',
152 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36153 'common/extensions/extension_set.cc',
154 'common/extensions/extension_set.h',
[email protected]adcf0f02012-05-02 20:24:50155 'common/extensions/extension_switch_utils.cc',
156 'common/extensions/extension_switch_utils.h',
[email protected]ee837d32012-10-02 22:25:49157 'common/extensions/feature_switch.cc',
158 'common/extensions/feature_switch.h',
[email protected]5115ccc2012-06-11 19:47:07159 'common/extensions/features/feature.cc',
160 'common/extensions/features/feature.h',
161 'common/extensions/features/feature_provider.h',
162 'common/extensions/features/manifest_feature.cc',
163 'common/extensions/features/manifest_feature.h',
164 'common/extensions/features/permission_feature.cc',
165 'common/extensions/features/permission_feature.h',
166 'common/extensions/features/simple_feature_provider.cc',
167 'common/extensions/features/simple_feature_provider.h',
[email protected]b6b805e92011-04-16 09:24:14168 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42169 'common/extensions/file_browser_handler.h',
[email protected]953620b2011-12-04 00:55:32170 'common/extensions/manifest.cc',
171 'common/extensions/manifest.h',
[email protected]5bcf3b72012-09-14 00:20:28172 'common/extensions/matcher/regex_set_matcher.cc',
173 'common/extensions/matcher/regex_set_matcher.h',
174 'common/extensions/matcher/string_pattern.cc',
175 'common/extensions/matcher/string_pattern.h',
[email protected]63f1a9e2012-05-09 12:51:00176 'common/extensions/matcher/substring_set_matcher.cc',
177 'common/extensions/matcher/substring_set_matcher.h',
178 'common/extensions/matcher/url_matcher.cc',
179 'common/extensions/matcher/url_matcher.h',
180 'common/extensions/matcher/url_matcher_constants.cc',
181 'common/extensions/matcher/url_matcher_constants.h',
182 'common/extensions/matcher/url_matcher_factory.cc',
183 'common/extensions/matcher/url_matcher_factory.h',
184 'common/extensions/matcher/url_matcher_helpers.cc',
185 'common/extensions/matcher/url_matcher_helpers.h',
[email protected]40404bc2012-07-25 17:40:49186 'common/extensions/message_bundle.cc',
187 'common/extensions/message_bundle.h',
[email protected]c2e66e12012-06-27 06:27:06188 'common/extensions/permissions/api_permission.cc',
189 'common/extensions/permissions/api_permission.h',
[email protected]1d8b79a2012-08-16 20:22:54190 'common/extensions/permissions/api_permission_set.cc',
191 'common/extensions/permissions/api_permission_set.h',
[email protected]0fd087e2012-09-14 11:12:57192 'common/extensions/permissions/filesystem_permission.h',
193 'common/extensions/permissions/filesystem_permission.cc',
[email protected]a99b6222012-09-10 23:37:50194 'common/extensions/permissions/media_galleries_permission.h',
195 'common/extensions/permissions/media_galleries_permission.cc',
[email protected]c2e66e12012-06-27 06:27:06196 'common/extensions/permissions/permission_message.cc',
197 'common/extensions/permissions/permission_message.h',
198 'common/extensions/permissions/permission_set.cc',
199 'common/extensions/permissions/permission_set.h',
200 'common/extensions/permissions/permissions_info.cc',
201 'common/extensions/permissions/permissions_info.h',
[email protected]1d8b79a2012-08-16 20:22:54202 'common/extensions/permissions/socket_permission.cc',
203 'common/extensions/permissions/socket_permission.h',
204 'common/extensions/permissions/socket_permission_data.cc',
205 'common/extensions/permissions/socket_permission_data.h',
[email protected]b3fe68d2012-07-16 19:14:39206 'common/extensions/unpacker.cc',
207 'common/extensions/unpacker.h',
[email protected]dd363682009-12-28 20:30:46208 'common/extensions/update_manifest.cc',
209 'common/extensions/update_manifest.h',
210 'common/extensions/url_pattern.cc',
211 'common/extensions/url_pattern.h',
[email protected]cced75a2011-05-20 08:31:12212 'common/extensions/url_pattern_set.cc',
213 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46214 'common/extensions/user_script.cc',
215 'common/extensions/user_script.h',
[email protected]d9e559d2012-07-05 01:04:57216 'common/extensions/value_counter.cc',
217 'common/extensions/value_counter.h',
[email protected]83820d42011-11-12 22:03:11218 'common/extensions/api/extension_api.cc',
219 'common/extensions/api/extension_api.h',
[email protected]93156cec2011-09-12 21:14:44220 'common/external_ipc_fuzzer.h',
221 'common/external_ipc_fuzzer.cc',
[email protected]ae4efe42011-04-18 21:28:05222 'common/favicon_url.cc',
223 'common/favicon_url.h',
[email protected]1ecbe862012-10-05 01:29:14224 'common/form_data.cc',
225 'common/form_data.h',
226 'common/form_data_predictions.cc',
227 'common/form_data_predictions.h',
228 'common/form_field_data.cc',
229 'common/form_field_data.h',
230 'common/form_field_data_predictions.cc',
231 'common/form_field_data_predictions.h',
[email protected]93156cec2011-09-12 21:14:44232 'common/icon_messages.h',
[email protected]6658ca82010-05-20 18:20:29233 'common/important_file_writer.cc',
234 'common/important_file_writer.h',
[email protected]0e7cb682012-08-15 04:04:38235 'common/instant_types.cc',
[email protected]93156cec2011-09-12 21:14:44236 'common/instant_types.h',
[email protected]ea587b02010-05-21 15:01:35237 'common/json_pref_store.cc',
238 'common/json_pref_store.h',
[email protected]367dbf72012-09-16 15:36:23239 'common/json_schema_constants.cc',
240 'common/json_schema_constants.h',
[email protected]639e6712010-11-11 22:21:43241 'common/json_schema_validator.cc',
242 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46243 'common/jstemplate_builder.cc',
244 'common/jstemplate_builder.h',
[email protected]499512b2012-08-08 19:27:49245 'common/localized_error.cc',
246 'common/localized_error.h',
[email protected]93156cec2011-09-12 21:14:44247 'common/logging_chrome.cc',
248 'common/logging_chrome.h',
[email protected]46821242011-08-19 13:59:59249 'common/mac/app_mode_common.h',
250 'common/mac/app_mode_common.mm',
[email protected]00ecec52011-08-19 20:01:24251 'common/mac/cfbundle_blocker.h',
252 'common/mac/cfbundle_blocker.mm',
[email protected]46821242011-08-19 13:59:59253 'common/mac/launchd.h',
254 'common/mac/launchd.mm',
[email protected]d02437b2011-09-06 17:25:15255 'common/mac/objc_method_swizzle.h',
256 'common/mac/objc_method_swizzle.mm',
257 'common/mac/objc_zombie.h',
258 'common/mac/objc_zombie.mm',
[email protected]20f999b52012-08-24 22:32:59259 'common/metrics/entropy_provider.cc',
260 'common/metrics/entropy_provider.h',
[email protected]e182be02012-01-27 02:35:44261 'common/metrics/metrics_log_base.cc',
262 'common/metrics/metrics_log_base.h',
[email protected]2e4cd1a2012-01-12 08:51:03263 'common/metrics/metrics_log_manager.cc',
264 'common/metrics/metrics_log_manager.h',
[email protected]e182be02012-01-27 02:35:44265 'common/metrics/metrics_service_base.cc',
266 'common/metrics/metrics_service_base.h',
[email protected]bca34942012-09-05 18:23:25267 'common/metrics/metrics_util.cc',
268 'common/metrics/metrics_util.h',
[email protected]cf265dc02012-08-15 01:01:16269 'common/metrics/variations/variations_util.cc',
270 'common/metrics/variations/variations_util.h',
[email protected]93156cec2011-09-12 21:14:44271 'common/multi_process_lock.h',
272 'common/multi_process_lock_linux.cc',
273 'common/multi_process_lock_mac.cc',
274 'common/multi_process_lock_win.cc',
275 'common/nacl_cmd_line.cc',
276 'common/nacl_cmd_line.h',
277 'common/nacl_messages.cc',
278 'common/nacl_messages.h',
[email protected]00d99542012-04-17 22:48:02279 'common/nacl_types.cc',
[email protected]93156cec2011-09-12 21:14:44280 'common/nacl_types.h',
[email protected]1ecbe862012-10-05 01:29:14281 'common/password_form_fill_data.cc',
282 'common/password_form_fill_data.h',
[email protected]341370e2012-07-21 01:45:56283 'common/password_generation_util.cc',
284 'common/password_generation_util.h',
[email protected]9b4f6082012-04-24 01:43:07285 'common/pepper_flash.cc',
286 'common/pepper_flash.h',
[email protected]f2d1f612010-12-09 15:10:17287 'common/persistent_pref_store.h',
[email protected]0f1afed2010-12-15 17:22:28288 'common/pref_store.cc',
[email protected]ce1850e92010-10-15 08:40:58289 'common/pref_store.h',
[email protected]b4bd67a2011-08-22 19:04:09290 'common/print_messages.cc',
[email protected]1375e3ab2011-03-24 17:07:22291 'common/print_messages.h',
[email protected]93156cec2011-09-12 21:14:44292 'common/profiling.cc',
293 'common/profiling.h',
[email protected]93156cec2011-09-12 21:14:44294 'common/ref_counted_util.h',
[email protected]7a4de7a62010-08-17 18:38:24295 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46296 'common/render_messages.h',
[email protected]93156cec2011-09-12 21:14:44297 'common/safe_browsing/safebrowsing_messages.h',
[email protected]c08e7932011-03-29 04:08:14298 'common/search_provider.h',
[email protected]38fe1962010-07-31 07:57:00299 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24300 'common/service_process_util.cc',
301 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36302 'common/service_process_util_linux.cc',
303 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04304 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36305 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04306 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46307 'common/spellcheck_common.cc',
308 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45309 'common/spellcheck_messages.h',
[email protected]7ed49c22012-02-17 02:14:53310 'common/spellcheck_result.h',
[email protected]b5febf72012-07-29 18:10:09311 'common/startup_metric_utils.cc',
312 'common/startup_metric_utils.h',
[email protected]93156cec2011-09-12 21:14:44313 'common/switch_utils.cc',
314 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:46315 'common/thumbnail_score.cc',
316 'common/thumbnail_score.h',
[email protected]93156cec2011-09-12 21:14:44317 'common/time_format.cc',
318 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46319 'common/url_constants.cc',
320 'common/url_constants.h',
[email protected]299d7f12012-05-23 05:31:15321 'common/view_type.cc',
322 'common/view_type.h',
[email protected]dd363682009-12-28 20:30:46323 'common/visitedlink_common.cc',
324 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44325 'common/web_apps.cc',
326 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06327 'common/web_resource/web_resource_unpacker.cc',
328 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46329 'common/worker_thread_ticker.cc',
330 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46331 'common/zip.cc', # Requires zlib directly.
332 'common/zip.h',
[email protected]79b2024f2011-11-09 19:32:12333 'common/zip_internal.cc',
334 'common/zip_internal.h',
[email protected]198e77822011-11-11 18:50:03335 'common/zip_reader.cc',
336 'common/zip_reader.h',
[email protected]dd363682009-12-28 20:30:46337 ],
338 'conditions': [
[email protected]9f6167c2012-03-16 02:28:17339 ['OS=="android"', {
340 'sources/': [
341 ['exclude', '^common/service_'],
342 ],
343 }],
[email protected]93156cec2011-09-12 21:14:44344 ['OS=="win"', {
345 'include_dirs': [
346 '<(DEPTH)/third_party/wtl/include',
[email protected]ef777a42011-11-25 13:15:43347 ]
348 }],
[email protected]cb5e5072011-05-19 21:49:41349 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46350 'dependencies': [
351 '../build/linux/system.gyp:gtk',
352 ],
353 'export_dependent_settings': [
354 '../third_party/sqlite/sqlite.gyp:sqlite',
355 ],
356 'link_settings': {
357 'libraries': [
358 '-lX11',
359 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54360 '-lXss',
[email protected]dd363682009-12-28 20:30:46361 '-lXext',
362 ],
363 },
[email protected]0ce34852011-09-23 20:00:51364 }],
[email protected]b9bbf5532011-11-03 07:35:22365 ['OS=="linux" and selinux==1', {
366 'dependencies': [
367 '../build/linux/system.gyp:selinux',
[email protected]4641d3c2010-08-26 21:44:13368 ],
[email protected]b9bbf5532011-11-03 07:35:22369 }],
[email protected]3a12f882011-12-14 06:39:25370 ['chromeos==0', {
371 'sources!': [
372 'common/chrome_version_info_chromeos.cc',
373 ],
[email protected]129d11452012-03-01 01:56:56374 }, { # chromeos==1
[email protected]3a12f882011-12-14 06:39:25375 'sources!': [
376 'common/chrome_version_info_linux.cc',
377 ],
378 }],
[email protected]b9bbf5532011-11-03 07:35:22379 ['OS=="mac"', {
380 'dependencies': [
381 '../third_party/mach_override/mach_override.gyp:mach_override',
382 ],
383 'include_dirs': [
384 '../third_party/GTM',
385 ],
[email protected]1f26b9a2012-02-28 00:29:38386 'sources!': [
387 'common/child_process_logging_posix.cc',
388 'common/chrome_version_info_posix.cc',
389 ],
[email protected]b9bbf5532011-11-03 07:35:22390 }],
391 ['remoting==1', {
392 'dependencies': [
393 '../remoting/remoting.gyp:remoting_client_plugin',
394 ],
395 }],
396 ],
397 'export_dependent_settings': [
398 '../base/base.gyp:base',
[email protected]8a59a082012-03-07 02:27:30399 'metrics_proto',
[email protected]b9bbf5532011-11-03 07:35:22400 ],
401 },
402 {
403 'target_name': 'common_version',
404 'type': 'none',
405 'conditions': [
406 ['os_posix == 1 and OS != "mac"', {
407 'direct_dependent_settings': {
408 'include_dirs': [
409 '<(SHARED_INTERMEDIATE_DIR)',
410 ],
411 },
[email protected]79440c52010-08-27 22:53:02412 # Because posix_version generates a header, we must set the
413 # hard_dependency flag.
414 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13415 'actions': [
416 {
417 'action_name': 'posix_version',
418 'variables': {
419 'lastchange_path':
[email protected]9046a112012-01-31 20:45:25420 '<(DEPTH)/build/util/LASTCHANGE',
[email protected]4641d3c2010-08-26 21:44:13421 'version_py_path': 'tools/build/version.py',
422 'version_path': 'VERSION',
423 'template_input_path': 'common/chrome_version_info_posix.h.version',
424 },
425 'conditions': [
426 [ 'branding == "Chrome"', {
427 'variables': {
428 'branding_path':
429 'app/theme/google_chrome/BRANDING',
430 },
431 }, { # else branding!="Chrome"
432 'variables': {
433 'branding_path':
434 'app/theme/chromium/BRANDING',
435 },
436 }],
437 ],
438 'inputs': [
439 '<(template_input_path)',
440 '<(version_path)',
441 '<(branding_path)',
442 '<(lastchange_path)',
443 ],
444 'outputs': [
445 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
446 ],
447 'action': [
448 'python',
449 '<(version_py_path)',
450 '-f', '<(version_path)',
451 '-f', '<(branding_path)',
452 '-f', '<(lastchange_path)',
453 '<(template_input_path)',
454 '<@(_outputs)',
455 ],
456 'message': 'Generating version information',
457 },
458 ],
459 }],
[email protected]dd363682009-12-28 20:30:46460 ],
461 },
[email protected]3c3065d2010-05-06 21:59:55462 {
463 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53464 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55465 'sources': [
[email protected]06305962012-05-09 22:34:36466 'common/net/net_resource_provider.cc',
467 'common/net/net_resource_provider.h',
468 'common/net/predictor_common.h',
469 'common/net/url_util.cc',
470 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40471 'common/net/x509_certificate_model.cc',
472 'common/net/x509_certificate_model_nss.cc',
473 'common/net/x509_certificate_model_openssl.cc',
474 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55475 ],
476 'dependencies': [
[email protected]37794d02011-11-30 18:24:29477 '<(DEPTH)/base/base.gyp:base',
478 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
479 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
480 '<(DEPTH)/crypto/crypto.gyp:crypto',
481 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
482 '<(DEPTH)/net/net.gyp:net_resources',
483 '<(DEPTH)/net/net.gyp:net',
484 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
485 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55486 ],
[email protected]b1c2a5542010-10-08 12:44:40487 'conditions': [
[email protected]607eee02012-01-27 07:20:53488 ['os_posix == 1 and OS != "mac" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30489 'dependencies': [
490 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40491 ],
492 },
[email protected]af221ff2012-04-03 05:22:39493 ],
494 ['os_posix != 1 or OS == "mac"', {
[email protected]b1c2a5542010-10-08 12:44:40495 'sources!': [
496 'common/net/x509_certificate_model_nss.cc',
497 'common/net/x509_certificate_model_openssl.cc',
498 ],
499 },
500 ],
[email protected]af221ff2012-04-03 05:22:39501 ['OS == "android"', {
502 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01503 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39504 ],
505 },
506 ],
[email protected]b1c2a5542010-10-08 12:44:40507 ['use_openssl==1', {
508 'sources!': [
509 'common/net/x509_certificate_model_nss.cc',
510 ],
511 },
512 { # else !use_openssl: remove the unneeded files
513 'sources!': [
514 'common/net/x509_certificate_model_openssl.cc',
515 ],
516 },
517 ],
[email protected]129d11452012-03-01 01:56:56518 ],
[email protected]3c3065d2010-05-06 21:59:55519 },
[email protected]133139772011-04-14 22:14:13520 {
[email protected]1c20dd62011-08-19 21:54:33521 # Protobuf compiler / generator for the safebrowsing client
522 # model proto and the client-side detection (csd) request
523 # protocol buffer.
[email protected]cae64fe2011-06-17 17:54:50524 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33525 'type': 'static_library',
526 'sources': [
527 'common/safe_browsing/client_model.proto',
528 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50529 ],
[email protected]1c20dd62011-08-19 21:54:33530 'variables': {
531 'proto_in_dir': 'common/safe_browsing',
532 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50533 },
[email protected]1c20dd62011-08-19 21:54:33534 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13535 },
[email protected]7ae45d0502012-01-31 00:29:26536 {
537 # Protobuf compiler / generator for UMA (User Metrics Analysis).
538 'target_name': 'metrics_proto',
539 'type': 'static_library',
540 'sources': [
[email protected]f89fdab12012-05-04 23:27:21541 'common/metrics/proto/chrome_experiments.proto',
[email protected]7ae45d0502012-01-31 00:29:26542 'common/metrics/proto/chrome_user_metrics_extension.proto',
543 'common/metrics/proto/histogram_event.proto',
544 'common/metrics/proto/omnibox_event.proto',
[email protected]2a08b1d2012-02-18 00:30:04545 'common/metrics/proto/profiler_event.proto',
[email protected]7ae45d0502012-01-31 00:29:26546 'common/metrics/proto/system_profile.proto',
547 'common/metrics/proto/user_action_event.proto',
548 ],
549 'variables': {
550 'proto_in_dir': 'common/metrics/proto',
551 'proto_out_dir': 'chrome/common/metrics/proto',
552 },
553 'includes': [ '../build/protoc.gypi' ],
554 },
[email protected]dd363682009-12-28 20:30:46555 ],
[email protected]dd363682009-12-28 20:30:46556}