blob: 75476e08b34397667624286663ca8a230d1bd24a [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',
[email protected]e9f541a2012-11-19 21:52:3156 '../extensions/common/error_utils.cc',
57 '../extensions/common/error_utils.h',
[email protected]885c0e92012-11-13 20:27:4258 '../extensions/common/url_pattern.cc',
59 '../extensions/common/url_pattern.h',
[email protected]e9f541a2012-11-19 21:52:3160 '../extensions/common/url_pattern_set.cc',
61 '../extensions/common/url_pattern_set.h',
[email protected]4a6d74152011-09-26 20:42:3062 'common/all_messages.h',
[email protected]93156cec2011-09-12 21:14:4463 'common/attrition_experiments.h',
64 'common/auto_start_linux.cc',
65 'common/auto_start_linux.h',
[email protected]72a3a522013-01-03 23:41:0766 'common/autofill/web_element_descriptor.cc',
67 'common/autofill/web_element_descriptor.h',
[email protected]93156cec2011-09-12 21:14:4468 'common/autofill_messages.h',
[email protected]cdb8bc282010-11-22 19:23:0669 'common/automation_constants.cc',
70 'common/automation_constants.h',
[email protected]165901feb2012-05-23 15:38:2271 'common/automation_events.cc',
72 'common/automation_events.h',
[email protected]c54ab2332011-12-05 21:05:4273 'common/automation_id.cc',
74 'common/automation_id.h',
[email protected]cdb8bc282010-11-22 19:23:0675 'common/automation_messages.cc',
76 'common/automation_messages.h',
77 'common/automation_messages_internal.h',
78 'common/badge_util.cc',
79 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:1080 'common/bzip2_error_handler.cc',
[email protected]62867b02012-11-03 07:21:0381 'common/cancelable_task_tracker.cc',
82 'common/cancelable_task_tracker.h',
[email protected]93156cec2011-09-12 21:14:4483 'common/child_process_logging.h',
[email protected]93156cec2011-09-12 21:14:4484 'common/child_process_logging_mac.mm',
[email protected]1f26b9a2012-02-28 00:29:3885 'common/child_process_logging_posix.cc',
[email protected]93156cec2011-09-12 21:14:4486 'common/child_process_logging_win.cc',
[email protected]50e52cd2011-03-10 00:57:2987 'common/chrome_content_client.cc',
88 'common/chrome_content_client.h',
[email protected]b7d1efa62012-11-16 11:22:0289 'common/chrome_content_client_ios.mm',
[email protected]93156cec2011-09-12 21:14:4490 'common/chrome_notification_types.h',
[email protected]c530c852011-10-24 18:18:3491 'common/chrome_result_codes.h',
[email protected]dbd825842011-11-25 20:55:2492 'common/chrome_sandbox_type_mac.h',
[email protected]19a5c7442011-10-21 20:00:4193 'common/chrome_utility_messages.h',
[email protected]93156cec2011-09-12 21:14:4494 'common/chrome_version_info.cc',
[email protected]281288d2012-11-09 03:03:2395 'common/chrome_version_info_android.cc',
[email protected]3a12f882011-12-14 06:39:2596 'common/chrome_version_info_chromeos.cc',
[email protected]1f26b9a2012-02-28 00:29:3897 'common/chrome_version_info_posix.cc',
[email protected]93156cec2011-09-12 21:14:4498 'common/chrome_version_info_mac.mm',
99 'common/chrome_version_info_win.cc',
100 'common/chrome_version_info.h',
[email protected]13aec6c42011-10-27 21:22:08101 'common/cloud_print/cloud_print_class_mac.h',
102 'common/cloud_print/cloud_print_class_mac.mm',
[email protected]3eadbf22012-12-03 08:34:46103 'common/cloud_print/cloud_print_constants.cc',
104 'common/cloud_print/cloud_print_constants.h',
[email protected]b106ca52012-03-13 06:08:46105 'common/cloud_print/cloud_print_helpers.cc',
106 'common/cloud_print/cloud_print_helpers.h',
[email protected]de119cf22011-05-11 20:41:35107 'common/cloud_print/cloud_print_proxy_info.cc',
108 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]fffaf972011-03-24 01:34:35109 'common/common_message_generator.cc',
110 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:03111 'common/common_param_traits.cc',
112 'common/common_param_traits.h',
[email protected]af049dd2012-06-26 01:01:42113 'common/common_param_traits_macros.h',
[email protected]93156cec2011-09-12 21:14:44114 'common/content_settings.cc',
115 'common/content_settings.h',
116 'common/content_settings_helper.cc',
117 'common/content_settings_helper.h',
[email protected]1d03fa32011-09-21 08:19:27118 'common/content_settings_pattern.cc',
119 'common/content_settings_pattern.h',
120 'common/content_settings_pattern_parser.cc',
121 'common/content_settings_pattern_parser.h',
[email protected]93156cec2011-09-12 21:14:44122 'common/content_settings_types.h',
[email protected]50cdead2013-01-03 18:36:33123 'common/crash_keys.cc',
124 'common/crash_keys.h',
[email protected]083917c82011-07-13 00:34:35125 'common/custom_handlers/protocol_handler.cc',
126 'common/custom_handlers/protocol_handler.h',
[email protected]29699c22012-10-03 23:57:39127 'common/descriptors_android.h',
[email protected]d356c982012-12-12 19:32:55128 'common/extensions/api/extension_api.cc',
129 'common/extensions/api/extension_api.h',
130 'common/extensions/api/extension_api_stub.cc',
[email protected]4af65592013-01-04 21:06:19131 'common/extensions/api/input_ime/input_components_handler.cc',
132 'common/extensions/api/input_ime/input_components_handler.h',
[email protected]d356c982012-12-12 19:32:55133 'common/extensions/api/omnibox/omnibox_handler.cc',
134 'common/extensions/api/omnibox/omnibox_handler.h',
[email protected]692a8062013-01-10 04:14:42135 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
136 'common/extensions/api/speech/tts_engine_manifest_handler.h',
[email protected]65907942012-05-22 19:59:47137 'common/extensions/command.cc',
138 'common/extensions/command.h',
[email protected]ee0be772011-12-02 08:02:10139 'common/extensions/csp_validator.cc',
140 'common/extensions/csp_validator.h',
[email protected]6d4aef22012-09-28 03:40:48141 'common/extensions/draggable_region.cc',
[email protected]a0629af92012-08-08 00:39:37142 'common/extensions/draggable_region.h',
[email protected]4df8ef12012-05-18 05:29:39143 'common/extensions/event_filter.cc',
144 'common/extensions/event_filter.h',
145 'common/extensions/event_filtering_info.cc',
146 'common/extensions/event_filtering_info.h',
147 'common/extensions/event_matcher.cc',
148 'common/extensions/event_matcher.h',
[email protected]dd363682009-12-28 20:30:46149 'common/extensions/extension.cc',
150 'common/extensions/extension.h',
151 'common/extensions/extension_constants.cc',
152 'common/extensions/extension_constants.h',
[email protected]7c927b62010-02-24 09:54:13153 'common/extensions/extension_file_util.cc',
154 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48155 'common/extensions/extension_icon_set.cc',
156 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46157 'common/extensions/extension_l10n_util.cc',
158 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09159 'common/extensions/extension_localization_peer.cc',
160 'common/extensions/extension_localization_peer.h',
[email protected]a52c0e92012-03-23 06:02:24161 'common/extensions/extension_manifest_constants.cc',
162 'common/extensions/extension_manifest_constants.h',
[email protected]44c49c92011-03-28 16:17:23163 'common/extensions/extension_messages.cc',
164 'common/extensions/extension_messages.h',
[email protected]808d1512011-12-14 16:29:59165 'common/extensions/extension_process_policy.cc',
166 'common/extensions/extension_process_policy.h',
[email protected]dd363682009-12-28 20:30:46167 'common/extensions/extension_resource.cc',
168 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36169 'common/extensions/extension_set.cc',
170 'common/extensions/extension_set.h',
[email protected]ee837d32012-10-02 22:25:49171 'common/extensions/feature_switch.cc',
172 'common/extensions/feature_switch.h',
[email protected]4b927fe2012-12-15 20:30:45173 'common/extensions/features/base_feature_provider.cc',
174 'common/extensions/features/base_feature_provider.h',
175 'common/extensions/features/complex_feature.cc',
176 'common/extensions/features/complex_feature.h',
[email protected]5115ccc2012-06-11 19:47:07177 'common/extensions/features/feature.cc',
178 'common/extensions/features/feature.h',
179 'common/extensions/features/feature_provider.h',
180 'common/extensions/features/manifest_feature.cc',
181 'common/extensions/features/manifest_feature.h',
182 'common/extensions/features/permission_feature.cc',
183 'common/extensions/features/permission_feature.h',
[email protected]4b927fe2012-12-15 20:30:45184 'common/extensions/features/simple_feature.cc',
185 'common/extensions/features/simple_feature.h',
[email protected]953620b2011-12-04 00:55:32186 'common/extensions/manifest.cc',
187 'common/extensions/manifest.h',
[email protected]d356c982012-12-12 19:32:55188 'common/extensions/manifest_handler.cc',
189 'common/extensions/manifest_handler.h',
[email protected]a405f6d2013-01-11 11:50:13190 'common/extensions/manifest_url_handler.cc',
191 'common/extensions/manifest_url_handler.h',
[email protected]5bcf3b72012-09-14 00:20:28192 'common/extensions/matcher/regex_set_matcher.cc',
193 'common/extensions/matcher/regex_set_matcher.h',
194 'common/extensions/matcher/string_pattern.cc',
195 'common/extensions/matcher/string_pattern.h',
[email protected]63f1a9e2012-05-09 12:51:00196 'common/extensions/matcher/substring_set_matcher.cc',
197 'common/extensions/matcher/substring_set_matcher.h',
198 'common/extensions/matcher/url_matcher.cc',
199 'common/extensions/matcher/url_matcher.h',
200 'common/extensions/matcher/url_matcher_constants.cc',
201 'common/extensions/matcher/url_matcher_constants.h',
202 'common/extensions/matcher/url_matcher_factory.cc',
203 'common/extensions/matcher/url_matcher_factory.h',
204 'common/extensions/matcher/url_matcher_helpers.cc',
205 'common/extensions/matcher/url_matcher_helpers.h',
[email protected]40404bc2012-07-25 17:40:49206 'common/extensions/message_bundle.cc',
207 'common/extensions/message_bundle.h',
[email protected]c2e66e12012-06-27 06:27:06208 'common/extensions/permissions/api_permission.cc',
209 'common/extensions/permissions/api_permission.h',
[email protected]1d8b79a2012-08-16 20:22:54210 'common/extensions/permissions/api_permission_set.cc',
211 'common/extensions/permissions/api_permission_set.h',
[email protected]288ce6c2012-12-03 21:05:24212 'common/extensions/permissions/bluetooth_device_permission.cc',
213 'common/extensions/permissions/bluetooth_device_permission.h',
[email protected]f3cc80632012-12-06 19:30:25214 'common/extensions/permissions/bluetooth_device_permission_data.cc',
215 'common/extensions/permissions/bluetooth_device_permission_data.h',
[email protected]c2e66e12012-06-27 06:27:06216 'common/extensions/permissions/permission_message.cc',
217 'common/extensions/permissions/permission_message.h',
218 'common/extensions/permissions/permission_set.cc',
219 'common/extensions/permissions/permission_set.h',
220 'common/extensions/permissions/permissions_info.cc',
221 'common/extensions/permissions/permissions_info.h',
[email protected]f3cc80632012-12-06 19:30:25222 'common/extensions/permissions/set_disjunction_permission.h',
[email protected]1d8b79a2012-08-16 20:22:54223 'common/extensions/permissions/socket_permission.cc',
224 'common/extensions/permissions/socket_permission.h',
225 'common/extensions/permissions/socket_permission_data.cc',
226 'common/extensions/permissions/socket_permission_data.h',
[email protected]ad46f222012-12-11 07:18:15227 'common/extensions/permissions/usb_device_permission.cc',
228 'common/extensions/permissions/usb_device_permission.h',
229 'common/extensions/permissions/usb_device_permission_data.cc',
230 'common/extensions/permissions/usb_device_permission_data.h',
[email protected]0b9383a2012-10-26 00:58:16231 'common/extensions/request_media_access_permission_helper.cc',
232 'common/extensions/request_media_access_permission_helper.h',
[email protected]b3fe68d2012-07-16 19:14:39233 'common/extensions/unpacker.cc',
234 'common/extensions/unpacker.h',
[email protected]dd363682009-12-28 20:30:46235 'common/extensions/update_manifest.cc',
236 'common/extensions/update_manifest.h',
[email protected]dd363682009-12-28 20:30:46237 'common/extensions/user_script.cc',
238 'common/extensions/user_script.h',
[email protected]d9e559d2012-07-05 01:04:57239 'common/extensions/value_counter.cc',
240 'common/extensions/value_counter.h',
[email protected]48147fd2013-01-11 05:54:20241 'common/extensions/web_intents_handler.cc',
242 'common/extensions/web_intents_handler.h',
[email protected]93156cec2011-09-12 21:14:44243 'common/external_ipc_fuzzer.h',
244 'common/external_ipc_fuzzer.cc',
[email protected]1ecbe862012-10-05 01:29:14245 'common/form_data.cc',
246 'common/form_data.h',
247 'common/form_data_predictions.cc',
248 'common/form_data_predictions.h',
249 'common/form_field_data.cc',
250 'common/form_field_data.h',
251 'common/form_field_data_predictions.cc',
252 'common/form_field_data_predictions.h',
[email protected]6ae45eb2012-11-29 23:27:28253 'common/icon_with_badge_image_source.cc',
254 'common/icon_with_badge_image_source.h',
[email protected]0e7cb682012-08-15 04:04:38255 'common/instant_types.cc',
[email protected]93156cec2011-09-12 21:14:44256 'common/instant_types.h',
[email protected]367dbf72012-09-16 15:36:23257 'common/json_schema_constants.cc',
258 'common/json_schema_constants.h',
[email protected]639e6712010-11-11 22:21:43259 'common/json_schema_validator.cc',
260 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46261 'common/jstemplate_builder.cc',
262 'common/jstemplate_builder.h',
[email protected]499512b2012-08-08 19:27:49263 'common/localized_error.cc',
264 'common/localized_error.h',
[email protected]93156cec2011-09-12 21:14:44265 'common/logging_chrome.cc',
266 'common/logging_chrome.h',
[email protected]46821242011-08-19 13:59:59267 'common/mac/app_mode_common.h',
268 'common/mac/app_mode_common.mm',
[email protected]00ecec52011-08-19 20:01:24269 'common/mac/cfbundle_blocker.h',
270 'common/mac/cfbundle_blocker.mm',
[email protected]46821242011-08-19 13:59:59271 'common/mac/launchd.h',
272 'common/mac/launchd.mm',
[email protected]d9b6d572012-10-22 16:41:19273 'common/mac/nscoder_util.h',
274 'common/mac/nscoder_util.mm',
[email protected]d02437b2011-09-06 17:25:15275 'common/mac/objc_method_swizzle.h',
276 'common/mac/objc_method_swizzle.mm',
277 'common/mac/objc_zombie.h',
278 'common/mac/objc_zombie.mm',
[email protected]20f999b52012-08-24 22:32:59279 'common/metrics/entropy_provider.cc',
280 'common/metrics/entropy_provider.h',
[email protected]e182be02012-01-27 02:35:44281 'common/metrics/metrics_log_base.cc',
282 'common/metrics/metrics_log_base.h',
[email protected]2e4cd1a2012-01-12 08:51:03283 'common/metrics/metrics_log_manager.cc',
284 'common/metrics/metrics_log_manager.h',
[email protected]e182be02012-01-27 02:35:44285 'common/metrics/metrics_service_base.cc',
286 'common/metrics/metrics_service_base.h',
[email protected]bca34942012-09-05 18:23:25287 'common/metrics/metrics_util.cc',
288 'common/metrics/metrics_util.h',
[email protected]cf265dc02012-08-15 01:01:16289 'common/metrics/variations/variations_util.cc',
290 'common/metrics/variations/variations_util.h',
[email protected]93156cec2011-09-12 21:14:44291 'common/multi_process_lock.h',
292 'common/multi_process_lock_linux.cc',
293 'common/multi_process_lock_mac.cc',
294 'common/multi_process_lock_win.cc',
295 'common/nacl_cmd_line.cc',
296 'common/nacl_cmd_line.h',
297 'common/nacl_messages.cc',
298 'common/nacl_messages.h',
[email protected]00d99542012-04-17 22:48:02299 'common/nacl_types.cc',
[email protected]93156cec2011-09-12 21:14:44300 'common/nacl_types.h',
[email protected]1ecbe862012-10-05 01:29:14301 'common/password_form_fill_data.cc',
302 'common/password_form_fill_data.h',
[email protected]341370e2012-07-21 01:45:56303 'common/password_generation_util.cc',
304 'common/password_generation_util.h',
[email protected]9b4f6082012-04-24 01:43:07305 'common/pepper_flash.cc',
306 'common/pepper_flash.h',
[email protected]be85e7d2012-10-31 08:34:20307 'common/pref_names_util.cc',
308 'common/pref_names_util.h',
[email protected]b4bd67a2011-08-22 19:04:09309 'common/print_messages.cc',
[email protected]1375e3ab2011-03-24 17:07:22310 'common/print_messages.h',
[email protected]93156cec2011-09-12 21:14:44311 'common/profiling.cc',
312 'common/profiling.h',
[email protected]93156cec2011-09-12 21:14:44313 'common/ref_counted_util.h',
[email protected]7a4de7a62010-08-17 18:38:24314 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46315 'common/render_messages.h',
[email protected]93156cec2011-09-12 21:14:44316 'common/safe_browsing/safebrowsing_messages.h',
[email protected]c08e7932011-03-29 04:08:14317 'common/search_provider.h',
[email protected]c3917742012-11-21 01:51:14318 'common/search_types.h',
[email protected]38fe1962010-07-31 07:57:00319 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24320 'common/service_process_util.cc',
321 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36322 'common/service_process_util_linux.cc',
323 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04324 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36325 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04326 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46327 'common/spellcheck_common.cc',
328 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45329 'common/spellcheck_messages.h',
[email protected]7ed49c22012-02-17 02:14:53330 'common/spellcheck_result.h',
[email protected]b5febf72012-07-29 18:10:09331 'common/startup_metric_utils.cc',
332 'common/startup_metric_utils.h',
[email protected]93156cec2011-09-12 21:14:44333 'common/switch_utils.cc',
334 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:46335 'common/thumbnail_score.cc',
336 'common/thumbnail_score.h',
[email protected]93156cec2011-09-12 21:14:44337 'common/time_format.cc',
338 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46339 'common/url_constants.cc',
340 'common/url_constants.h',
[email protected]299d7f12012-05-23 05:31:15341 'common/view_type.cc',
342 'common/view_type.h',
[email protected]dd363682009-12-28 20:30:46343 'common/visitedlink_common.cc',
344 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44345 'common/web_apps.cc',
346 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06347 'common/web_resource/web_resource_unpacker.cc',
348 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46349 'common/worker_thread_ticker.cc',
350 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46351 'common/zip.cc', # Requires zlib directly.
352 'common/zip.h',
[email protected]79b2024f2011-11-09 19:32:12353 'common/zip_internal.cc',
354 'common/zip_internal.h',
[email protected]198e77822011-11-11 18:50:03355 'common/zip_reader.cc',
356 'common/zip_reader.h',
[email protected]dd363682009-12-28 20:30:46357 ],
358 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04359 ['OS != "ios"', {
360 'dependencies': [
361 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
362 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
363 '<(DEPTH)/ipc/ipc.gyp:ipc',
364 '<(DEPTH)/printing/printing.gyp:printing',
365 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
366 '<(DEPTH)/third_party/re2/re2.gyp:re2',
367 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
368 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
369 ],
370 }, { # OS == ios
371 'sources/': [
372 ['exclude', '^common/automation_'],
373 ['exclude', '^common/child_process_'],
374 ['exclude', '^common/chrome_content_client\\.cc$'],
375 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
376 ['exclude', '^common/common_message_generator\\.cc$'],
377 ['exclude', '^common/common_param_traits'],
378 ['exclude', '^common/custom_handlers/'],
379 ['exclude', '^common/extensions/'],
380 ['exclude', '^common/external_ipc_fuzzer\\.'],
381 ['exclude', '^common/logging_chrome\\.'],
382 ['exclude', '^common/multi_process_'],
383 ['exclude', '^common/nacl_'],
384 ['exclude', '^common/pepper_flash\\.'],
385 ['exclude', '^common/profiling\\.'],
386 ['exclude', '^common/service_process_util_'],
387 ['exclude', '^common/spellcheck_'],
388 ['exclude', '^common/web_apps\\.'],
389 # TODO(ios): Include files here as they are made to work; once
390 # everything is online, remove everything below here and just
391 # use the exclusions above.
[email protected]b7d1efa62012-11-16 11:22:02392 ['exclude', '\\.(cc|mm)$'],
393 ['include', '_ios\\.(cc|mm)$'],
394 ['include', '(^|/)ios/'],
395 ['include', '^common/chrome_version_info\\.cc$'],
396 ['include', '^common/zip'],
[email protected]fdaed545c2012-10-20 19:13:04397 ],
398 }],
[email protected]9f6167c2012-03-16 02:28:17399 ['OS=="android"', {
400 'sources/': [
[email protected]281288d2012-11-09 03:03:23401 ['exclude', '^common/chrome_version_info_posix.cc'],
[email protected]9f6167c2012-03-16 02:28:17402 ['exclude', '^common/service_'],
403 ],
[email protected]ccd90f02012-11-01 19:52:15404 'dependencies!': [
405 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
406 ],
[email protected]9f6167c2012-03-16 02:28:17407 }],
[email protected]93156cec2011-09-12 21:14:44408 ['OS=="win"', {
409 'include_dirs': [
410 '<(DEPTH)/third_party/wtl/include',
[email protected]ef777a42011-11-25 13:15:43411 ]
412 }],
[email protected]cb5e5072011-05-19 21:49:41413 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46414 'dependencies': [
415 '../build/linux/system.gyp:gtk',
416 ],
417 'export_dependent_settings': [
418 '../third_party/sqlite/sqlite.gyp:sqlite',
419 ],
420 'link_settings': {
421 'libraries': [
422 '-lX11',
423 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54424 '-lXss',
[email protected]dd363682009-12-28 20:30:46425 '-lXext',
426 ],
427 },
[email protected]0ce34852011-09-23 20:00:51428 }],
[email protected]b9bbf5532011-11-03 07:35:22429 ['OS=="linux" and selinux==1', {
430 'dependencies': [
431 '../build/linux/system.gyp:selinux',
[email protected]4641d3c2010-08-26 21:44:13432 ],
[email protected]b9bbf5532011-11-03 07:35:22433 }],
[email protected]89886fa32012-10-08 23:46:33434 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25435 'sources!': [
436 'common/chrome_version_info_linux.cc',
437 ],
438 }],
[email protected]b9bbf5532011-11-03 07:35:22439 ['OS=="mac"', {
440 'dependencies': [
441 '../third_party/mach_override/mach_override.gyp:mach_override',
442 ],
443 'include_dirs': [
444 '../third_party/GTM',
445 ],
[email protected]1f26b9a2012-02-28 00:29:38446 'sources!': [
447 'common/child_process_logging_posix.cc',
448 'common/chrome_version_info_posix.cc',
449 ],
[email protected]b9bbf5532011-11-03 07:35:22450 }],
[email protected]e78b47c2012-12-04 15:34:23451 ['enable_extensions==1', {
452 'sources!': [
453 'common/extensions/api/extension_api_stub.cc',
454 ],
[email protected]06af6a42012-12-14 00:16:40455 'dependencies': [
456 '../device/device.gyp:device_usb',
457 ],
[email protected]e78b47c2012-12-04 15:34:23458 }, { # enable_extensions == 0
459 'sources/': [
460 ['exclude', '^common/extensions/api/'],
461 ['include', 'common/extensions/api/extension_api_stub.cc'],
462 ],
463 }],
[email protected]b9bbf5532011-11-03 07:35:22464 ['remoting==1', {
465 'dependencies': [
466 '../remoting/remoting.gyp:remoting_client_plugin',
467 ],
468 }],
469 ],
[email protected]fdaed545c2012-10-20 19:13:04470 'target_conditions': [
471 ['OS == "ios"', {
472 'sources/': [
473 # Pull in specific Mac files for iOS (which have been filtered out
474 # by file name rules).
475 ['include', '^common/chrome_version_info_mac\\.mm$'],
[email protected]b7d1efa62012-11-16 11:22:02476 ['include', '^common/mac/nscoder_util\\.'],
[email protected]fdaed545c2012-10-20 19:13:04477 ],
478 }],
479 ],
[email protected]b9bbf5532011-11-03 07:35:22480 'export_dependent_settings': [
481 '../base/base.gyp:base',
[email protected]8a59a082012-03-07 02:27:30482 'metrics_proto',
[email protected]b9bbf5532011-11-03 07:35:22483 ],
484 },
485 {
486 'target_name': 'common_version',
487 'type': 'none',
488 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04489 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22490 'direct_dependent_settings': {
491 'include_dirs': [
492 '<(SHARED_INTERMEDIATE_DIR)',
493 ],
494 },
[email protected]79440c52010-08-27 22:53:02495 # Because posix_version generates a header, we must set the
496 # hard_dependency flag.
497 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13498 'actions': [
499 {
500 'action_name': 'posix_version',
501 'variables': {
502 'lastchange_path':
[email protected]9046a112012-01-31 20:45:25503 '<(DEPTH)/build/util/LASTCHANGE',
[email protected]4641d3c2010-08-26 21:44:13504 'version_py_path': 'tools/build/version.py',
505 'version_path': 'VERSION',
506 'template_input_path': 'common/chrome_version_info_posix.h.version',
507 },
508 'conditions': [
509 [ 'branding == "Chrome"', {
510 'variables': {
511 'branding_path':
512 'app/theme/google_chrome/BRANDING',
513 },
514 }, { # else branding!="Chrome"
515 'variables': {
516 'branding_path':
517 'app/theme/chromium/BRANDING',
518 },
519 }],
520 ],
521 'inputs': [
522 '<(template_input_path)',
523 '<(version_path)',
524 '<(branding_path)',
525 '<(lastchange_path)',
526 ],
527 'outputs': [
528 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
529 ],
530 'action': [
531 'python',
532 '<(version_py_path)',
533 '-f', '<(version_path)',
534 '-f', '<(branding_path)',
535 '-f', '<(lastchange_path)',
536 '<(template_input_path)',
537 '<@(_outputs)',
538 ],
539 'message': 'Generating version information',
540 },
541 ],
542 }],
[email protected]dd363682009-12-28 20:30:46543 ],
544 },
[email protected]3c3065d2010-05-06 21:59:55545 {
546 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53547 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55548 'sources': [
[email protected]06305962012-05-09 22:34:36549 'common/net/net_resource_provider.cc',
550 'common/net/net_resource_provider.h',
551 'common/net/predictor_common.h',
552 'common/net/url_util.cc',
553 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40554 'common/net/x509_certificate_model.cc',
555 'common/net/x509_certificate_model_nss.cc',
556 'common/net/x509_certificate_model_openssl.cc',
557 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55558 ],
559 'dependencies': [
[email protected]37794d02011-11-30 18:24:29560 '<(DEPTH)/base/base.gyp:base',
561 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
562 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
563 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29564 '<(DEPTH)/net/net.gyp:net_resources',
565 '<(DEPTH)/net/net.gyp:net',
566 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
567 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55568 ],
[email protected]b1c2a5542010-10-08 12:44:40569 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04570 ['OS != "ios"', {
571 'dependencies': [
572 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
573 ],
574 }, { # OS == ios
575 'sources!': [
576 'common/net/net_resource_provider.cc',
577 'common/net/x509_certificate_model.cc',
578 ],
579 }],
580 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30581 'dependencies': [
582 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40583 ],
584 },
[email protected]af221ff2012-04-03 05:22:39585 ],
[email protected]fdaed545c2012-10-20 19:13:04586 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40587 'sources!': [
588 'common/net/x509_certificate_model_nss.cc',
589 'common/net/x509_certificate_model_openssl.cc',
590 ],
591 },
592 ],
[email protected]af221ff2012-04-03 05:22:39593 ['OS == "android"', {
594 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01595 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39596 ],
597 },
598 ],
[email protected]b1c2a5542010-10-08 12:44:40599 ['use_openssl==1', {
600 'sources!': [
601 'common/net/x509_certificate_model_nss.cc',
602 ],
603 },
604 { # else !use_openssl: remove the unneeded files
605 'sources!': [
606 'common/net/x509_certificate_model_openssl.cc',
607 ],
608 },
609 ],
[email protected]129d11452012-03-01 01:56:56610 ],
[email protected]3c3065d2010-05-06 21:59:55611 },
[email protected]133139772011-04-14 22:14:13612 {
[email protected]1c20dd62011-08-19 21:54:33613 # Protobuf compiler / generator for the safebrowsing client
614 # model proto and the client-side detection (csd) request
615 # protocol buffer.
[email protected]cae64fe2011-06-17 17:54:50616 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33617 'type': 'static_library',
618 'sources': [
619 'common/safe_browsing/client_model.proto',
620 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50621 ],
[email protected]1c20dd62011-08-19 21:54:33622 'variables': {
623 'proto_in_dir': 'common/safe_browsing',
624 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50625 },
[email protected]1c20dd62011-08-19 21:54:33626 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13627 },
[email protected]7ae45d0502012-01-31 00:29:26628 {
629 # Protobuf compiler / generator for UMA (User Metrics Analysis).
630 'target_name': 'metrics_proto',
631 'type': 'static_library',
632 'sources': [
[email protected]f89fdab12012-05-04 23:27:21633 'common/metrics/proto/chrome_experiments.proto',
[email protected]7ae45d0502012-01-31 00:29:26634 'common/metrics/proto/chrome_user_metrics_extension.proto',
635 'common/metrics/proto/histogram_event.proto',
636 'common/metrics/proto/omnibox_event.proto',
[email protected]2a08b1d2012-02-18 00:30:04637 'common/metrics/proto/profiler_event.proto',
[email protected]7ae45d0502012-01-31 00:29:26638 'common/metrics/proto/system_profile.proto',
639 'common/metrics/proto/user_action_event.proto',
640 ],
641 'variables': {
642 'proto_in_dir': 'common/metrics/proto',
643 'proto_out_dir': 'chrome/common/metrics/proto',
644 },
645 'includes': [ '../build/protoc.gypi' ],
646 },
[email protected]dd363682009-12-28 20:30:46647 ],
[email protected]dd363682009-12-28 20:30:46648}