blob: 093472508b8a10b3107277aa21bcc18a6df729a7 [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]4a6d74152011-09-26 20:42:3054 'common/all_messages.h',
[email protected]93156cec2011-09-12 21:14:4455 'common/attrition_experiments.h',
56 'common/auto_start_linux.cc',
57 'common/auto_start_linux.h',
58 'common/autofill_messages.h',
[email protected]cdb8bc282010-11-22 19:23:0659 'common/automation_constants.cc',
60 'common/automation_constants.h',
[email protected]165901feb2012-05-23 15:38:2261 'common/automation_events.cc',
62 'common/automation_events.h',
[email protected]c54ab2332011-12-05 21:05:4263 'common/automation_id.cc',
64 'common/automation_id.h',
[email protected]cdb8bc282010-11-22 19:23:0665 'common/automation_messages.cc',
66 'common/automation_messages.h',
67 'common/automation_messages_internal.h',
68 'common/badge_util.cc',
69 'common/badge_util.h',
[email protected]23bb71f2011-04-21 22:22:1070 'common/bzip2_error_handler.cc',
[email protected]93156cec2011-09-12 21:14:4471 'common/child_process_logging.h',
[email protected]93156cec2011-09-12 21:14:4472 'common/child_process_logging_mac.mm',
[email protected]1f26b9a2012-02-28 00:29:3873 'common/child_process_logging_posix.cc',
[email protected]93156cec2011-09-12 21:14:4474 'common/child_process_logging_win.cc',
[email protected]50e52cd2011-03-10 00:57:2975 'common/chrome_content_client.cc',
76 'common/chrome_content_client.h',
[email protected]93156cec2011-09-12 21:14:4477 'common/chrome_notification_types.h',
[email protected]c530c852011-10-24 18:18:3478 'common/chrome_result_codes.h',
[email protected]dbd825842011-11-25 20:55:2479 'common/chrome_sandbox_type_mac.h',
[email protected]19a5c7442011-10-21 20:00:4180 'common/chrome_utility_messages.h',
[email protected]93156cec2011-09-12 21:14:4481 'common/chrome_version_info.cc',
[email protected]3a12f882011-12-14 06:39:2582 'common/chrome_version_info_chromeos.cc',
[email protected]1f26b9a2012-02-28 00:29:3883 'common/chrome_version_info_posix.cc',
[email protected]93156cec2011-09-12 21:14:4484 'common/chrome_version_info_mac.mm',
85 'common/chrome_version_info_win.cc',
86 'common/chrome_version_info.h',
[email protected]13aec6c42011-10-27 21:22:0887 'common/cloud_print/cloud_print_class_mac.h',
88 'common/cloud_print/cloud_print_class_mac.mm',
[email protected]b106ca52012-03-13 06:08:4689 'common/cloud_print/cloud_print_helpers.cc',
90 'common/cloud_print/cloud_print_helpers.h',
[email protected]de119cf22011-05-11 20:41:3591 'common/cloud_print/cloud_print_proxy_info.cc',
92 'common/cloud_print/cloud_print_proxy_info.h',
[email protected]fffaf972011-03-24 01:34:3593 'common/common_message_generator.cc',
94 'common/common_message_generator.h',
[email protected]79d68c62011-04-15 21:07:0395 'common/common_param_traits.cc',
96 'common/common_param_traits.h',
[email protected]af049dd2012-06-26 01:01:4297 'common/common_param_traits_macros.h',
[email protected]93156cec2011-09-12 21:14:4498 'common/content_settings.cc',
99 'common/content_settings.h',
100 'common/content_settings_helper.cc',
101 'common/content_settings_helper.h',
[email protected]1d03fa32011-09-21 08:19:27102 'common/content_settings_pattern.cc',
103 'common/content_settings_pattern.h',
104 'common/content_settings_pattern_parser.cc',
105 'common/content_settings_pattern_parser.h',
[email protected]93156cec2011-09-12 21:14:44106 'common/content_settings_types.h',
[email protected]083917c82011-07-13 00:34:35107 'common/custom_handlers/protocol_handler.cc',
108 'common/custom_handlers/protocol_handler.h',
[email protected]29699c22012-10-03 23:57:39109 'common/descriptors_android.h',
[email protected]65907942012-05-22 19:59:47110 'common/extensions/command.cc',
111 'common/extensions/command.h',
[email protected]ee0be772011-12-02 08:02:10112 'common/extensions/csp_validator.cc',
113 'common/extensions/csp_validator.h',
[email protected]6d4aef22012-09-28 03:40:48114 'common/extensions/draggable_region.cc',
[email protected]a0629af92012-08-08 00:39:37115 'common/extensions/draggable_region.h',
[email protected]4df8ef12012-05-18 05:29:39116 'common/extensions/event_filter.cc',
117 'common/extensions/event_filter.h',
118 'common/extensions/event_filtering_info.cc',
119 'common/extensions/event_filtering_info.h',
120 'common/extensions/event_matcher.cc',
121 'common/extensions/event_matcher.h',
[email protected]dd363682009-12-28 20:30:46122 'common/extensions/extension.cc',
123 'common/extensions/extension.h',
124 'common/extensions/extension_constants.cc',
125 'common/extensions/extension_constants.h',
[email protected]dd363682009-12-28 20:30:46126 'common/extensions/extension_error_utils.cc',
127 'common/extensions/extension_error_utils.h',
[email protected]7c927b62010-02-24 09:54:13128 'common/extensions/extension_file_util.cc',
129 'common/extensions/extension_file_util.h',
[email protected]807871f2010-09-16 01:04:48130 'common/extensions/extension_icon_set.cc',
131 'common/extensions/extension_icon_set.h',
[email protected]dd363682009-12-28 20:30:46132 'common/extensions/extension_l10n_util.cc',
133 'common/extensions/extension_l10n_util.h',
[email protected]8a58f9a2010-05-18 18:38:09134 'common/extensions/extension_localization_peer.cc',
135 'common/extensions/extension_localization_peer.h',
[email protected]a52c0e92012-03-23 06:02:24136 'common/extensions/extension_manifest_constants.cc',
137 'common/extensions/extension_manifest_constants.h',
[email protected]44c49c92011-03-28 16:17:23138 'common/extensions/extension_messages.cc',
139 'common/extensions/extension_messages.h',
[email protected]808d1512011-12-14 16:29:59140 'common/extensions/extension_process_policy.cc',
141 'common/extensions/extension_process_policy.h',
[email protected]dd363682009-12-28 20:30:46142 'common/extensions/extension_resource.cc',
143 'common/extensions/extension_resource.h',
[email protected]ec7db282011-01-29 01:11:36144 'common/extensions/extension_set.cc',
145 'common/extensions/extension_set.h',
[email protected]ee837d32012-10-02 22:25:49146 'common/extensions/feature_switch.cc',
147 'common/extensions/feature_switch.h',
[email protected]5115ccc2012-06-11 19:47:07148 'common/extensions/features/feature.cc',
149 'common/extensions/features/feature.h',
150 'common/extensions/features/feature_provider.h',
151 'common/extensions/features/manifest_feature.cc',
152 'common/extensions/features/manifest_feature.h',
153 'common/extensions/features/permission_feature.cc',
154 'common/extensions/features/permission_feature.h',
155 'common/extensions/features/simple_feature_provider.cc',
156 'common/extensions/features/simple_feature_provider.h',
[email protected]b6b805e92011-04-16 09:24:14157 'common/extensions/file_browser_handler.cc',
[email protected]3381f172011-05-25 00:20:42158 'common/extensions/file_browser_handler.h',
[email protected]953620b2011-12-04 00:55:32159 'common/extensions/manifest.cc',
160 'common/extensions/manifest.h',
[email protected]5bcf3b72012-09-14 00:20:28161 'common/extensions/matcher/regex_set_matcher.cc',
162 'common/extensions/matcher/regex_set_matcher.h',
163 'common/extensions/matcher/string_pattern.cc',
164 'common/extensions/matcher/string_pattern.h',
[email protected]63f1a9e2012-05-09 12:51:00165 'common/extensions/matcher/substring_set_matcher.cc',
166 'common/extensions/matcher/substring_set_matcher.h',
167 'common/extensions/matcher/url_matcher.cc',
168 'common/extensions/matcher/url_matcher.h',
169 'common/extensions/matcher/url_matcher_constants.cc',
170 'common/extensions/matcher/url_matcher_constants.h',
171 'common/extensions/matcher/url_matcher_factory.cc',
172 'common/extensions/matcher/url_matcher_factory.h',
173 'common/extensions/matcher/url_matcher_helpers.cc',
174 'common/extensions/matcher/url_matcher_helpers.h',
[email protected]40404bc2012-07-25 17:40:49175 'common/extensions/message_bundle.cc',
176 'common/extensions/message_bundle.h',
[email protected]c2e66e12012-06-27 06:27:06177 'common/extensions/permissions/api_permission.cc',
178 'common/extensions/permissions/api_permission.h',
[email protected]1d8b79a2012-08-16 20:22:54179 'common/extensions/permissions/api_permission_set.cc',
180 'common/extensions/permissions/api_permission_set.h',
[email protected]c2e66e12012-06-27 06:27:06181 'common/extensions/permissions/permission_message.cc',
182 'common/extensions/permissions/permission_message.h',
183 'common/extensions/permissions/permission_set.cc',
184 'common/extensions/permissions/permission_set.h',
185 'common/extensions/permissions/permissions_info.cc',
186 'common/extensions/permissions/permissions_info.h',
[email protected]1d8b79a2012-08-16 20:22:54187 'common/extensions/permissions/socket_permission.cc',
188 'common/extensions/permissions/socket_permission.h',
189 'common/extensions/permissions/socket_permission_data.cc',
190 'common/extensions/permissions/socket_permission_data.h',
[email protected]0b9383a2012-10-26 00:58:16191 'common/extensions/request_media_access_permission_helper.cc',
192 'common/extensions/request_media_access_permission_helper.h',
[email protected]b3fe68d2012-07-16 19:14:39193 'common/extensions/unpacker.cc',
194 'common/extensions/unpacker.h',
[email protected]dd363682009-12-28 20:30:46195 'common/extensions/update_manifest.cc',
196 'common/extensions/update_manifest.h',
197 'common/extensions/url_pattern.cc',
198 'common/extensions/url_pattern.h',
[email protected]cced75a2011-05-20 08:31:12199 'common/extensions/url_pattern_set.cc',
200 'common/extensions/url_pattern_set.h',
[email protected]dd363682009-12-28 20:30:46201 'common/extensions/user_script.cc',
202 'common/extensions/user_script.h',
[email protected]d9e559d2012-07-05 01:04:57203 'common/extensions/value_counter.cc',
204 'common/extensions/value_counter.h',
[email protected]83820d42011-11-12 22:03:11205 'common/extensions/api/extension_api.cc',
206 'common/extensions/api/extension_api.h',
[email protected]93156cec2011-09-12 21:14:44207 'common/external_ipc_fuzzer.h',
208 'common/external_ipc_fuzzer.cc',
[email protected]ae4efe42011-04-18 21:28:05209 'common/favicon_url.cc',
210 'common/favicon_url.h',
[email protected]1ecbe862012-10-05 01:29:14211 'common/form_data.cc',
212 'common/form_data.h',
213 'common/form_data_predictions.cc',
214 'common/form_data_predictions.h',
215 'common/form_field_data.cc',
216 'common/form_field_data.h',
217 'common/form_field_data_predictions.cc',
218 'common/form_field_data_predictions.h',
[email protected]93156cec2011-09-12 21:14:44219 'common/icon_messages.h',
[email protected]0e7cb682012-08-15 04:04:38220 'common/instant_types.cc',
[email protected]93156cec2011-09-12 21:14:44221 'common/instant_types.h',
[email protected]367dbf72012-09-16 15:36:23222 'common/json_schema_constants.cc',
223 'common/json_schema_constants.h',
[email protected]639e6712010-11-11 22:21:43224 'common/json_schema_validator.cc',
225 'common/json_schema_validator.h',
[email protected]dd363682009-12-28 20:30:46226 'common/jstemplate_builder.cc',
227 'common/jstemplate_builder.h',
[email protected]499512b2012-08-08 19:27:49228 'common/localized_error.cc',
229 'common/localized_error.h',
[email protected]93156cec2011-09-12 21:14:44230 'common/logging_chrome.cc',
231 'common/logging_chrome.h',
[email protected]46821242011-08-19 13:59:59232 'common/mac/app_mode_common.h',
233 'common/mac/app_mode_common.mm',
[email protected]00ecec52011-08-19 20:01:24234 'common/mac/cfbundle_blocker.h',
235 'common/mac/cfbundle_blocker.mm',
[email protected]46821242011-08-19 13:59:59236 'common/mac/launchd.h',
237 'common/mac/launchd.mm',
[email protected]d9b6d572012-10-22 16:41:19238 'common/mac/nscoder_util.h',
239 'common/mac/nscoder_util.mm',
[email protected]d02437b2011-09-06 17:25:15240 'common/mac/objc_method_swizzle.h',
241 'common/mac/objc_method_swizzle.mm',
242 'common/mac/objc_zombie.h',
243 'common/mac/objc_zombie.mm',
[email protected]20f999b52012-08-24 22:32:59244 'common/metrics/entropy_provider.cc',
245 'common/metrics/entropy_provider.h',
[email protected]e182be02012-01-27 02:35:44246 'common/metrics/metrics_log_base.cc',
247 'common/metrics/metrics_log_base.h',
[email protected]2e4cd1a2012-01-12 08:51:03248 'common/metrics/metrics_log_manager.cc',
249 'common/metrics/metrics_log_manager.h',
[email protected]e182be02012-01-27 02:35:44250 'common/metrics/metrics_service_base.cc',
251 'common/metrics/metrics_service_base.h',
[email protected]bca34942012-09-05 18:23:25252 'common/metrics/metrics_util.cc',
253 'common/metrics/metrics_util.h',
[email protected]cf265dc02012-08-15 01:01:16254 'common/metrics/variations/variations_util.cc',
255 'common/metrics/variations/variations_util.h',
[email protected]93156cec2011-09-12 21:14:44256 'common/multi_process_lock.h',
257 'common/multi_process_lock_linux.cc',
258 'common/multi_process_lock_mac.cc',
259 'common/multi_process_lock_win.cc',
260 'common/nacl_cmd_line.cc',
261 'common/nacl_cmd_line.h',
262 'common/nacl_messages.cc',
263 'common/nacl_messages.h',
[email protected]00d99542012-04-17 22:48:02264 'common/nacl_types.cc',
[email protected]93156cec2011-09-12 21:14:44265 'common/nacl_types.h',
[email protected]1ecbe862012-10-05 01:29:14266 'common/password_form_fill_data.cc',
267 'common/password_form_fill_data.h',
[email protected]341370e2012-07-21 01:45:56268 'common/password_generation_util.cc',
269 'common/password_generation_util.h',
[email protected]9b4f6082012-04-24 01:43:07270 'common/pepper_flash.cc',
271 'common/pepper_flash.h',
[email protected]be85e7d2012-10-31 08:34:20272 'common/pref_names_util.cc',
273 'common/pref_names_util.h',
[email protected]b4bd67a2011-08-22 19:04:09274 'common/print_messages.cc',
[email protected]1375e3ab2011-03-24 17:07:22275 'common/print_messages.h',
[email protected]93156cec2011-09-12 21:14:44276 'common/profiling.cc',
277 'common/profiling.h',
[email protected]93156cec2011-09-12 21:14:44278 'common/ref_counted_util.h',
[email protected]7a4de7a62010-08-17 18:38:24279 'common/render_messages.cc',
[email protected]dd363682009-12-28 20:30:46280 'common/render_messages.h',
[email protected]93156cec2011-09-12 21:14:44281 'common/safe_browsing/safebrowsing_messages.h',
[email protected]c08e7932011-03-29 04:08:14282 'common/search_provider.h',
[email protected]38fe1962010-07-31 07:57:00283 'common/service_messages.h',
[email protected]7a4de7a62010-08-17 18:38:24284 'common/service_process_util.cc',
285 'common/service_process_util.h',
[email protected]56f0f262011-02-24 17:14:36286 'common/service_process_util_linux.cc',
287 'common/service_process_util_mac.mm',
[email protected]146354942010-10-13 20:27:04288 'common/service_process_util_posix.cc',
[email protected]56f0f262011-02-24 17:14:36289 'common/service_process_util_posix.h',
[email protected]146354942010-10-13 20:27:04290 'common/service_process_util_win.cc',
[email protected]dd363682009-12-28 20:30:46291 'common/spellcheck_common.cc',
292 'common/spellcheck_common.h',
[email protected]3e267192011-03-25 01:55:45293 'common/spellcheck_messages.h',
[email protected]7ed49c22012-02-17 02:14:53294 'common/spellcheck_result.h',
[email protected]b5febf72012-07-29 18:10:09295 'common/startup_metric_utils.cc',
296 'common/startup_metric_utils.h',
[email protected]93156cec2011-09-12 21:14:44297 'common/switch_utils.cc',
298 'common/switch_utils.h',
[email protected]dd363682009-12-28 20:30:46299 'common/thumbnail_score.cc',
300 'common/thumbnail_score.h',
[email protected]93156cec2011-09-12 21:14:44301 'common/time_format.cc',
302 'common/time_format.h',
[email protected]dd363682009-12-28 20:30:46303 'common/url_constants.cc',
304 'common/url_constants.h',
[email protected]299d7f12012-05-23 05:31:15305 'common/view_type.cc',
306 'common/view_type.h',
[email protected]dd363682009-12-28 20:30:46307 'common/visitedlink_common.cc',
308 'common/visitedlink_common.h',
[email protected]38789d82010-11-17 06:03:44309 'common/web_apps.cc',
310 'common/web_apps.h',
[email protected]cdb8bc282010-11-22 19:23:06311 'common/web_resource/web_resource_unpacker.cc',
312 'common/web_resource/web_resource_unpacker.h',
[email protected]dd363682009-12-28 20:30:46313 'common/worker_thread_ticker.cc',
314 'common/worker_thread_ticker.h',
[email protected]dd363682009-12-28 20:30:46315 'common/zip.cc', # Requires zlib directly.
316 'common/zip.h',
[email protected]79b2024f2011-11-09 19:32:12317 'common/zip_internal.cc',
318 'common/zip_internal.h',
[email protected]198e77822011-11-11 18:50:03319 'common/zip_reader.cc',
320 'common/zip_reader.h',
[email protected]dd363682009-12-28 20:30:46321 ],
322 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04323 ['OS != "ios"', {
324 'dependencies': [
325 '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
326 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
327 '<(DEPTH)/ipc/ipc.gyp:ipc',
328 '<(DEPTH)/printing/printing.gyp:printing',
329 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
330 '<(DEPTH)/third_party/re2/re2.gyp:re2',
331 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
332 '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
333 ],
334 }, { # OS == ios
335 'sources/': [
336 ['exclude', '^common/automation_'],
337 ['exclude', '^common/child_process_'],
338 ['exclude', '^common/chrome_content_client\\.cc$'],
339 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
340 ['exclude', '^common/common_message_generator\\.cc$'],
341 ['exclude', '^common/common_param_traits'],
342 ['exclude', '^common/custom_handlers/'],
343 ['exclude', '^common/extensions/'],
344 ['exclude', '^common/external_ipc_fuzzer\\.'],
345 ['exclude', '^common/logging_chrome\\.'],
346 ['exclude', '^common/multi_process_'],
347 ['exclude', '^common/nacl_'],
348 ['exclude', '^common/pepper_flash\\.'],
349 ['exclude', '^common/profiling\\.'],
350 ['exclude', '^common/service_process_util_'],
351 ['exclude', '^common/spellcheck_'],
352 ['exclude', '^common/web_apps\\.'],
353 # TODO(ios): Include files here as they are made to work; once
354 # everything is online, remove everything below here and just
355 # use the exclusions above.
356 ['exclude', '.*'],
357 ],
358 }],
[email protected]9f6167c2012-03-16 02:28:17359 ['OS=="android"', {
360 'sources/': [
361 ['exclude', '^common/service_'],
362 ],
363 }],
[email protected]93156cec2011-09-12 21:14:44364 ['OS=="win"', {
365 'include_dirs': [
366 '<(DEPTH)/third_party/wtl/include',
[email protected]ef777a42011-11-25 13:15:43367 ]
368 }],
[email protected]cb5e5072011-05-19 21:49:41369 ['toolkit_uses_gtk == 1', {
[email protected]dd363682009-12-28 20:30:46370 'dependencies': [
371 '../build/linux/system.gyp:gtk',
372 ],
373 'export_dependent_settings': [
374 '../third_party/sqlite/sqlite.gyp:sqlite',
375 ],
376 'link_settings': {
377 'libraries': [
378 '-lX11',
379 '-lXrender',
[email protected]8b46c13b2010-01-26 19:50:54380 '-lXss',
[email protected]dd363682009-12-28 20:30:46381 '-lXext',
382 ],
383 },
[email protected]0ce34852011-09-23 20:00:51384 }],
[email protected]b9bbf5532011-11-03 07:35:22385 ['OS=="linux" and selinux==1', {
386 'dependencies': [
387 '../build/linux/system.gyp:selinux',
[email protected]4641d3c2010-08-26 21:44:13388 ],
[email protected]b9bbf5532011-11-03 07:35:22389 }],
[email protected]89886fa32012-10-08 23:46:33390 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25391 'sources!': [
392 'common/chrome_version_info_linux.cc',
393 ],
394 }],
[email protected]b9bbf5532011-11-03 07:35:22395 ['OS=="mac"', {
396 'dependencies': [
397 '../third_party/mach_override/mach_override.gyp:mach_override',
398 ],
399 'include_dirs': [
400 '../third_party/GTM',
401 ],
[email protected]1f26b9a2012-02-28 00:29:38402 'sources!': [
403 'common/child_process_logging_posix.cc',
404 'common/chrome_version_info_posix.cc',
405 ],
[email protected]b9bbf5532011-11-03 07:35:22406 }],
407 ['remoting==1', {
408 'dependencies': [
409 '../remoting/remoting.gyp:remoting_client_plugin',
410 ],
411 }],
412 ],
[email protected]fdaed545c2012-10-20 19:13:04413 'target_conditions': [
414 ['OS == "ios"', {
415 'sources/': [
416 # Pull in specific Mac files for iOS (which have been filtered out
417 # by file name rules).
418 ['include', '^common/chrome_version_info_mac\\.mm$'],
419 ],
420 }],
421 ],
[email protected]b9bbf5532011-11-03 07:35:22422 'export_dependent_settings': [
423 '../base/base.gyp:base',
[email protected]8a59a082012-03-07 02:27:30424 'metrics_proto',
[email protected]b9bbf5532011-11-03 07:35:22425 ],
426 },
427 {
428 'target_name': 'common_version',
429 'type': 'none',
430 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04431 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22432 'direct_dependent_settings': {
433 'include_dirs': [
434 '<(SHARED_INTERMEDIATE_DIR)',
435 ],
436 },
[email protected]79440c52010-08-27 22:53:02437 # Because posix_version generates a header, we must set the
438 # hard_dependency flag.
439 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13440 'actions': [
441 {
442 'action_name': 'posix_version',
443 'variables': {
444 'lastchange_path':
[email protected]9046a112012-01-31 20:45:25445 '<(DEPTH)/build/util/LASTCHANGE',
[email protected]4641d3c2010-08-26 21:44:13446 'version_py_path': 'tools/build/version.py',
447 'version_path': 'VERSION',
448 'template_input_path': 'common/chrome_version_info_posix.h.version',
449 },
450 'conditions': [
451 [ 'branding == "Chrome"', {
452 'variables': {
453 'branding_path':
454 'app/theme/google_chrome/BRANDING',
455 },
456 }, { # else branding!="Chrome"
457 'variables': {
458 'branding_path':
459 'app/theme/chromium/BRANDING',
460 },
461 }],
462 ],
463 'inputs': [
464 '<(template_input_path)',
465 '<(version_path)',
466 '<(branding_path)',
467 '<(lastchange_path)',
468 ],
469 'outputs': [
470 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
471 ],
472 'action': [
473 'python',
474 '<(version_py_path)',
475 '-f', '<(version_path)',
476 '-f', '<(branding_path)',
477 '-f', '<(lastchange_path)',
478 '<(template_input_path)',
479 '<@(_outputs)',
480 ],
481 'message': 'Generating version information',
482 },
483 ],
484 }],
[email protected]dd363682009-12-28 20:30:46485 ],
486 },
[email protected]3c3065d2010-05-06 21:59:55487 {
488 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53489 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55490 'sources': [
[email protected]06305962012-05-09 22:34:36491 'common/net/net_resource_provider.cc',
492 'common/net/net_resource_provider.h',
493 'common/net/predictor_common.h',
494 'common/net/url_util.cc',
495 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40496 'common/net/x509_certificate_model.cc',
497 'common/net/x509_certificate_model_nss.cc',
498 'common/net/x509_certificate_model_openssl.cc',
499 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55500 ],
501 'dependencies': [
[email protected]37794d02011-11-30 18:24:29502 '<(DEPTH)/base/base.gyp:base',
503 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
504 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
505 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29506 '<(DEPTH)/net/net.gyp:net_resources',
507 '<(DEPTH)/net/net.gyp:net',
508 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
509 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55510 ],
[email protected]b1c2a5542010-10-08 12:44:40511 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04512 ['OS != "ios"', {
513 'dependencies': [
514 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
515 ],
516 }, { # OS == ios
517 'sources!': [
518 'common/net/net_resource_provider.cc',
519 'common/net/x509_certificate_model.cc',
520 ],
521 }],
522 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30523 'dependencies': [
524 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40525 ],
526 },
[email protected]af221ff2012-04-03 05:22:39527 ],
[email protected]fdaed545c2012-10-20 19:13:04528 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40529 'sources!': [
530 'common/net/x509_certificate_model_nss.cc',
531 'common/net/x509_certificate_model_openssl.cc',
532 ],
533 },
534 ],
[email protected]af221ff2012-04-03 05:22:39535 ['OS == "android"', {
536 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01537 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39538 ],
539 },
540 ],
[email protected]b1c2a5542010-10-08 12:44:40541 ['use_openssl==1', {
542 'sources!': [
543 'common/net/x509_certificate_model_nss.cc',
544 ],
545 },
546 { # else !use_openssl: remove the unneeded files
547 'sources!': [
548 'common/net/x509_certificate_model_openssl.cc',
549 ],
550 },
551 ],
[email protected]129d11452012-03-01 01:56:56552 ],
[email protected]3c3065d2010-05-06 21:59:55553 },
[email protected]133139772011-04-14 22:14:13554 {
[email protected]1c20dd62011-08-19 21:54:33555 # Protobuf compiler / generator for the safebrowsing client
556 # model proto and the client-side detection (csd) request
557 # protocol buffer.
[email protected]cae64fe2011-06-17 17:54:50558 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33559 'type': 'static_library',
560 'sources': [
561 'common/safe_browsing/client_model.proto',
562 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50563 ],
[email protected]1c20dd62011-08-19 21:54:33564 'variables': {
565 'proto_in_dir': 'common/safe_browsing',
566 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50567 },
[email protected]1c20dd62011-08-19 21:54:33568 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13569 },
[email protected]7ae45d0502012-01-31 00:29:26570 {
571 # Protobuf compiler / generator for UMA (User Metrics Analysis).
572 'target_name': 'metrics_proto',
573 'type': 'static_library',
574 'sources': [
[email protected]f89fdab12012-05-04 23:27:21575 'common/metrics/proto/chrome_experiments.proto',
[email protected]7ae45d0502012-01-31 00:29:26576 'common/metrics/proto/chrome_user_metrics_extension.proto',
577 'common/metrics/proto/histogram_event.proto',
578 'common/metrics/proto/omnibox_event.proto',
[email protected]2a08b1d2012-02-18 00:30:04579 'common/metrics/proto/profiler_event.proto',
[email protected]7ae45d0502012-01-31 00:29:26580 'common/metrics/proto/system_profile.proto',
581 'common/metrics/proto/user_action_event.proto',
582 ],
583 'variables': {
584 'proto_in_dir': 'common/metrics/proto',
585 'proto_out_dir': 'chrome/common/metrics/proto',
586 },
587 'includes': [ '../build/protoc.gypi' ],
588 },
[email protected]dd363682009-12-28 20:30:46589 ],
[email protected]dd363682009-12-28 20:30:46590}