blob: aab8a0ad12b91739a3cb6e150f1c5d242eeec9b4 [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',
14 'common/autocomplete_match_type.cc',
15 'common/autocomplete_match_type.h',
16 'common/badge_util.cc',
17 'common/badge_util.h',
18 'common/child_process_logging.h',
19 'common/child_process_logging_win.cc',
20 'common/chrome_content_client.cc',
21 'common/chrome_content_client.h',
22 'common/chrome_content_client_constants.cc',
23 'common/chrome_content_client_ios.mm',
24 'common/chrome_result_codes.h',
25 'common/chrome_utility_messages.h',
26 'common/chrome_version_info.cc',
27 'common/chrome_version_info_android.cc',
28 'common/chrome_version_info_chromeos.cc',
29 'common/chrome_version_info_posix.cc',
30 'common/chrome_version_info_mac.mm',
31 'common/chrome_version_info_win.cc',
32 'common/chrome_version_info.h',
33 'common/cloud_print/cloud_print_class_mac.h',
34 'common/cloud_print/cloud_print_class_mac.mm',
35 'common/cloud_print/cloud_print_cdd_conversion.cc',
36 'common/cloud_print/cloud_print_cdd_conversion.h',
37 'common/cloud_print/cloud_print_constants.cc',
38 'common/cloud_print/cloud_print_constants.h',
39 'common/cloud_print/cloud_print_helpers.cc',
40 'common/cloud_print/cloud_print_helpers.h',
41 'common/cloud_print/cloud_print_proxy_info.cc',
42 'common/cloud_print/cloud_print_proxy_info.h',
43 'common/common_message_generator.cc',
44 'common/common_message_generator.h',
45 'common/common_param_traits.cc',
46 'common/common_param_traits.h',
47 'common/common_param_traits_macros.h',
48 'common/content_restriction.h',
49 'common/content_settings.cc',
50 'common/content_settings.h',
51 'common/content_settings_helper.cc',
52 'common/content_settings_helper.h',
53 'common/content_settings_pattern.cc',
54 'common/content_settings_pattern.h',
55 'common/content_settings_pattern_parser.cc',
56 'common/content_settings_pattern_parser.h',
57 'common/content_settings_types.h',
58 'common/crash_keys.cc',
59 'common/crash_keys.h',
60 'common/custom_handlers/protocol_handler.cc',
61 'common/custom_handlers/protocol_handler.h',
62 'common/descriptors_android.h',
[email protected]d92b2322014-06-16 18:07:2563 'common/extensions/api/extension_action/action_info.cc',
64 'common/extensions/api/extension_action/action_info.h',
[email protected]d92b2322014-06-16 18:07:2565 'common/extensions/api/i18n/default_locale_handler.cc',
66 'common/extensions/api/i18n/default_locale_handler.h',
67 'common/extensions/api/identity/oauth2_manifest_handler.cc',
68 'common/extensions/api/identity/oauth2_manifest_handler.h',
[email protected]d92b2322014-06-16 18:07:2569 'common/extensions/api/plugins/plugins_handler.cc',
70 'common/extensions/api/plugins/plugins_handler.h',
[email protected]d92b2322014-06-16 18:07:2571 'common/extensions/api/storage/storage_schema_manifest_handler.cc',
72 'common/extensions/api/storage/storage_schema_manifest_handler.h',
[email protected]f3918a42014-06-24 15:52:0973 'common/extensions/api/supervised_user_private/supervised_user_handler.cc',
74 'common/extensions/api/supervised_user_private/supervised_user_handler.h',
[email protected]d92b2322014-06-16 18:07:2575 'common/extensions/chrome_extension_messages.h',
76 'common/extensions/chrome_extensions_client.cc',
77 'common/extensions/chrome_extensions_client.h',
78 'common/extensions/chrome_manifest_handlers.cc',
79 'common/extensions/chrome_manifest_handlers.h',
80 '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',
92 'common/extensions/manifest_handlers/app_isolation_info.cc',
93 'common/extensions/manifest_handlers/app_isolation_info.h',
94 'common/extensions/manifest_handlers/app_launch_info.cc',
95 'common/extensions/manifest_handlers/app_launch_info.h',
96 'common/extensions/manifest_handlers/automation.h',
97 'common/extensions/manifest_handlers/automation.cc',
98 'common/extensions/manifest_handlers/content_scripts_handler.cc',
99 'common/extensions/manifest_handlers/content_scripts_handler.h',
100 'common/extensions/manifest_handlers/mime_types_handler.cc',
101 'common/extensions/manifest_handlers/mime_types_handler.h',
102 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
103 'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
104 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
105 'common/extensions/manifest_handlers/nacl_modules_handler.h',
106 'common/extensions/manifest_handlers/settings_overrides_handler.cc',
107 'common/extensions/manifest_handlers/settings_overrides_handler.h',
108 'common/extensions/manifest_handlers/theme_handler.cc',
109 'common/extensions/manifest_handlers/theme_handler.h',
110 'common/extensions/manifest_handlers/ui_overrides_handler.cc',
111 'common/extensions/manifest_handlers/ui_overrides_handler.h',
112 'common/extensions/manifest_url_handler.cc',
113 'common/extensions/manifest_url_handler.h',
114 'common/extensions/permissions/chrome_api_permissions.cc',
115 'common/extensions/permissions/chrome_api_permissions.h',
116 'common/extensions/permissions/chrome_permission_message_provider.cc',
117 'common/extensions/permissions/chrome_permission_message_provider.h',
118 'common/extensions/sync_helper.cc',
119 'common/extensions/sync_helper.h',
120 'common/extensions/update_manifest.cc',
121 'common/extensions/update_manifest.h',
122 'common/favicon/favicon_url_parser.cc',
123 'common/favicon/favicon_url_parser.h',
124 'common/icon_with_badge_image_source.cc',
125 'common/icon_with_badge_image_source.h',
126 'common/importer/firefox_importer_utils.cc',
127 'common/importer/firefox_importer_utils.h',
128 'common/importer/firefox_importer_utils_linux.cc',
129 'common/importer/firefox_importer_utils_mac.mm',
130 'common/importer/firefox_importer_utils_win.cc',
131 'common/importer/ie_importer_test_registry_overrider_win.cc',
132 'common/importer/ie_importer_test_registry_overrider_win.h',
133 'common/importer/ie_importer_utils_win.cc',
134 'common/importer/ie_importer_utils_win.h',
135 'common/importer/imported_bookmark_entry.cc',
136 'common/importer/imported_bookmark_entry.h',
137 'common/importer/imported_favicon_usage.cc',
138 'common/importer/imported_favicon_usage.h',
139 'common/importer/importer_bridge.cc',
140 'common/importer/importer_bridge.h',
141 'common/importer/importer_data_types.cc',
142 'common/importer/importer_data_types.h',
143 'common/importer/importer_type.h',
144 'common/importer/importer_url_row.cc',
145 'common/importer/importer_url_row.h',
146 'common/importer/profile_import_process_messages.cc',
147 'common/importer/profile_import_process_messages.h',
148 'common/importer/safari_importer_utils.h',
149 'common/importer/safari_importer_utils.mm',
150 'common/instant_restricted_id_cache.h',
151 'common/instant_types.cc',
152 'common/instant_types.h',
153 'common/localized_error.cc',
154 'common/localized_error.h',
155 'common/logging_chrome.cc',
156 'common/logging_chrome.h',
157 'common/mac/app_mode_common.h',
158 'common/mac/app_mode_common.mm',
159 'common/mac/cfbundle_blocker.h',
160 'common/mac/cfbundle_blocker.mm',
161 'common/mac/launchd.h',
162 'common/mac/launchd.mm',
163 'common/mac/objc_method_swizzle.h',
164 'common/mac/objc_method_swizzle.mm',
165 'common/mac/objc_zombie.h',
166 'common/mac/objc_zombie.mm',
167 'common/media/webrtc_logging_messages.h',
168 'common/media/webrtc_logging_message_data.cc',
169 'common/media/webrtc_logging_message_data.h',
170 'common/media_galleries/metadata_types.h',
171 'common/multi_process_lock.h',
172 'common/multi_process_lock_linux.cc',
173 'common/multi_process_lock_mac.cc',
174 'common/multi_process_lock_win.cc',
175 'common/omnibox_focus_state.h',
176 'common/partial_circular_buffer.cc',
177 'common/partial_circular_buffer.h',
178 'common/pepper_flash.cc',
179 'common/pepper_flash.h',
180 'common/pepper_permission_util.cc',
181 'common/pepper_permission_util.h',
182 'common/pref_names_util.cc',
183 'common/pref_names_util.h',
184 'common/prerender_types.h',
185 'common/print_messages.cc',
186 'common/print_messages.h',
187 'common/profiling.cc',
188 'common/profiling.h',
189 'common/ref_counted_util.h',
190 'common/render_messages.cc',
191 'common/render_messages.h',
192 'common/safe_browsing/download_protection_util.cc',
193 'common/safe_browsing/download_protection_util.h',
194 'common/safe_browsing/safebrowsing_messages.h',
195 'common/safe_browsing/zip_analyzer.cc',
196 'common/safe_browsing/zip_analyzer.h',
197 'common/search_provider.h',
198 'common/search_types.h',
199 'common/search_urls.cc',
200 'common/search_urls.h',
201 'common/service_messages.h',
202 'common/service_process_util.cc',
203 'common/service_process_util.h',
204 'common/service_process_util_linux.cc',
205 'common/service_process_util_mac.mm',
206 'common/service_process_util_posix.cc',
207 'common/service_process_util_posix.h',
208 'common/service_process_util_win.cc',
209 'common/spellcheck_common.cc',
210 'common/spellcheck_common.h',
211 'common/spellcheck_marker.h',
212 'common/spellcheck_messages.h',
213 'common/spellcheck_result.h',
214 'common/switch_utils.cc',
215 'common/switch_utils.h',
216 'common/tts_messages.h',
217 'common/tts_utterance_request.cc',
218 'common/tts_utterance_request.h',
219 'common/url_constants.cc',
220 'common/url_constants.h',
221 'common/variations/experiment_labels.cc',
222 'common/variations/experiment_labels.h',
223 'common/variations/uniformity_field_trials.cc',
224 'common/variations/uniformity_field_trials.h',
225 'common/variations/variations_util.cc',
226 'common/variations/variations_util.h',
227 'common/web_application_info.cc',
228 'common/web_application_info.h',
229 'common/worker_thread_ticker.cc',
230 'common/worker_thread_ticker.h',
231 ],
[email protected]7f2b78ed2014-06-20 04:26:55232 'chrome_common_extensions_sources': [
233 'common/extensions/api/bluetooth/bluetooth_manifest_data.cc',
234 'common/extensions/api/bluetooth/bluetooth_manifest_data.h',
235 'common/extensions/api/bluetooth/bluetooth_manifest_handler.cc',
236 'common/extensions/api/bluetooth/bluetooth_manifest_handler.h',
237 'common/extensions/api/bluetooth/bluetooth_manifest_permission.cc',
238 'common/extensions/api/bluetooth/bluetooth_manifest_permission.h',
239 'common/extensions/api/commands/commands_handler.cc',
240 'common/extensions/api/commands/commands_handler.h',
241 'common/extensions/api/extension_action/browser_action_handler.cc',
242 'common/extensions/api/extension_action/browser_action_handler.h',
243 'common/extensions/api/extension_action/page_action_handler.cc',
244 'common/extensions/api/extension_action/page_action_handler.h',
245 'common/extensions/api/file_browser_handlers/file_browser_handler.cc',
246 'common/extensions/api/file_browser_handlers/file_browser_handler.h',
247 'common/extensions/api/input_ime/input_components_handler.cc',
248 'common/extensions/api/input_ime/input_components_handler.h',
249 'common/extensions/api/notifications/notification_style.cc',
250 'common/extensions/api/notifications/notification_style.h',
251 'common/extensions/api/omnibox/omnibox_handler.cc',
252 'common/extensions/api/omnibox/omnibox_handler.h',
253 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
254 'common/extensions/api/speech/tts_engine_manifest_handler.h',
255 'common/extensions/api/spellcheck/spellcheck_handler.cc',
256 'common/extensions/api/spellcheck/spellcheck_handler.h',
257 'common/extensions/api/system_indicator/system_indicator_handler.cc',
258 'common/extensions/api/system_indicator/system_indicator_handler.h',
259 'common/extensions/api/url_handlers/url_handlers_parser.cc',
260 'common/extensions/api/url_handlers/url_handlers_parser.h',
261 'common/extensions/api/webstore/webstore_api_constants.cc',
262 'common/extensions/api/webstore/webstore_api_constants.h',
263 ],
[email protected]d92b2322014-06-16 18:07:25264 },
[email protected]dd363682009-12-28 20:30:46265 'targets': [
266 {
267 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:53268 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:46269 'variables': {
270 'chrome_common_target': 1,
[email protected]4f68ed72012-10-30 05:24:07271 'enable_wexit_time_destructors': 1,
[email protected]dd363682009-12-28 20:30:46272 },
[email protected]93156cec2011-09-12 21:14:44273 'include_dirs': [
274 '..',
[email protected]b50368b2012-02-18 00:02:13275 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
[email protected]93156cec2011-09-12 21:14:44276 ],
[email protected]dd363682009-12-28 20:30:46277 'direct_dependent_settings': {
278 'include_dirs': [
279 '..',
280 ],
281 },
282 'dependencies': [
283 # TODO(gregoryd): chrome_resources and chrome_strings could be
284 # shared with the 64-bit target, but it does not work due to a gyp
285 # issue.
[email protected]3c3065d2010-05-06 21:59:55286 'common_net',
[email protected]b9bbf5532011-11-03 07:35:22287 'common_version',
[email protected]52927222013-03-19 22:38:12288 'installer_util',
[email protected]7ae45d0502012-01-31 00:29:26289 'metrics_proto',
[email protected]37794d02011-11-30 18:24:29290 '<(DEPTH)/base/base.gyp:base',
291 '<(DEPTH)/base/base.gyp:base_i18n',
[email protected]f59f33e2012-11-01 12:05:27292 '<(DEPTH)/base/base.gyp:base_prefs',
[email protected]37794d02011-11-30 18:24:29293 '<(DEPTH)/base/base.gyp:base_static',
[email protected]37794d02011-11-30 18:24:29294 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
295 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
296 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
[email protected]99245a02012-10-09 20:57:49297 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
[email protected]5b38caf2014-04-18 05:32:06298 '<(DEPTH)/components/components.gyp:cloud_devices_common',
[email protected]fb1397ce2013-08-13 22:55:07299 '<(DEPTH)/components/components.gyp:json_schema',
[email protected]2a172e42014-02-21 04:06:10300 '<(DEPTH)/components/components.gyp:metrics',
[email protected]f522afa2014-01-08 15:36:36301 '<(DEPTH)/components/components.gyp:policy_component_common',
[email protected]eba93c92014-01-07 17:34:17302 '<(DEPTH)/components/components.gyp:translate_core_common',
[email protected]50ae9f12013-08-29 18:03:22303 '<(DEPTH)/components/components.gyp:variations',
[email protected]37794d02011-11-30 18:24:29304 '<(DEPTH)/content/content.gyp:content_common',
[email protected]00c82c92014-03-14 21:32:07305 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]dcedc592014-04-28 19:49:29306 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57307 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
[email protected]84b92fa82014-04-23 18:30:29308 '<(DEPTH)/media/cast/cast.gyp:cast_transport',
[email protected]37794d02011-11-30 18:24:29309 '<(DEPTH)/net/net.gyp:net',
[email protected]37794d02011-11-30 18:24:29310 '<(DEPTH)/skia/skia.gyp:skia',
[email protected]37794d02011-11-30 18:24:29311 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
312 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
313 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
314 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
[email protected]720ceda2013-08-22 19:14:37315 '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
[email protected]ffff5b32014-06-25 21:31:08316 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]1c0c3f42013-11-20 02:03:28317 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]002cc08f2013-06-03 05:40:29318 '<(DEPTH)/url/url.gyp:url_lib',
[email protected]dd363682009-12-28 20:30:46319 ],
320 'sources': [
[email protected]d92b2322014-06-16 18:07:25321 '<@(chrome_common_sources)'
[email protected]dd363682009-12-28 20:30:46322 ],
323 'conditions': [
[email protected]989ae862013-03-13 04:22:58324 ['enable_extensions==1', {
[email protected]7f2b78ed2014-06-20 04:26:55325 'sources': [
326 '<@(chrome_common_extensions_sources)',
327 ],
[email protected]989ae862013-03-13 04:22:58328 'dependencies': [
[email protected]1ff64292013-07-18 20:37:15329 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]e3a9ccfc2013-06-03 00:22:30330 '../device/usb/usb.gyp:device_usb',
[email protected]989ae862013-03-13 04:22:58331 ],
[email protected]989ae862013-03-13 04:22:58332 }],
[email protected]c51694f2013-06-25 02:50:24333 ['OS=="win" or OS=="mac"', {
334 'sources': [
[email protected]00c82c92014-03-14 21:32:07335 'common/extensions/api/networking_private/networking_private_crypto.cc',
336 'common/extensions/api/networking_private/networking_private_crypto.h',
[email protected]580ce3d62013-07-31 05:28:48337 'common/media_galleries/itunes_library.cc',
338 'common/media_galleries/itunes_library.h',
[email protected]62116d02013-06-26 04:32:00339 'common/media_galleries/picasa_types.cc',
340 'common/media_galleries/picasa_types.h',
341 'common/media_galleries/pmp_constants.h',
[email protected]c51694f2013-06-25 02:50:24342 ],
343 }],
[email protected]19fa62bf2013-10-17 17:55:41344 ['OS=="mac"', {
345 'sources': [
346 'common/media_galleries/iphoto_library.cc',
347 'common/media_galleries/iphoto_library.h',
348 ],
349 }],
[email protected]fdaed545c2012-10-20 19:13:04350 ['OS != "ios"', {
351 'dependencies': [
[email protected]68cb5652014-03-12 06:41:29352 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
[email protected]d04f81912013-06-18 14:52:13353 '<(DEPTH)/components/components.gyp:autofill_core_common',
[email protected]45b53fb2013-12-12 19:28:06354 '<(DEPTH)/components/components.gyp:autofill_content_common',
[email protected]faaa917f2014-02-05 10:43:28355 '<(DEPTH)/components/components.gyp:password_manager_core_common',
[email protected]63c7f0c2014-03-25 21:12:59356 '<(DEPTH)/components/components.gyp:signin_core_common',
[email protected]381500972014-04-04 05:07:49357 '<(DEPTH)/components/components.gyp:translate_content_common',
[email protected]058fe532013-11-28 06:45:59358 '<(DEPTH)/components/nacl.gyp:nacl_common',
[email protected]54ac11b2013-12-04 19:50:37359 '<(DEPTH)/components/components.gyp:visitedlink_common',
[email protected]5eda6dc2014-03-28 16:12:56360 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
[email protected]558878cc82013-11-09 01:25:51361 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
[email protected]fdaed545c2012-10-20 19:13:04362 '<(DEPTH)/ipc/ipc.gyp:ipc',
[email protected]fdaed545c2012-10-20 19:13:04363 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
[email protected]e3a8ebb92014-03-31 01:54:38364 '<(DEPTH)/third_party/re2/re2.gyp:re2',
[email protected]fdaed545c2012-10-20 19:13:04365 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
[email protected]fdaed545c2012-10-20 19:13:04366 ],
[email protected]5eda6dc2014-03-28 16:12:56367 'export_dependent_settings': [
368 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
369 ],
[email protected]fdaed545c2012-10-20 19:13:04370 }, { # OS == ios
371 'sources/': [
[email protected]fdaed545c2012-10-20 19:13:04372 ['exclude', '^common/child_process_'],
373 ['exclude', '^common/chrome_content_client\\.cc$'],
374 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
375 ['exclude', '^common/common_message_generator\\.cc$'],
376 ['exclude', '^common/common_param_traits'],
377 ['exclude', '^common/custom_handlers/'],
378 ['exclude', '^common/extensions/'],
[email protected]fdaed545c2012-10-20 19:13:04379 ['exclude', '^common/logging_chrome\\.'],
[email protected]c5e85fc2014-05-13 22:38:42380 ['exclude', '^common/media_galleries/'],
[email protected]fdaed545c2012-10-20 19:13:04381 ['exclude', '^common/multi_process_'],
382 ['exclude', '^common/nacl_'],
383 ['exclude', '^common/pepper_flash\\.'],
384 ['exclude', '^common/profiling\\.'],
[email protected]fdaed545c2012-10-20 19:13:04385 ['exclude', '^common/spellcheck_'],
[email protected]1352ca92013-04-30 02:30:27386 ['exclude', '^common/validation_message_'],
[email protected]fdaed545c2012-10-20 19:13:04387 ['exclude', '^common/web_apps\\.'],
388 # TODO(ios): Include files here as they are made to work; once
389 # everything is online, remove everything below here and just
390 # use the exclusions above.
[email protected]b7d1efa62012-11-16 11:22:02391 ['exclude', '\\.(cc|mm)$'],
392 ['include', '_ios\\.(cc|mm)$'],
393 ['include', '(^|/)ios/'],
394 ['include', '^common/chrome_version_info\\.cc$'],
[email protected]d7575c22013-07-11 13:54:22395 ['include', '^common/translate'],
[email protected]b7d1efa62012-11-16 11:22:02396 ['include', '^common/zip'],
[email protected]fdaed545c2012-10-20 19:13:04397 ],
[email protected]271e88fc2013-05-06 07:48:05398 'include_dirs': [
399 '<(DEPTH)/breakpad/src',
400 ],
[email protected]fdaed545c2012-10-20 19:13:04401 }],
[email protected]65f81ec2014-06-07 08:55:07402 ['enable_printing==0', {
403 'sources!': [
404 'common/print_messages.cc',
405 'common/print_messages.h',
406 ]
407 }, {
[email protected]f757c1a2013-11-07 09:02:36408 'dependencies': [
409 '<(DEPTH)/printing/printing.gyp:printing',
410 ],
411 }],
[email protected]65f81ec2014-06-07 08:55:07412 ['enable_printing!=1', {
413 'sources!' : [
414 'common/service_messages.h',
415 ],
416 'sources/': [
417 ['exclude', '^common/service_process_util_'],
418 ],
419 }],
[email protected]8d1486c62014-04-28 14:18:33420 ['enable_service_discovery==1', {
421 'sources' : [
422 'common/local_discovery/service_discovery_client.cc',
423 'common/local_discovery/service_discovery_client.h',
424 ]
425 }],
426 ['enable_mdns==1', {
427 'sources' : [
428 'common/local_discovery/service_discovery_client_impl.cc',
429 'common/local_discovery/service_discovery_client_impl.h',
430 ]
431 }],
[email protected]9f6167c2012-03-16 02:28:17432 ['OS=="android"', {
433 'sources/': [
[email protected]281288d2012-11-09 03:03:23434 ['exclude', '^common/chrome_version_info_posix.cc'],
[email protected]b279e76aec2014-02-20 17:17:37435 ['exclude', '^common/importer/'],
436 ['include', '^common/importer/imported_favicon_usage.cc$'],
437 ['include', '^common/importer/imported_favicon_usage.h$'],
[email protected]c5e85fc2014-05-13 22:38:42438 ['exclude', '^common/media_galleries/'],
[email protected]9f6167c2012-03-16 02:28:17439 ['exclude', '^common/service_'],
440 ],
[email protected]81bdab22013-09-02 21:12:52441 'sources!': [
442 'common/badge_util.cc',
443 'common/extensions/api/extension_action/browser_action_handler.cc',
444 'common/extensions/api/extension_action/page_action_handler.cc',
445 'common/extensions/api/spellcheck/spellcheck_handler.cc',
446 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
447 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
448 'common/icon_with_badge_image_source.cc',
[email protected]81bdab22013-09-02 21:12:52449 'common/net/url_util.cc',
[email protected]81bdab22013-09-02 21:12:52450 'common/spellcheck_common.cc',
451 ],
[email protected]9f6167c2012-03-16 02:28:17452 }],
[email protected]93156cec2011-09-12 21:14:44453 ['OS=="win"', {
454 'include_dirs': [
[email protected]27b38d62013-08-14 18:12:11455 '<(DEPTH)/breakpad/src',
[email protected]93156cec2011-09-12 21:14:44456 '<(DEPTH)/third_party/wtl/include',
[email protected]f65fdfc2013-03-05 21:56:04457 ],
[email protected]ef777a42011-11-25 13:15:43458 }],
[email protected]c1cc0e02013-07-04 12:46:35459 ['enable_mdns == 1', {
460 'sources': [
[email protected]686e985e2013-07-18 22:04:56461 'common/local_discovery/local_discovery_messages.h',
[email protected]c1cc0e02013-07-04 12:46:35462 ]
463 }],
[email protected]89886fa32012-10-08 23:46:33464 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25465 'sources!': [
466 'common/chrome_version_info_linux.cc',
467 ],
468 }],
[email protected]b9bbf5532011-11-03 07:35:22469 ['OS=="mac"', {
470 'dependencies': [
[email protected]a023dca2013-12-18 03:58:36471 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
[email protected]b9bbf5532011-11-03 07:35:22472 '../third_party/mach_override/mach_override.gyp:mach_override',
473 ],
474 'include_dirs': [
[email protected]271e88fc2013-05-06 07:48:05475 '<(DEPTH)/breakpad/src',
[email protected]b9bbf5532011-11-03 07:35:22476 ],
[email protected]1f26b9a2012-02-28 00:29:38477 'sources!': [
478 'common/child_process_logging_posix.cc',
479 'common/chrome_version_info_posix.cc',
480 ],
[email protected]b9bbf5532011-11-03 07:35:22481 }],
482 ['remoting==1', {
483 'dependencies': [
484 '../remoting/remoting.gyp:remoting_client_plugin',
485 ],
486 }],
[email protected]e3d193772013-09-11 15:18:26487 ['enable_plugins==0', {
488 'source!' : [
489 'common/pepper_permission_util.cc',
490 ],
491 }],
[email protected]6ef98b5a2013-05-31 23:58:31492 ['enable_webrtc==0', {
493 'sources!': [
494 'common/media/webrtc_logging_messages.h',
495 ]
496 }],
[email protected]991573e2013-12-16 13:49:20497 ['configuration_policy==1', {
498 'dependencies': [
499 '<(DEPTH)/components/components.gyp:policy',
500 ],
501 }],
[email protected]b9bbf5532011-11-03 07:35:22502 ],
[email protected]fdaed545c2012-10-20 19:13:04503 'target_conditions': [
504 ['OS == "ios"', {
505 'sources/': [
506 # Pull in specific Mac files for iOS (which have been filtered out
507 # by file name rules).
508 ['include', '^common/chrome_version_info_mac\\.mm$'],
509 ],
510 }],
511 ],
[email protected]b9bbf5532011-11-03 07:35:22512 'export_dependent_settings': [
513 '../base/base.gyp:base',
[email protected]8a59a082012-03-07 02:27:30514 'metrics_proto',
[email protected]b9bbf5532011-11-03 07:35:22515 ],
516 },
517 {
518 'target_name': 'common_version',
519 'type': 'none',
520 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04521 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22522 'direct_dependent_settings': {
523 'include_dirs': [
524 '<(SHARED_INTERMEDIATE_DIR)',
525 ],
526 },
[email protected]79440c52010-08-27 22:53:02527 # Because posix_version generates a header, we must set the
528 # hard_dependency flag.
529 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13530 'actions': [
531 {
532 'action_name': 'posix_version',
533 'variables': {
[email protected]bcd84532014-02-21 03:14:02534 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
535 'version_py_path': '<(DEPTH)/build/util/version.py',
[email protected]4641d3c2010-08-26 21:44:13536 'version_path': 'VERSION',
537 'template_input_path': 'common/chrome_version_info_posix.h.version',
538 },
539 'conditions': [
540 [ 'branding == "Chrome"', {
541 'variables': {
542 'branding_path':
543 'app/theme/google_chrome/BRANDING',
544 },
545 }, { # else branding!="Chrome"
546 'variables': {
547 'branding_path':
548 'app/theme/chromium/BRANDING',
549 },
550 }],
551 ],
552 'inputs': [
553 '<(template_input_path)',
554 '<(version_path)',
555 '<(branding_path)',
556 '<(lastchange_path)',
557 ],
558 'outputs': [
559 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
560 ],
561 'action': [
562 'python',
563 '<(version_py_path)',
564 '-f', '<(version_path)',
565 '-f', '<(branding_path)',
566 '-f', '<(lastchange_path)',
567 '<(template_input_path)',
568 '<@(_outputs)',
569 ],
570 'message': 'Generating version information',
571 },
572 ],
573 }],
[email protected]dd363682009-12-28 20:30:46574 ],
575 },
[email protected]3c3065d2010-05-06 21:59:55576 {
[email protected]7f2b78ed2014-06-20 04:26:55577 # GN version: //chrome/common/net:net
[email protected]3c3065d2010-05-06 21:59:55578 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53579 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55580 'sources': [
[email protected]2ea1efe2013-07-17 05:23:13581 'common/net/net_error_info.cc',
582 'common/net/net_error_info.h',
[email protected]06305962012-05-09 22:34:36583 'common/net/net_resource_provider.cc',
584 'common/net/net_resource_provider.h',
585 'common/net/predictor_common.h',
586 'common/net/url_util.cc',
587 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40588 'common/net/x509_certificate_model.cc',
589 'common/net/x509_certificate_model_nss.cc',
590 'common/net/x509_certificate_model_openssl.cc',
591 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55592 ],
593 'dependencies': [
[email protected]37794d02011-11-30 18:24:29594 '<(DEPTH)/base/base.gyp:base',
595 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
596 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
597 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29598 '<(DEPTH)/net/net.gyp:net_resources',
599 '<(DEPTH)/net/net.gyp:net',
600 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
601 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55602 ],
[email protected]b1c2a5542010-10-08 12:44:40603 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04604 ['OS != "ios"', {
605 'dependencies': [
606 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
607 ],
608 }, { # OS == ios
609 'sources!': [
610 'common/net/net_resource_provider.cc',
611 'common/net/x509_certificate_model.cc',
612 ],
613 }],
614 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30615 'dependencies': [
616 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40617 ],
618 },
[email protected]af221ff2012-04-03 05:22:39619 ],
[email protected]fdaed545c2012-10-20 19:13:04620 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40621 'sources!': [
622 'common/net/x509_certificate_model_nss.cc',
623 'common/net/x509_certificate_model_openssl.cc',
624 ],
625 },
626 ],
[email protected]af221ff2012-04-03 05:22:39627 ['OS == "android"', {
628 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01629 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39630 ],
[email protected]df2e196e2014-02-05 19:56:25631 'sources!': [
632 'common/net/x509_certificate_model.cc',
[email protected]b455eefa2014-05-26 04:02:31633 'common/net/x509_certificate_model_openssl.cc',
[email protected]df2e196e2014-02-05 19:56:25634 ],
635 }],
[email protected]b1c2a5542010-10-08 12:44:40636 ['use_openssl==1', {
637 'sources!': [
[email protected]00c82c92014-03-14 21:32:07638 # networking_private_crypto.cc uses NSS functions.
639 'common/extensions/api/networking_private/networking_private_crypto.cc',
[email protected]b1c2a5542010-10-08 12:44:40640 'common/net/x509_certificate_model_nss.cc',
641 ],
642 },
643 { # else !use_openssl: remove the unneeded files
644 'sources!': [
645 'common/net/x509_certificate_model_openssl.cc',
646 ],
647 },
648 ],
[email protected]b1d2c742013-01-21 18:04:52649 ['OS=="win"', {
650 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
651 'msvs_disabled_warnings': [4267, ],
652 },
653 ],
[email protected]129d11452012-03-01 01:56:56654 ],
[email protected]3c3065d2010-05-06 21:59:55655 },
[email protected]133139772011-04-14 22:14:13656 {
[email protected]1c20dd62011-08-19 21:54:33657 # Protobuf compiler / generator for the safebrowsing client
658 # model proto and the client-side detection (csd) request
659 # protocol buffer.
[email protected]77ce8022014-06-16 19:29:56660
661 # GN version: //chrome/common/safe_browsing:proto
[email protected]cae64fe2011-06-17 17:54:50662 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33663 'type': 'static_library',
664 'sources': [
665 'common/safe_browsing/client_model.proto',
[email protected]8e289f0b2013-12-17 17:49:07666 'common/safe_browsing/crx_info.proto',
[email protected]1c20dd62011-08-19 21:54:33667 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50668 ],
[email protected]1c20dd62011-08-19 21:54:33669 'variables': {
670 'proto_in_dir': 'common/safe_browsing',
671 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50672 },
[email protected]1c20dd62011-08-19 21:54:33673 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13674 },
[email protected]7ae45d0502012-01-31 00:29:26675 {
676 # Protobuf compiler / generator for UMA (User Metrics Analysis).
[email protected]77ce8022014-06-16 19:29:56677
678 # GN version: //chrome/common/metrics/proto:proto
[email protected]7ae45d0502012-01-31 00:29:26679 'target_name': 'metrics_proto',
680 'type': 'static_library',
681 'sources': [
[email protected]f89fdab12012-05-04 23:27:21682 'common/metrics/proto/chrome_experiments.proto',
[email protected]7ae45d0502012-01-31 00:29:26683 ],
684 'variables': {
685 'proto_in_dir': 'common/metrics/proto',
686 'proto_out_dir': 'chrome/common/metrics/proto',
687 },
688 'includes': [ '../build/protoc.gypi' ],
689 },
[email protected]dd363682009-12-28 20:30:46690 ],
[email protected]dd363682009-12-28 20:30:46691}