blob: b24fd2a6452df6e030fc9c68701c311408db9293 [file] [log] [blame]
[email protected]098fa7a2013-03-08 22:11:171# Copyright (c) 2013 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]d92b2322014-06-16 18:07:256 'variables': {
7 'chrome_common_sources': [
8 '../apps/app_shim/app_shim_launch.h',
9 '../apps/app_shim/app_shim_messages.h',
10 'common/all_messages.h',
11 'common/attrition_experiments.h',
12 'common/auto_start_linux.cc',
13 'common/auto_start_linux.h',
[email protected]d92b2322014-06-16 18:07:2514 'common/badge_util.cc',
15 'common/badge_util.h',
16 'common/child_process_logging.h',
17 'common/child_process_logging_win.cc',
18 'common/chrome_content_client.cc',
19 'common/chrome_content_client.h',
20 'common/chrome_content_client_constants.cc',
21 'common/chrome_content_client_ios.mm',
22 'common/chrome_result_codes.h',
23 'common/chrome_utility_messages.h',
[email protected]ddc6a122014-06-27 04:52:3224 'common/chrome_utility_printing_messages.h',
[email protected]d92b2322014-06-16 18:07:2525 'common/chrome_version_info.cc',
26 'common/chrome_version_info_android.cc',
27 'common/chrome_version_info_chromeos.cc',
28 'common/chrome_version_info_posix.cc',
29 'common/chrome_version_info_mac.mm',
30 'common/chrome_version_info_win.cc',
31 'common/chrome_version_info.h',
32 'common/cloud_print/cloud_print_class_mac.h',
33 'common/cloud_print/cloud_print_class_mac.mm',
34 'common/cloud_print/cloud_print_cdd_conversion.cc',
35 'common/cloud_print/cloud_print_cdd_conversion.h',
36 'common/cloud_print/cloud_print_constants.cc',
37 'common/cloud_print/cloud_print_constants.h',
38 'common/cloud_print/cloud_print_helpers.cc',
39 'common/cloud_print/cloud_print_helpers.h',
40 'common/cloud_print/cloud_print_proxy_info.cc',
41 'common/cloud_print/cloud_print_proxy_info.h',
42 'common/common_message_generator.cc',
43 'common/common_message_generator.h',
44 'common/common_param_traits.cc',
45 'common/common_param_traits.h',
46 'common/common_param_traits_macros.h',
47 'common/content_restriction.h',
48 'common/content_settings.cc',
49 'common/content_settings.h',
50 'common/content_settings_helper.cc',
51 'common/content_settings_helper.h',
52 'common/content_settings_pattern.cc',
53 'common/content_settings_pattern.h',
54 'common/content_settings_pattern_parser.cc',
55 'common/content_settings_pattern_parser.h',
56 'common/content_settings_types.h',
57 'common/crash_keys.cc',
58 'common/crash_keys.h',
59 'common/custom_handlers/protocol_handler.cc',
60 'common/custom_handlers/protocol_handler.h',
61 'common/descriptors_android.h',
[email protected]d92b2322014-06-16 18:07:2562 'common/extensions/api/extension_action/action_info.cc',
63 'common/extensions/api/extension_action/action_info.h',
[email protected]d92b2322014-06-16 18:07:2564 'common/extensions/api/i18n/default_locale_handler.cc',
65 'common/extensions/api/i18n/default_locale_handler.h',
66 'common/extensions/api/identity/oauth2_manifest_handler.cc',
67 'common/extensions/api/identity/oauth2_manifest_handler.h',
[email protected]d92b2322014-06-16 18:07:2568 'common/extensions/api/plugins/plugins_handler.cc',
69 'common/extensions/api/plugins/plugins_handler.h',
[email protected]d92b2322014-06-16 18:07:2570 'common/extensions/api/storage/storage_schema_manifest_handler.cc',
71 'common/extensions/api/storage/storage_schema_manifest_handler.h',
[email protected]f3918a42014-06-24 15:52:0972 'common/extensions/api/supervised_user_private/supervised_user_handler.cc',
73 'common/extensions/api/supervised_user_private/supervised_user_handler.h',
[email protected]d92b2322014-06-16 18:07:2574 'common/extensions/chrome_extension_messages.h',
75 'common/extensions/chrome_extensions_client.cc',
76 'common/extensions/chrome_extensions_client.h',
77 'common/extensions/chrome_manifest_handlers.cc',
78 'common/extensions/chrome_manifest_handlers.h',
[email protected]ddc6a122014-06-27 04:52:3279 'common/extensions/chrome_utility_extensions_messages.h',
[email protected]d92b2322014-06-16 18:07:2580 'common/extensions/command.cc',
81 'common/extensions/command.h',
82 'common/extensions/extension_constants.cc',
83 'common/extensions/extension_constants.h',
84 'common/extensions/extension_file_util.cc',
85 'common/extensions/extension_file_util.h',
86 'common/extensions/extension_process_policy.cc',
87 'common/extensions/extension_process_policy.h',
88 'common/extensions/features/chrome_channel_feature_filter.cc',
89 'common/extensions/features/chrome_channel_feature_filter.h',
90 'common/extensions/features/feature_channel.cc',
91 'common/extensions/features/feature_channel.h',
[email protected]6f584582014-07-09 23:11:1492 'common/extensions/image_writer/image_writer_util_mac.cc',
93 'common/extensions/image_writer/image_writer_util_mac.h',
[email protected]d92b2322014-06-16 18:07:2594 'common/extensions/manifest_handlers/app_isolation_info.cc',
95 'common/extensions/manifest_handlers/app_isolation_info.h',
96 'common/extensions/manifest_handlers/app_launch_info.cc',
97 'common/extensions/manifest_handlers/app_launch_info.h',
98 'common/extensions/manifest_handlers/automation.h',
99 'common/extensions/manifest_handlers/automation.cc',
100 'common/extensions/manifest_handlers/content_scripts_handler.cc',
101 'common/extensions/manifest_handlers/content_scripts_handler.h',
102 'common/extensions/manifest_handlers/mime_types_handler.cc',
103 'common/extensions/manifest_handlers/mime_types_handler.h',
104 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
105 'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
[email protected]d92b2322014-06-16 18:07:25106 'common/extensions/manifest_handlers/settings_overrides_handler.cc',
107 'common/extensions/manifest_handlers/settings_overrides_handler.h',
[email protected]4ad2cf722014-07-03 17:36:53108 'common/extensions/manifest_handlers/synthesize_browser_action_handler.cc',
109 'common/extensions/manifest_handlers/synthesize_browser_action_handler.h',
[email protected]d92b2322014-06-16 18:07:25110 'common/extensions/manifest_handlers/theme_handler.cc',
111 'common/extensions/manifest_handlers/theme_handler.h',
112 'common/extensions/manifest_handlers/ui_overrides_handler.cc',
113 'common/extensions/manifest_handlers/ui_overrides_handler.h',
114 'common/extensions/manifest_url_handler.cc',
115 'common/extensions/manifest_url_handler.h',
116 'common/extensions/permissions/chrome_api_permissions.cc',
117 'common/extensions/permissions/chrome_api_permissions.h',
118 'common/extensions/permissions/chrome_permission_message_provider.cc',
119 'common/extensions/permissions/chrome_permission_message_provider.h',
120 'common/extensions/sync_helper.cc',
121 'common/extensions/sync_helper.h',
122 'common/extensions/update_manifest.cc',
123 'common/extensions/update_manifest.h',
124 'common/favicon/favicon_url_parser.cc',
125 'common/favicon/favicon_url_parser.h',
126 'common/icon_with_badge_image_source.cc',
127 'common/icon_with_badge_image_source.h',
[email protected]0eb35fc2014-07-21 22:19:59128 'common/importer/firefox_importer_utils.cc',
129 'common/importer/firefox_importer_utils.h',
130 'common/importer/firefox_importer_utils_linux.cc',
131 'common/importer/firefox_importer_utils_mac.mm',
132 'common/importer/firefox_importer_utils_win.cc',
133 'common/importer/ie_importer_test_registry_overrider_win.cc',
134 'common/importer/ie_importer_test_registry_overrider_win.h',
135 'common/importer/ie_importer_utils_win.cc',
136 'common/importer/ie_importer_utils_win.h',
137 'common/importer/imported_bookmark_entry.cc',
138 'common/importer/imported_bookmark_entry.h',
139 'common/importer/imported_favicon_usage.cc',
140 'common/importer/imported_favicon_usage.h',
141 'common/importer/importer_bridge.cc',
142 'common/importer/importer_bridge.h',
143 'common/importer/importer_data_types.cc',
144 'common/importer/importer_data_types.h',
145 'common/importer/importer_type.h',
146 'common/importer/importer_url_row.cc',
147 'common/importer/importer_url_row.h',
148 'common/importer/profile_import_process_messages.cc',
149 'common/importer/profile_import_process_messages.h',
150 'common/importer/safari_importer_utils.h',
151 'common/importer/safari_importer_utils.mm',
[email protected]d92b2322014-06-16 18:07:25152 'common/instant_restricted_id_cache.h',
153 'common/instant_types.cc',
154 'common/instant_types.h',
155 'common/localized_error.cc',
156 'common/localized_error.h',
157 'common/logging_chrome.cc',
158 'common/logging_chrome.h',
159 'common/mac/app_mode_common.h',
160 'common/mac/app_mode_common.mm',
161 'common/mac/cfbundle_blocker.h',
162 'common/mac/cfbundle_blocker.mm',
163 'common/mac/launchd.h',
164 'common/mac/launchd.mm',
165 'common/mac/objc_method_swizzle.h',
166 'common/mac/objc_method_swizzle.mm',
167 'common/mac/objc_zombie.h',
168 'common/mac/objc_zombie.mm',
169 'common/media/webrtc_logging_messages.h',
170 'common/media/webrtc_logging_message_data.cc',
171 'common/media/webrtc_logging_message_data.h',
172 'common/media_galleries/metadata_types.h',
173 'common/multi_process_lock.h',
174 'common/multi_process_lock_linux.cc',
175 'common/multi_process_lock_mac.cc',
176 'common/multi_process_lock_win.cc',
177 'common/omnibox_focus_state.h',
178 'common/partial_circular_buffer.cc',
179 'common/partial_circular_buffer.h',
180 'common/pepper_flash.cc',
181 'common/pepper_flash.h',
182 'common/pepper_permission_util.cc',
183 'common/pepper_permission_util.h',
184 'common/pref_names_util.cc',
185 'common/pref_names_util.h',
186 'common/prerender_types.h',
187 'common/print_messages.cc',
188 'common/print_messages.h',
189 'common/profiling.cc',
190 'common/profiling.h',
191 'common/ref_counted_util.h',
192 'common/render_messages.cc',
193 'common/render_messages.h',
[email protected]d92b2322014-06-16 18:07:25194 'common/safe_browsing/safebrowsing_messages.h',
[email protected]d92b2322014-06-16 18:07:25195 'common/search_provider.h',
196 'common/search_types.h',
197 'common/search_urls.cc',
198 'common/search_urls.h',
[email protected]0eb35fc2014-07-21 22:19:59199 'common/service_messages.h',
200 'common/service_process_util.cc',
201 'common/service_process_util.h',
202 'common/service_process_util_linux.cc',
203 'common/service_process_util_mac.mm',
204 'common/service_process_util_posix.cc',
205 'common/service_process_util_posix.h',
206 'common/service_process_util_win.cc',
[email protected]d92b2322014-06-16 18:07:25207 'common/spellcheck_common.cc',
208 'common/spellcheck_common.h',
209 'common/spellcheck_marker.h',
210 'common/spellcheck_messages.h',
211 'common/spellcheck_result.h',
212 'common/switch_utils.cc',
213 'common/switch_utils.h',
214 'common/tts_messages.h',
215 'common/tts_utterance_request.cc',
216 'common/tts_utterance_request.h',
217 'common/url_constants.cc',
218 'common/url_constants.h',
219 'common/variations/experiment_labels.cc',
220 'common/variations/experiment_labels.h',
221 'common/variations/uniformity_field_trials.cc',
222 'common/variations/uniformity_field_trials.h',
223 'common/variations/variations_util.cc',
224 'common/variations/variations_util.h',
225 'common/web_application_info.cc',
226 'common/web_application_info.h',
227 'common/worker_thread_ticker.cc',
228 'common/worker_thread_ticker.h',
229 ],
[email protected]7f2b78ed2014-06-20 04:26:55230 'chrome_common_extensions_sources': [
231 'common/extensions/api/bluetooth/bluetooth_manifest_data.cc',
232 'common/extensions/api/bluetooth/bluetooth_manifest_data.h',
233 'common/extensions/api/bluetooth/bluetooth_manifest_handler.cc',
234 'common/extensions/api/bluetooth/bluetooth_manifest_handler.h',
235 'common/extensions/api/bluetooth/bluetooth_manifest_permission.cc',
236 'common/extensions/api/bluetooth/bluetooth_manifest_permission.h',
237 'common/extensions/api/commands/commands_handler.cc',
238 'common/extensions/api/commands/commands_handler.h',
239 'common/extensions/api/extension_action/browser_action_handler.cc',
240 'common/extensions/api/extension_action/browser_action_handler.h',
241 'common/extensions/api/extension_action/page_action_handler.cc',
242 'common/extensions/api/extension_action/page_action_handler.h',
243 'common/extensions/api/file_browser_handlers/file_browser_handler.cc',
244 'common/extensions/api/file_browser_handlers/file_browser_handler.h',
245 'common/extensions/api/input_ime/input_components_handler.cc',
246 'common/extensions/api/input_ime/input_components_handler.h',
247 'common/extensions/api/notifications/notification_style.cc',
248 'common/extensions/api/notifications/notification_style.h',
249 'common/extensions/api/omnibox/omnibox_handler.cc',
250 'common/extensions/api/omnibox/omnibox_handler.h',
251 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
252 'common/extensions/api/speech/tts_engine_manifest_handler.h',
253 'common/extensions/api/spellcheck/spellcheck_handler.cc',
254 'common/extensions/api/spellcheck/spellcheck_handler.h',
255 'common/extensions/api/system_indicator/system_indicator_handler.cc',
256 'common/extensions/api/system_indicator/system_indicator_handler.h',
257 'common/extensions/api/url_handlers/url_handlers_parser.cc',
258 'common/extensions/api/url_handlers/url_handlers_parser.h',
259 'common/extensions/api/webstore/webstore_api_constants.cc',
260 'common/extensions/api/webstore/webstore_api_constants.h',
261 ],
[email protected]1e8205e82014-07-08 10:54:24262 'chrome_common_full_safe_browsing_sources': [
263 'common/safe_browsing/download_protection_util.cc',
264 'common/safe_browsing/download_protection_util.h',
265 'common/safe_browsing/zip_analyzer.cc',
266 'common/safe_browsing/zip_analyzer.h',
267 ],
[email protected]d92b2322014-06-16 18:07:25268 },
[email protected]dd363682009-12-28 20:30:46269 'targets': [
270 {
271 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:53272 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:46273 'variables': {
274 'chrome_common_target': 1,
[email protected]4f68ed72012-10-30 05:24:07275 'enable_wexit_time_destructors': 1,
[email protected]dd363682009-12-28 20:30:46276 },
[email protected]93156cec2011-09-12 21:14:44277 'include_dirs': [
278 '..',
[email protected]b50368b2012-02-18 00:02:13279 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
[email protected]93156cec2011-09-12 21:14:44280 ],
[email protected]dd363682009-12-28 20:30:46281 'direct_dependent_settings': {
282 'include_dirs': [
283 '..',
284 ],
285 },
286 'dependencies': [
287 # TODO(gregoryd): chrome_resources and chrome_strings could be
288 # shared with the 64-bit target, but it does not work due to a gyp
289 # issue.
[email protected]3c3065d2010-05-06 21:59:55290 'common_net',
[email protected]b9bbf5532011-11-03 07:35:22291 'common_version',
[email protected]52927222013-03-19 22:38:12292 'installer_util',
[email protected]12d9f6e2014-07-02 20:45:02293 'safe_browsing_proto',
[email protected]37794d02011-11-30 18:24:29294 '<(DEPTH)/base/base.gyp:base',
295 '<(DEPTH)/base/base.gyp:base_i18n',
[email protected]f59f33e2012-11-01 12:05:27296 '<(DEPTH)/base/base.gyp:base_prefs',
[email protected]37794d02011-11-30 18:24:29297 '<(DEPTH)/base/base.gyp:base_static',
[email protected]37794d02011-11-30 18:24:29298 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
299 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
300 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
[email protected]99245a02012-10-09 20:57:49301 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
[email protected]5b38caf2014-04-18 05:32:06302 '<(DEPTH)/components/components.gyp:cloud_devices_common',
[email protected]6c0c9736d2014-07-08 14:17:00303 '<(DEPTH)/components/components.gyp:component_updater',
[email protected]fb1397ce2013-08-13 22:55:07304 '<(DEPTH)/components/components.gyp:json_schema',
[email protected]2a172e42014-02-21 04:06:10305 '<(DEPTH)/components/components.gyp:metrics',
[email protected]f522afa2014-01-08 15:36:36306 '<(DEPTH)/components/components.gyp:policy_component_common',
[email protected]eba93c92014-01-07 17:34:17307 '<(DEPTH)/components/components.gyp:translate_core_common',
[email protected]50ae9f12013-08-29 18:03:22308 '<(DEPTH)/components/components.gyp:variations',
[email protected]37794d02011-11-30 18:24:29309 '<(DEPTH)/content/content.gyp:content_common',
[email protected]00c82c92014-03-14 21:32:07310 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]dcedc592014-04-28 19:49:29311 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57312 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
[email protected]734732e2014-07-15 01:04:25313 '<(DEPTH)/media/cast/cast.gyp:cast_net',
[email protected]37794d02011-11-30 18:24:29314 '<(DEPTH)/net/net.gyp:net',
[email protected]37794d02011-11-30 18:24:29315 '<(DEPTH)/skia/skia.gyp:skia',
[email protected]37794d02011-11-30 18:24:29316 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
317 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
318 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
319 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
[email protected]720ceda2013-08-22 19:14:37320 '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
[email protected]ffff5b32014-06-25 21:31:08321 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]1c0c3f42013-11-20 02:03:28322 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]002cc08f2013-06-03 05:40:29323 '<(DEPTH)/url/url.gyp:url_lib',
[email protected]dd363682009-12-28 20:30:46324 ],
325 'sources': [
[email protected]d92b2322014-06-16 18:07:25326 '<@(chrome_common_sources)'
[email protected]dd363682009-12-28 20:30:46327 ],
328 'conditions': [
[email protected]989ae862013-03-13 04:22:58329 ['enable_extensions==1', {
[email protected]0eb35fc2014-07-21 22:19:59330 'sources': [
331 '<@(chrome_common_extensions_sources)',
332 ],
[email protected]989ae862013-03-13 04:22:58333 'dependencies': [
[email protected]1ff64292013-07-18 20:37:15334 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]e3a9ccfc2013-06-03 00:22:30335 '../device/usb/usb.gyp:device_usb',
[email protected]989ae862013-03-13 04:22:58336 ],
[email protected]989ae862013-03-13 04:22:58337 }],
[email protected]c51694f2013-06-25 02:50:24338 ['OS=="win" or OS=="mac"', {
[email protected]0eb35fc2014-07-21 22:19:59339 'sources': [
340 'common/extensions/api/networking_private/networking_private_crypto_nss.cc',
341 'common/extensions/api/networking_private/networking_private_crypto_openssl.cc',
342 'common/extensions/api/networking_private/networking_private_crypto.h',
343 'common/media_galleries/itunes_library.cc',
344 'common/media_galleries/itunes_library.h',
345 'common/media_galleries/picasa_types.cc',
346 'common/media_galleries/picasa_types.h',
347 'common/media_galleries/pmp_constants.h',
348 ],
[email protected]c51694f2013-06-25 02:50:24349 }],
[email protected]19fa62bf2013-10-17 17:55:41350 ['OS=="mac"', {
[email protected]0eb35fc2014-07-21 22:19:59351 'sources': [
352 'common/media_galleries/iphoto_library.cc',
353 'common/media_galleries/iphoto_library.h',
354 ],
[email protected]19fa62bf2013-10-17 17:55:41355 }],
[email protected]fdaed545c2012-10-20 19:13:04356 ['OS != "ios"', {
357 'dependencies': [
[email protected]68cb5652014-03-12 06:41:29358 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
[email protected]d04f81912013-06-18 14:52:13359 '<(DEPTH)/components/components.gyp:autofill_core_common',
[email protected]45b53fb2013-12-12 19:28:06360 '<(DEPTH)/components/components.gyp:autofill_content_common',
[email protected]faaa917f2014-02-05 10:43:28361 '<(DEPTH)/components/components.gyp:password_manager_core_common',
[email protected]63c7f0c2014-03-25 21:12:59362 '<(DEPTH)/components/components.gyp:signin_core_common',
[email protected]381500972014-04-04 05:07:49363 '<(DEPTH)/components/components.gyp:translate_content_common',
[email protected]54ac11b2013-12-04 19:50:37364 '<(DEPTH)/components/components.gyp:visitedlink_common',
[email protected]5eda6dc2014-03-28 16:12:56365 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
[email protected]558878cc82013-11-09 01:25:51366 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
[email protected]fdaed545c2012-10-20 19:13:04367 '<(DEPTH)/ipc/ipc.gyp:ipc',
[email protected]fdaed545c2012-10-20 19:13:04368 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
[email protected]e3a8ebb92014-03-31 01:54:38369 '<(DEPTH)/third_party/re2/re2.gyp:re2',
[email protected]fdaed545c2012-10-20 19:13:04370 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
[email protected]fdaed545c2012-10-20 19:13:04371 ],
[email protected]5eda6dc2014-03-28 16:12:56372 'export_dependent_settings': [
373 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
374 ],
[email protected]fdaed545c2012-10-20 19:13:04375 }, { # OS == ios
376 'sources/': [
[email protected]fdaed545c2012-10-20 19:13:04377 ['exclude', '^common/child_process_'],
378 ['exclude', '^common/chrome_content_client\\.cc$'],
379 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
380 ['exclude', '^common/common_message_generator\\.cc$'],
381 ['exclude', '^common/common_param_traits'],
382 ['exclude', '^common/custom_handlers/'],
383 ['exclude', '^common/extensions/'],
[email protected]fdaed545c2012-10-20 19:13:04384 ['exclude', '^common/logging_chrome\\.'],
[email protected]c5e85fc2014-05-13 22:38:42385 ['exclude', '^common/media_galleries/'],
[email protected]fdaed545c2012-10-20 19:13:04386 ['exclude', '^common/multi_process_'],
[email protected]fdaed545c2012-10-20 19:13:04387 ['exclude', '^common/pepper_flash\\.'],
388 ['exclude', '^common/profiling\\.'],
[email protected]fdaed545c2012-10-20 19:13:04389 ['exclude', '^common/spellcheck_'],
[email protected]1352ca92013-04-30 02:30:27390 ['exclude', '^common/validation_message_'],
[email protected]fdaed545c2012-10-20 19:13:04391 ['exclude', '^common/web_apps\\.'],
392 # TODO(ios): Include files here as they are made to work; once
393 # everything is online, remove everything below here and just
394 # use the exclusions above.
[email protected]b7d1efa62012-11-16 11:22:02395 ['exclude', '\\.(cc|mm)$'],
396 ['include', '_ios\\.(cc|mm)$'],
397 ['include', '(^|/)ios/'],
398 ['include', '^common/chrome_version_info\\.cc$'],
[email protected]d7575c22013-07-11 13:54:22399 ['include', '^common/translate'],
[email protected]b7d1efa62012-11-16 11:22:02400 ['include', '^common/zip'],
[email protected]fdaed545c2012-10-20 19:13:04401 ],
[email protected]271e88fc2013-05-06 07:48:05402 'include_dirs': [
403 '<(DEPTH)/breakpad/src',
404 ],
[email protected]fdaed545c2012-10-20 19:13:04405 }],
[email protected]a56f8322014-07-16 21:13:55406 ['disable_nacl==0', {
407 'dependencies': [
408 '<(DEPTH)/components/nacl.gyp:nacl_common',
409 ],
410 'sources': [
411 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
412 'common/extensions/manifest_handlers/nacl_modules_handler.h',
413 ],
414 }],
[email protected]65f81ec2014-06-07 08:55:07415 ['enable_printing==0', {
416 'sources!': [
417 'common/print_messages.cc',
418 'common/print_messages.h',
419 ]
420 }, {
[email protected]f757c1a2013-11-07 09:02:36421 'dependencies': [
422 '<(DEPTH)/printing/printing.gyp:printing',
423 ],
424 }],
[email protected]0eb35fc2014-07-21 22:19:59425 ['enable_printing!=1', {
426 'sources!' : [
427 'common/service_messages.h',
428 ],
429 'sources/': [
430 ['exclude', '^common/service_process_util_'],
431 ],
[email protected]65f81ec2014-06-07 08:55:07432 }],
[email protected]8d1486c62014-04-28 14:18:33433 ['enable_service_discovery==1', {
434 'sources' : [
435 'common/local_discovery/service_discovery_client.cc',
436 'common/local_discovery/service_discovery_client.h',
437 ]
438 }],
439 ['enable_mdns==1', {
440 'sources' : [
441 'common/local_discovery/service_discovery_client_impl.cc',
442 'common/local_discovery/service_discovery_client_impl.h',
443 ]
444 }],
[email protected]9f6167c2012-03-16 02:28:17445 ['OS=="android"', {
[email protected]0eb35fc2014-07-21 22:19:59446 'sources/': [
447 ['exclude', '^common/importer/'],
448 ['exclude', '^common/media_galleries/'],
449 ['exclude', '^common/service_'],
450 ],
[email protected]81bdab22013-09-02 21:12:52451 'sources!': [
452 'common/badge_util.cc',
[email protected]a56f8322014-07-16 21:13:55453 'common/chrome_version_info_posix.cc',
[email protected]81bdab22013-09-02 21:12:52454 'common/extensions/api/extension_action/browser_action_handler.cc',
455 'common/extensions/api/extension_action/page_action_handler.cc',
456 'common/extensions/api/spellcheck/spellcheck_handler.cc',
457 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
[email protected]81bdab22013-09-02 21:12:52458 'common/icon_with_badge_image_source.cc',
[email protected]81bdab22013-09-02 21:12:52459 'common/net/url_util.cc',
[email protected]81bdab22013-09-02 21:12:52460 'common/spellcheck_common.cc',
461 ],
[email protected]9f6167c2012-03-16 02:28:17462 }],
[email protected]93156cec2011-09-12 21:14:44463 ['OS=="win"', {
464 'include_dirs': [
[email protected]27b38d62013-08-14 18:12:11465 '<(DEPTH)/breakpad/src',
[email protected]93156cec2011-09-12 21:14:44466 '<(DEPTH)/third_party/wtl/include',
[email protected]f65fdfc2013-03-05 21:56:04467 ],
[email protected]ef777a42011-11-25 13:15:43468 }],
[email protected]c1cc0e02013-07-04 12:46:35469 ['enable_mdns == 1', {
470 'sources': [
[email protected]686e985e2013-07-18 22:04:56471 'common/local_discovery/local_discovery_messages.h',
[email protected]c1cc0e02013-07-04 12:46:35472 ]
473 }],
[email protected]89886fa32012-10-08 23:46:33474 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25475 'sources!': [
476 'common/chrome_version_info_linux.cc',
477 ],
478 }],
[email protected]b9bbf5532011-11-03 07:35:22479 ['OS=="mac"', {
480 'dependencies': [
[email protected]a023dca2013-12-18 03:58:36481 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
[email protected]b9bbf5532011-11-03 07:35:22482 '../third_party/mach_override/mach_override.gyp:mach_override',
483 ],
484 'include_dirs': [
[email protected]271e88fc2013-05-06 07:48:05485 '<(DEPTH)/breakpad/src',
[email protected]b9bbf5532011-11-03 07:35:22486 ],
[email protected]1f26b9a2012-02-28 00:29:38487 'sources!': [
488 'common/child_process_logging_posix.cc',
489 'common/chrome_version_info_posix.cc',
490 ],
[email protected]b9bbf5532011-11-03 07:35:22491 }],
492 ['remoting==1', {
493 'dependencies': [
494 '../remoting/remoting.gyp:remoting_client_plugin',
495 ],
496 }],
[email protected]e3d193772013-09-11 15:18:26497 ['enable_plugins==0', {
[email protected]0eb35fc2014-07-21 22:19:59498 'source!' : [
[email protected]e3d193772013-09-11 15:18:26499 'common/pepper_permission_util.cc',
500 ],
501 }],
[email protected]6ef98b5a2013-05-31 23:58:31502 ['enable_webrtc==0', {
503 'sources!': [
504 'common/media/webrtc_logging_messages.h',
505 ]
506 }],
[email protected]991573e2013-12-16 13:49:20507 ['configuration_policy==1', {
508 'dependencies': [
509 '<(DEPTH)/components/components.gyp:policy',
510 ],
511 }],
[email protected]1e8205e82014-07-08 10:54:24512 ['safe_browsing==1', {
513 'defines': [ 'FULL_SAFE_BROWSING' ],
514 'sources': [ '<@(chrome_common_full_safe_browsing_sources)', ],
515 }],
516 ['safe_browsing==2', {
517 'defines': [ 'MOBILE_SAFE_BROWSING' ],
518 }],
[email protected]df5a2512014-07-11 03:21:17519 ['use_openssl==1', {
520 'sources!': [
521 'common/extensions/api/networking_private/networking_private_crypto_nss.cc',
522 ],
523 },
524 { # else !use_openssl
525 'sources!': [
526 'common/extensions/api/networking_private/networking_private_crypto_openssl.cc',
527 ],
528 },
529 ],
[email protected]b9bbf5532011-11-03 07:35:22530 ],
[email protected]fdaed545c2012-10-20 19:13:04531 'target_conditions': [
532 ['OS == "ios"', {
533 'sources/': [
534 # Pull in specific Mac files for iOS (which have been filtered out
535 # by file name rules).
536 ['include', '^common/chrome_version_info_mac\\.mm$'],
537 ],
538 }],
539 ],
[email protected]b9bbf5532011-11-03 07:35:22540 'export_dependent_settings': [
541 '../base/base.gyp:base',
542 ],
543 },
544 {
545 'target_name': 'common_version',
546 'type': 'none',
547 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04548 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22549 'direct_dependent_settings': {
550 'include_dirs': [
551 '<(SHARED_INTERMEDIATE_DIR)',
552 ],
553 },
[email protected]79440c52010-08-27 22:53:02554 # Because posix_version generates a header, we must set the
555 # hard_dependency flag.
556 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13557 'actions': [
558 {
559 'action_name': 'posix_version',
560 'variables': {
[email protected]bcd84532014-02-21 03:14:02561 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
562 'version_py_path': '<(DEPTH)/build/util/version.py',
[email protected]4641d3c2010-08-26 21:44:13563 'version_path': 'VERSION',
564 'template_input_path': 'common/chrome_version_info_posix.h.version',
565 },
566 'conditions': [
567 [ 'branding == "Chrome"', {
568 'variables': {
569 'branding_path':
570 'app/theme/google_chrome/BRANDING',
571 },
572 }, { # else branding!="Chrome"
573 'variables': {
574 'branding_path':
575 'app/theme/chromium/BRANDING',
576 },
577 }],
578 ],
579 'inputs': [
580 '<(template_input_path)',
581 '<(version_path)',
582 '<(branding_path)',
583 '<(lastchange_path)',
584 ],
585 'outputs': [
586 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
587 ],
588 'action': [
589 'python',
590 '<(version_py_path)',
591 '-f', '<(version_path)',
592 '-f', '<(branding_path)',
593 '-f', '<(lastchange_path)',
594 '<(template_input_path)',
595 '<@(_outputs)',
596 ],
597 'message': 'Generating version information',
598 },
599 ],
600 }],
[email protected]dd363682009-12-28 20:30:46601 ],
602 },
[email protected]3c3065d2010-05-06 21:59:55603 {
[email protected]0eb35fc2014-07-21 22:19:59604 # GN version: //chrome/common/net:net
[email protected]3c3065d2010-05-06 21:59:55605 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53606 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55607 'sources': [
[email protected]2ea1efe2013-07-17 05:23:13608 'common/net/net_error_info.cc',
609 'common/net/net_error_info.h',
[email protected]06305962012-05-09 22:34:36610 'common/net/net_resource_provider.cc',
611 'common/net/net_resource_provider.h',
612 'common/net/predictor_common.h',
613 'common/net/url_util.cc',
614 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40615 'common/net/x509_certificate_model.cc',
616 'common/net/x509_certificate_model_nss.cc',
617 'common/net/x509_certificate_model_openssl.cc',
618 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55619 ],
620 'dependencies': [
[email protected]37794d02011-11-30 18:24:29621 '<(DEPTH)/base/base.gyp:base',
622 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
623 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
624 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29625 '<(DEPTH)/net/net.gyp:net_resources',
626 '<(DEPTH)/net/net.gyp:net',
627 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
628 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55629 ],
[email protected]b1c2a5542010-10-08 12:44:40630 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04631 ['OS != "ios"', {
632 'dependencies': [
633 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
634 ],
635 }, { # OS == ios
636 'sources!': [
637 'common/net/net_resource_provider.cc',
638 'common/net/x509_certificate_model.cc',
639 ],
640 }],
641 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30642 'dependencies': [
643 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40644 ],
645 },
[email protected]af221ff2012-04-03 05:22:39646 ],
[email protected]fdaed545c2012-10-20 19:13:04647 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40648 'sources!': [
649 'common/net/x509_certificate_model_nss.cc',
650 'common/net/x509_certificate_model_openssl.cc',
651 ],
652 },
653 ],
[email protected]af221ff2012-04-03 05:22:39654 ['OS == "android"', {
655 'dependencies': [
[email protected]edfd0f42014-07-22 18:20:37656 '../third_party/boringssl/boringssl.gyp:boringssl',
[email protected]af221ff2012-04-03 05:22:39657 ],
[email protected]df2e196e2014-02-05 19:56:25658 'sources!': [
659 'common/net/x509_certificate_model.cc',
[email protected]b455eefa2014-05-26 04:02:31660 'common/net/x509_certificate_model_openssl.cc',
[email protected]df2e196e2014-02-05 19:56:25661 ],
662 }],
[email protected]b1c2a5542010-10-08 12:44:40663 ['use_openssl==1', {
664 'sources!': [
665 'common/net/x509_certificate_model_nss.cc',
666 ],
667 },
668 { # else !use_openssl: remove the unneeded files
669 'sources!': [
670 'common/net/x509_certificate_model_openssl.cc',
671 ],
672 },
673 ],
[email protected]b1d2c742013-01-21 18:04:52674 ['OS=="win"', {
675 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
676 'msvs_disabled_warnings': [4267, ],
677 },
678 ],
[email protected]129d11452012-03-01 01:56:56679 ],
[email protected]3c3065d2010-05-06 21:59:55680 },
[email protected]133139772011-04-14 22:14:13681 {
[email protected]1c20dd62011-08-19 21:54:33682 # Protobuf compiler / generator for the safebrowsing client
683 # model proto and the client-side detection (csd) request
684 # protocol buffer.
[email protected]77ce8022014-06-16 19:29:56685
686 # GN version: //chrome/common/safe_browsing:proto
[email protected]cae64fe2011-06-17 17:54:50687 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33688 'type': 'static_library',
689 'sources': [
690 'common/safe_browsing/client_model.proto',
[email protected]8e289f0b2013-12-17 17:49:07691 'common/safe_browsing/crx_info.proto',
[email protected]1c20dd62011-08-19 21:54:33692 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50693 ],
[email protected]1c20dd62011-08-19 21:54:33694 'variables': {
695 'proto_in_dir': 'common/safe_browsing',
696 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50697 },
[email protected]1c20dd62011-08-19 21:54:33698 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13699 },
[email protected]dd363682009-12-28 20:30:46700 ],
[email protected]dd363682009-12-28 20:30:46701}