blob: 1a5f0a6f33966bb315128e618178b4a5195980b5 [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]4f68ed72012-10-30 05:24:0712 'enable_wexit_time_destructors': 1,
[email protected]dd363682009-12-28 20:30:4613 },
[email protected]93156cec2011-09-12 21:14:4414 'include_dirs': [
15 '..',
[email protected]b50368b2012-02-18 00:02:1316 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
[email protected]93156cec2011-09-12 21:14:4417 ],
[email protected]dd363682009-12-28 20:30:4618 'direct_dependent_settings': {
19 'include_dirs': [
20 '..',
21 ],
22 },
23 'dependencies': [
24 # TODO(gregoryd): chrome_resources and chrome_strings could be
25 # shared with the 64-bit target, but it does not work due to a gyp
26 # issue.
[email protected]3c3065d2010-05-06 21:59:5527 'common_net',
[email protected]b9bbf5532011-11-03 07:35:2228 'common_version',
[email protected]7ae45d0502012-01-31 00:29:2629 'metrics_proto',
[email protected]37794d02011-11-30 18:24:2930 '<(DEPTH)/base/base.gyp:base',
31 '<(DEPTH)/base/base.gyp:base_i18n',
[email protected]f59f33e2012-11-01 12:05:2732 '<(DEPTH)/base/base.gyp:base_prefs',
[email protected]37794d02011-11-30 18:24:2933 '<(DEPTH)/base/base.gyp:base_static',
34 '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
[email protected]37794d02011-11-30 18:24:2935 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
36 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
37 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
[email protected]99245a02012-10-09 20:57:4938 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
[email protected]37794d02011-11-30 18:24:2939 '<(DEPTH)/content/content.gyp:content_common',
[email protected]37794d02011-11-30 18:24:2940 '<(DEPTH)/net/net.gyp:net',
[email protected]37794d02011-11-30 18:24:2941 '<(DEPTH)/skia/skia.gyp:skia',
42 '<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
43 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
44 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
45 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
[email protected]20f999b52012-08-24 22:32:5946 '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
[email protected]37794d02011-11-30 18:24:2947 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
[email protected]262220e2012-10-18 18:55:0748 '<(DEPTH)/third_party/zlib/zlib.gyp:minizip',
[email protected]37794d02011-11-30 18:24:2949 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
50 '<(DEPTH)/ui/ui.gyp:ui_resources',
[email protected]f87d7cb2012-09-10 10:01:0751 '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent',
[email protected]dd363682009-12-28 20:30:4652 ],
53 'sources': [
[email protected]885c0e92012-11-13 20:27:4254 '../extensions/common/constants.cc',
55 '../extensions/common/constants.h',
56 '../extensions/common/url_pattern.cc',
57 '../extensions/common/url_pattern.h',
[email protected]4a6d74152011-09-26 20:42:3058 'common/all_messages.h',
[email protected]93156cec2011-09-12 21:14:4459 'common/attrition_experiments.h',
60 'common/auto_start_linux.cc',
61 'common/auto_start_linux.h',
62 'common/autofill_messages.h',
[email protected]cdb8bc282010-11-22 19:23:0663 'common/automation_constants.cc',
64 'common/automation_constants.h',
[email protected]165901feb2012-05-23 15:38:2265 'common/automation_events.cc',
66 'common/automation_events.h',
[email protected]c54ab2332011-12-05 21:05:4267 'common/automation_id.cc',
68 'common/automation_id.h',
[email protected]cdb8bc282010-11-22 19:23:0669 'common/automation_messages.cc',
70 'common/automation_messages.h',
71 'common/automation_messages_internal.h',
72 'common/badge_util.cc',
73 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:1074 'common/bzip2_error_handler.cc',
[email protected]62867b02012-11-03 07:21:0375 'common/cancelable_task_tracker.cc',
76 'common/cancelable_task_tracker.h',
[email protected]93156cec2011-09-12 21:14:4477 'common/child_process_logging.h',
[email protected]93156cec2011-09-12 21:14:4478 'common/child_process_logging_mac.mm',
[email protected]1f26b9a2012-02-28 00:29:3879 'common/child_process_logging_posix.cc',
[email protected]93156cec2011-09-12 21:14:4480 'common/child_process_logging_win.cc',
[email protected]50e52cd2011-03-10 00:57:2981 'common/chrome_content_client.cc',
82 'common/chrome_content_client.h',
[email protected]b7d1efa62012-11-16 11:22:0283 'common/chrome_content_client_ios.mm',
[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]281288d2012-11-09 03:03:2389 'common/chrome_version_info_android.cc',
[email protected]3a12f882011-12-14 06:39:2590 'common/chrome_version_info_chromeos.cc',
[email protected]1f26b9a2012-02-28 00:29:3891 'common/chrome_version_info_posix.cc',
[email protected]93156cec2011-09-12 21:14:4492 'common/chrome_version_info_mac.mm',
93 'common/chrome_version_info_win.cc',
94 'common/chrome_version_info.h',
[email protected]13aec6c42011-10-27 21:22:0895 'common/cloud_print/cloud_print_class_mac.h',
96 'common/cloud_print/cloud_print_class_mac.mm',
[email protected]b106ca52012-03-13 06:08:4697 'common/cloud_print/cloud_print_helpers.cc',
98 'common/cloud_print/cloud_print_helpers.h',
[email protected]de119cf22011-05-11 20:41:3599 'common/cloud_print/cloud_print_proxy_info.cc',
100 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]fffaf972011-03-24 01:34:35101 'common/common_message_generator.cc',
102 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:03103 'common/common_param_traits.cc',
104 'common/common_param_traits.h',
[email protected]af049dd2012-06-26 01:01:42105 'common/common_param_traits_macros.h',
[email protected]93156cec2011-09-12 21:14:44106 'common/content_settings.cc',
107 'common/content_settings.h',
108 'common/content_settings_helper.cc',
109 'common/content_settings_helper.h',
[email protected]1d03fa32011-09-21 08:19:27110 'common/content_settings_pattern.cc',
111 'common/content_settings_pattern.h',
112 'common/content_settings_pattern_parser.cc',
113 'common/content_settings_pattern_parser.h',
[email protected]93156cec2011-09-12 21:14:44114 'common/content_settings_types.h',
[email protected]083917c82011-07-13 00:34:35115 'common/custom_handlers/protocol_handler.cc',
116 'common/custom_handlers/protocol_handler.h',
[email protected]29699c22012-10-03 23:57:39117 'common/descriptors_android.h',
[email protected]65907942012-05-22 19:59:47118 'common/extensions/command.cc',
119 'common/extensions/command.h',
[email protected]ee0be772011-12-02 08:02:10120 'common/extensions/csp_validator.cc',
121 'common/extensions/csp_validator.h',
[email protected]6d4aef22012-09-28 03:40:48122 'common/extensions/draggable_region.cc',
[email protected]a0629af92012-08-08 00:39:37123 'common/extensions/draggable_region.h',
[email protected]4df8ef12012-05-18 05:29:39124 'common/extensions/event_filter.cc',
125 'common/extensions/event_filter.h',
126 'common/extensions/event_filtering_info.cc',
127 'common/extensions/event_filtering_info.h',
128 'common/extensions/event_matcher.cc',
129 'common/extensions/event_matcher.h',
[email protected]dd363682009-12-28 20:30:46130 'common/extensions/extension.cc',
131 'common/extensions/extension.h',
132 'common/extensions/extension_constants.cc',
133 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46134 'common/extensions/extension_error_utils.cc',
135 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13136 'common/extensions/extension_file_util.cc',
137 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48138 'common/extensions/extension_icon_set.cc',
139 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46140 'common/extensions/extension_l10n_util.cc',
141 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09142 'common/extensions/extension_localization_peer.cc',
143 'common/extensions/extension_localization_peer.h',
[email protected]a52c0e92012-03-23 06:02:24144 'common/extensions/extension_manifest_constants.cc',
145 'common/extensions/extension_manifest_constants.h',
[email protected]44c49c92011-03-28 16:17:23146 'common/extensions/extension_messages.cc',
147 'common/extensions/extension_messages.h',
[email protected]808d1512011-12-14 16:29:59148 'common/extensions/extension_process_policy.cc',
149 'common/extensions/extension_process_policy.h',
[email protected]dd363682009-12-28 20:30:46150 'common/extensions/extension_resource.cc',
151 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36152 'common/extensions/extension_set.cc',
153 'common/extensions/extension_set.h',
[email protected]ee837d32012-10-02 22:25:49154 'common/extensions/feature_switch.cc',
155 'common/extensions/feature_switch.h',
[email protected]5115ccc2012-06-11 19:47:07156 'common/extensions/features/feature.cc',
157 'common/extensions/features/feature.h',
158 'common/extensions/features/feature_provider.h',
159 'common/extensions/features/manifest_feature.cc',
160 'common/extensions/features/manifest_feature.h',
161 'common/extensions/features/permission_feature.cc',
162 'common/extensions/features/permission_feature.h',
163 'common/extensions/features/simple_feature_provider.cc',
164 'common/extensions/features/simple_feature_provider.h',
[email protected]b6b805e92011-04-16 09:24:14165 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42166 'common/extensions/file_browser_handler.h',
[email protected]953620b2011-12-04 00:55:32167 'common/extensions/manifest.cc',
168 'common/extensions/manifest.h',
[email protected]5bcf3b72012-09-14 00:20:28169 'common/extensions/matcher/regex_set_matcher.cc',
170 'common/extensions/matcher/regex_set_matcher.h',
171 'common/extensions/matcher/string_pattern.cc',
172 'common/extensions/matcher/string_pattern.h',
[email protected]63f1a9e2012-05-09 12:51:00173 'common/extensions/matcher/substring_set_matcher.cc',
174 'common/extensions/matcher/substring_set_matcher.h',
175 'common/extensions/matcher/url_matcher.cc',
176 'common/extensions/matcher/url_matcher.h',
177 'common/extensions/matcher/url_matcher_constants.cc',
178 'common/extensions/matcher/url_matcher_constants.h',
179 'common/extensions/matcher/url_matcher_factory.cc',
180 'common/extensions/matcher/url_matcher_factory.h',
181 'common/extensions/matcher/url_matcher_helpers.cc',
182 'common/extensions/matcher/url_matcher_helpers.h',
[email protected]40404bc2012-07-25 17:40:49183 'common/extensions/message_bundle.cc',
184 'common/extensions/message_bundle.h',
[email protected]c2e66e12012-06-27 06:27:06185 'common/extensions/permissions/api_permission.cc',
186 'common/extensions/permissions/api_permission.h',
[email protected]1d8b79a2012-08-16 20:22:54187 'common/extensions/permissions/api_permission_set.cc',
188 'common/extensions/permissions/api_permission_set.h',
[email protected]c2e66e12012-06-27 06:27:06189 'common/extensions/permissions/permission_message.cc',
190 'common/extensions/permissions/permission_message.h',
191 'common/extensions/permissions/permission_set.cc',
192 'common/extensions/permissions/permission_set.h',
193 'common/extensions/permissions/permissions_info.cc',
194 'common/extensions/permissions/permissions_info.h',
[email protected]1d8b79a2012-08-16 20:22:54195 'common/extensions/permissions/socket_permission.cc',
196 'common/extensions/permissions/socket_permission.h',
197 'common/extensions/permissions/socket_permission_data.cc',
198 'common/extensions/permissions/socket_permission_data.h',
[email protected]0b9383a2012-10-26 00:58:16199 'common/extensions/request_media_access_permission_helper.cc',
200 'common/extensions/request_media_access_permission_helper.h',
[email protected]b3fe68d2012-07-16 19:14:39201 'common/extensions/unpacker.cc',
202 'common/extensions/unpacker.h',
[email protected]dd363682009-12-28 20:30:46203 'common/extensions/update_manifest.cc',
204 'common/extensions/update_manifest.h',
[email protected]cced75a2011-05-20 08:31:12205 'common/extensions/url_pattern_set.cc',
206 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46207 'common/extensions/user_script.cc',
208 'common/extensions/user_script.h',
[email protected]d9e559d2012-07-05 01:04:57209 'common/extensions/value_counter.cc',
210 'common/extensions/value_counter.h',
[email protected]83820d42011-11-12 22:03:11211 'common/extensions/api/extension_api.cc',
212 'common/extensions/api/extension_api.h',
[email protected]93156cec2011-09-12 21:14:44213 'common/external_ipc_fuzzer.h',
214 'common/external_ipc_fuzzer.cc',
[email protected]ae4efe42011-04-18 21:28:05215 'common/favicon_url.cc',
216 'common/favicon_url.h',
[email protected]1ecbe862012-10-05 01:29:14217 'common/form_data.cc',
218 'common/form_data.h',
219 'common/form_data_predictions.cc',
220 'common/form_data_predictions.h',
221 'common/form_field_data.cc',
222 'common/form_field_data.h',
223 'common/form_field_data_predictions.cc',
224 'common/form_field_data_predictions.h',
[email protected]93156cec2011-09-12 21:14:44225 'common/icon_messages.h',
[email protected]0e7cb682012-08-15 04:04:38226 'common/instant_types.cc',
[email protected]93156cec2011-09-12 21:14:44227 'common/instant_types.h',
[email protected]367dbf72012-09-16 15:36:23228 'common/json_schema_constants.cc',
229 'common/json_schema_constants.h',
[email protected]639e6712010-11-11 22:21:43230 'common/json_schema_validator.cc',
231 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46232 'common/jstemplate_builder.cc',
233 'common/jstemplate_builder.h',
[email protected]499512b2012-08-08 19:27:49234 'common/localized_error.cc',
235 'common/localized_error.h',
[email protected]93156cec2011-09-12 21:14:44236 'common/logging_chrome.cc',
237 'common/logging_chrome.h',
[email protected]46821242011-08-19 13:59:59238 'common/mac/app_mode_common.h',
239 'common/mac/app_mode_common.mm',
[email protected]00ecec52011-08-19 20:01:24240 'common/mac/cfbundle_blocker.h',
241 'common/mac/cfbundle_blocker.mm',
[email protected]46821242011-08-19 13:59:59242 'common/mac/launchd.h',
243 'common/mac/launchd.mm',
[email protected]d9b6d572012-10-22 16:41:19244 'common/mac/nscoder_util.h',
245 'common/mac/nscoder_util.mm',
[email protected]d02437b2011-09-06 17:25:15246 'common/mac/objc_method_swizzle.h',
247 'common/mac/objc_method_swizzle.mm',
248 'common/mac/objc_zombie.h',
249 'common/mac/objc_zombie.mm',
[email protected]20f999b52012-08-24 22:32:59250 'common/metrics/entropy_provider.cc',
251 'common/metrics/entropy_provider.h',
[email protected]e182be02012-01-27 02:35:44252 'common/metrics/metrics_log_base.cc',
253 'common/metrics/metrics_log_base.h',
[email protected]2e4cd1a2012-01-12 08:51:03254 'common/metrics/metrics_log_manager.cc',
255 'common/metrics/metrics_log_manager.h',
[email protected]e182be02012-01-27 02:35:44256 'common/metrics/metrics_service_base.cc',
257 'common/metrics/metrics_service_base.h',
[email protected]bca34942012-09-05 18:23:25258 'common/metrics/metrics_util.cc',
259 'common/metrics/metrics_util.h',
[email protected]cf265dc02012-08-15 01:01:16260 'common/metrics/variations/variations_util.cc',
261 'common/metrics/variations/variations_util.h',
[email protected]93156cec2011-09-12 21:14:44262 'common/multi_process_lock.h',
263 'common/multi_process_lock_linux.cc',
264 'common/multi_process_lock_mac.cc',
265 'common/multi_process_lock_win.cc',
266 'common/nacl_cmd_line.cc',
267 'common/nacl_cmd_line.h',
268 'common/nacl_messages.cc',
269 'common/nacl_messages.h',
[email protected]00d99542012-04-17 22:48:02270 'common/nacl_types.cc',
[email protected]93156cec2011-09-12 21:14:44271 'common/nacl_types.h',
[email protected]1ecbe862012-10-05 01:29:14272 'common/password_form_fill_data.cc',
273 'common/password_form_fill_data.h',
[email protected]341370e2012-07-21 01:45:56274 'common/password_generation_util.cc',
275 'common/password_generation_util.h',
[email protected]9b4f6082012-04-24 01:43:07276 'common/pepper_flash.cc',
277 'common/pepper_flash.h',
[email protected]be85e7d2012-10-31 08:34:20278 'common/pref_names_util.cc',
279 'common/pref_names_util.h',
[email protected]b4bd67a2011-08-22 19:04:09280 'common/print_messages.cc',
[email protected]1375e3ab2011-03-24 17:07:22281 'common/print_messages.h',
[email protected]93156cec2011-09-12 21:14:44282 'common/profiling.cc',
283 'common/profiling.h',
[email protected]93156cec2011-09-12 21:14:44284 'common/ref_counted_util.h',
[email protected]7a4de7a62010-08-17 18:38:24285 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46286 'common/render_messages.h',
[email protected]93156cec2011-09-12 21:14:44287 'common/safe_browsing/safebrowsing_messages.h',
[email protected]c08e7932011-03-29 04:08:14288 'common/search_provider.h',
[email protected]38fe1962010-07-31 07:57:00289 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24290 'common/service_process_util.cc',
291 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36292 'common/service_process_util_linux.cc',
293 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04294 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36295 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04296 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46297 'common/spellcheck_common.cc',
298 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45299 'common/spellcheck_messages.h',
[email protected]7ed49c22012-02-17 02:14:53300 'common/spellcheck_result.h',
[email protected]b5febf72012-07-29 18:10:09301 'common/startup_metric_utils.cc',
302 'common/startup_metric_utils.h',
[email protected]93156cec2011-09-12 21:14:44303 'common/switch_utils.cc',
304 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:46305 'common/thumbnail_score.cc',
306 'common/thumbnail_score.h',
[email protected]93156cec2011-09-12 21:14:44307 'common/time_format.cc',
308 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46309 'common/url_constants.cc',
310 'common/url_constants.h',
[email protected]299d7f12012-05-23 05:31:15311 'common/view_type.cc',
312 'common/view_type.h',
[email protected]dd363682009-12-28 20:30:46313 'common/visitedlink_common.cc',
314 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44315 'common/web_apps.cc',
316 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06317 'common/web_resource/web_resource_unpacker.cc',
318 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46319 'common/worker_thread_ticker.cc',
320 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46321 'common/zip.cc', # Requires zlib directly.
322 'common/zip.h',
[email protected]79b2024f2011-11-09 19:32:12323 'common/zip_internal.cc',
324 'common/zip_internal.h',
[email protected]198e77822011-11-11 18:50:03325 'common/zip_reader.cc',
326 'common/zip_reader.h',
[email protected]dd363682009-12-28 20:30:46327 ],
328 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04329 ['OS != "ios"', {
330 'dependencies': [
331 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
332 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
333 '<(DEPTH)/ipc/ipc.gyp:ipc',
334 '<(DEPTH)/printing/printing.gyp:printing',
335 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
336 '<(DEPTH)/third_party/re2/re2.gyp:re2',
337 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
338 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
339 ],
340 }, { # OS == ios
341 'sources/': [
342 ['exclude', '^common/automation_'],
343 ['exclude', '^common/child_process_'],
344 ['exclude', '^common/chrome_content_client\\.cc$'],
345 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
346 ['exclude', '^common/common_message_generator\\.cc$'],
347 ['exclude', '^common/common_param_traits'],
348 ['exclude', '^common/custom_handlers/'],
349 ['exclude', '^common/extensions/'],
350 ['exclude', '^common/external_ipc_fuzzer\\.'],
351 ['exclude', '^common/logging_chrome\\.'],
352 ['exclude', '^common/multi_process_'],
353 ['exclude', '^common/nacl_'],
354 ['exclude', '^common/pepper_flash\\.'],
355 ['exclude', '^common/profiling\\.'],
356 ['exclude', '^common/service_process_util_'],
357 ['exclude', '^common/spellcheck_'],
358 ['exclude', '^common/web_apps\\.'],
359 # TODO(ios): Include files here as they are made to work; once
360 # everything is online, remove everything below here and just
361 # use the exclusions above.
[email protected]b7d1efa62012-11-16 11:22:02362 ['exclude', '\\.(cc|mm)$'],
363 ['include', '_ios\\.(cc|mm)$'],
364 ['include', '(^|/)ios/'],
365 ['include', '^common/chrome_version_info\\.cc$'],
366 ['include', '^common/zip'],
[email protected]fdaed545c2012-10-20 19:13:04367 ],
368 }],
[email protected]9f6167c2012-03-16 02:28:17369 ['OS=="android"', {
370 'sources/': [
[email protected]281288d2012-11-09 03:03:23371 ['exclude', '^common/chrome_version_info_posix.cc'],
[email protected]9f6167c2012-03-16 02:28:17372 ['exclude', '^common/service_'],
373 ],
[email protected]ccd90f02012-11-01 19:52:15374 'dependencies!': [
375 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
376 ],
[email protected]9f6167c2012-03-16 02:28:17377 }],
[email protected]93156cec2011-09-12 21:14:44378 ['OS=="win"', {
379 'include_dirs': [
380 '<(DEPTH)/third_party/wtl/include',
[email protected]ef777a42011-11-25 13:15:43381 ]
382 }],
[email protected]cb5e5072011-05-19 21:49:41383 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46384 'dependencies': [
385 '../build/linux/system.gyp:gtk',
386 ],
387 'export_dependent_settings': [
388 '../third_party/sqlite/sqlite.gyp:sqlite',
389 ],
390 'link_settings': {
391 'libraries': [
392 '-lX11',
393 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54394 '-lXss',
[email protected]dd363682009-12-28 20:30:46395 '-lXext',
396 ],
397 },
[email protected]0ce34852011-09-23 20:00:51398 }],
[email protected]b9bbf5532011-11-03 07:35:22399 ['OS=="linux" and selinux==1', {
400 'dependencies': [
401 '../build/linux/system.gyp:selinux',
[email protected]4641d3c2010-08-26 21:44:13402 ],
[email protected]b9bbf5532011-11-03 07:35:22403 }],
[email protected]89886fa32012-10-08 23:46:33404 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25405 'sources!': [
406 'common/chrome_version_info_linux.cc',
407 ],
408 }],
[email protected]b9bbf5532011-11-03 07:35:22409 ['OS=="mac"', {
410 'dependencies': [
411 '../third_party/mach_override/mach_override.gyp:mach_override',
412 ],
413 'include_dirs': [
414 '../third_party/GTM',
415 ],
[email protected]1f26b9a2012-02-28 00:29:38416 'sources!': [
417 'common/child_process_logging_posix.cc',
418 'common/chrome_version_info_posix.cc',
419 ],
[email protected]b9bbf5532011-11-03 07:35:22420 }],
421 ['remoting==1', {
422 'dependencies': [
423 '../remoting/remoting.gyp:remoting_client_plugin',
424 ],
425 }],
426 ],
[email protected]fdaed545c2012-10-20 19:13:04427 'target_conditions': [
428 ['OS == "ios"', {
429 'sources/': [
430 # Pull in specific Mac files for iOS (which have been filtered out
431 # by file name rules).
432 ['include', '^common/chrome_version_info_mac\\.mm$'],
[email protected]b7d1efa62012-11-16 11:22:02433 ['include', '^common/mac/nscoder_util\\.'],
[email protected]fdaed545c2012-10-20 19:13:04434 ],
435 }],
436 ],
[email protected]b9bbf5532011-11-03 07:35:22437 'export_dependent_settings': [
438 '../base/base.gyp:base',
[email protected]8a59a082012-03-07 02:27:30439 'metrics_proto',
[email protected]b9bbf5532011-11-03 07:35:22440 ],
441 },
442 {
443 'target_name': 'common_version',
444 'type': 'none',
445 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04446 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22447 'direct_dependent_settings': {
448 'include_dirs': [
449 '<(SHARED_INTERMEDIATE_DIR)',
450 ],
451 },
[email protected]79440c52010-08-27 22:53:02452 # Because posix_version generates a header, we must set the
453 # hard_dependency flag.
454 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13455 'actions': [
456 {
457 'action_name': 'posix_version',
458 'variables': {
459 'lastchange_path':
[email protected]9046a112012-01-31 20:45:25460 '<(DEPTH)/build/util/LASTCHANGE',
[email protected]4641d3c2010-08-26 21:44:13461 'version_py_path': 'tools/build/version.py',
462 'version_path': 'VERSION',
463 'template_input_path': 'common/chrome_version_info_posix.h.version',
464 },
465 'conditions': [
466 [ 'branding == "Chrome"', {
467 'variables': {
468 'branding_path':
469 'app/theme/google_chrome/BRANDING',
470 },
471 }, { # else branding!="Chrome"
472 'variables': {
473 'branding_path':
474 'app/theme/chromium/BRANDING',
475 },
476 }],
477 ],
478 'inputs': [
479 '<(template_input_path)',
480 '<(version_path)',
481 '<(branding_path)',
482 '<(lastchange_path)',
483 ],
484 'outputs': [
485 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
486 ],
487 'action': [
488 'python',
489 '<(version_py_path)',
490 '-f', '<(version_path)',
491 '-f', '<(branding_path)',
492 '-f', '<(lastchange_path)',
493 '<(template_input_path)',
494 '<@(_outputs)',
495 ],
496 'message': 'Generating version information',
497 },
498 ],
499 }],
[email protected]dd363682009-12-28 20:30:46500 ],
501 },
[email protected]3c3065d2010-05-06 21:59:55502 {
503 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53504 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55505 'sources': [
[email protected]06305962012-05-09 22:34:36506 'common/net/net_resource_provider.cc',
507 'common/net/net_resource_provider.h',
508 'common/net/predictor_common.h',
509 'common/net/url_util.cc',
510 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40511 'common/net/x509_certificate_model.cc',
512 'common/net/x509_certificate_model_nss.cc',
513 'common/net/x509_certificate_model_openssl.cc',
514 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55515 ],
516 'dependencies': [
[email protected]37794d02011-11-30 18:24:29517 '<(DEPTH)/base/base.gyp:base',
518 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
519 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
520 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29521 '<(DEPTH)/net/net.gyp:net_resources',
522 '<(DEPTH)/net/net.gyp:net',
523 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
524 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55525 ],
[email protected]b1c2a5542010-10-08 12:44:40526 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04527 ['OS != "ios"', {
528 'dependencies': [
529 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
530 ],
531 }, { # OS == ios
532 'sources!': [
533 'common/net/net_resource_provider.cc',
534 'common/net/x509_certificate_model.cc',
535 ],
536 }],
537 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30538 'dependencies': [
539 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40540 ],
541 },
[email protected]af221ff2012-04-03 05:22:39542 ],
[email protected]fdaed545c2012-10-20 19:13:04543 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40544 'sources!': [
545 'common/net/x509_certificate_model_nss.cc',
546 'common/net/x509_certificate_model_openssl.cc',
547 ],
548 },
549 ],
[email protected]af221ff2012-04-03 05:22:39550 ['OS == "android"', {
551 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01552 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39553 ],
554 },
555 ],
[email protected]b1c2a5542010-10-08 12:44:40556 ['use_openssl==1', {
557 'sources!': [
558 'common/net/x509_certificate_model_nss.cc',
559 ],
560 },
561 { # else !use_openssl: remove the unneeded files
562 'sources!': [
563 'common/net/x509_certificate_model_openssl.cc',
564 ],
565 },
566 ],
[email protected]129d11452012-03-01 01:56:56567 ],
[email protected]3c3065d2010-05-06 21:59:55568 },
[email protected]133139772011-04-14 22:14:13569 {
[email protected]1c20dd62011-08-19 21:54:33570 # Protobuf compiler / generator for the safebrowsing client
571 # model proto and the client-side detection (csd) request
572 # protocol buffer.
[email protected]cae64fe2011-06-17 17:54:50573 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33574 'type': 'static_library',
575 'sources': [
576 'common/safe_browsing/client_model.proto',
577 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50578 ],
[email protected]1c20dd62011-08-19 21:54:33579 'variables': {
580 'proto_in_dir': 'common/safe_browsing',
581 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50582 },
[email protected]1c20dd62011-08-19 21:54:33583 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13584 },
[email protected]7ae45d0502012-01-31 00:29:26585 {
586 # Protobuf compiler / generator for UMA (User Metrics Analysis).
587 'target_name': 'metrics_proto',
588 'type': 'static_library',
589 'sources': [
[email protected]f89fdab12012-05-04 23:27:21590 'common/metrics/proto/chrome_experiments.proto',
[email protected]7ae45d0502012-01-31 00:29:26591 'common/metrics/proto/chrome_user_metrics_extension.proto',
592 'common/metrics/proto/histogram_event.proto',
593 'common/metrics/proto/omnibox_event.proto',
[email protected]2a08b1d2012-02-18 00:30:04594 'common/metrics/proto/profiler_event.proto',
[email protected]7ae45d0502012-01-31 00:29:26595 'common/metrics/proto/system_profile.proto',
596 'common/metrics/proto/user_action_event.proto',
597 ],
598 'variables': {
599 'proto_in_dir': 'common/metrics/proto',
600 'proto_out_dir': 'chrome/common/metrics/proto',
601 },
602 'includes': [ '../build/protoc.gypi' ],
603 },
[email protected]dd363682009-12-28 20:30:46604 ],
[email protected]dd363682009-12-28 20:30:46605}