blob: 11a1afc6fa0c3fa4b1d6ded3292524b084e4520b [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',
[email protected]ddc6a122014-06-27 04:52:3226 'common/chrome_utility_printing_messages.h',
[email protected]d92b2322014-06-16 18:07:2527 'common/chrome_version_info.cc',
28 'common/chrome_version_info_android.cc',
29 'common/chrome_version_info_chromeos.cc',
30 'common/chrome_version_info_posix.cc',
31 'common/chrome_version_info_mac.mm',
32 'common/chrome_version_info_win.cc',
33 'common/chrome_version_info.h',
34 'common/cloud_print/cloud_print_class_mac.h',
35 'common/cloud_print/cloud_print_class_mac.mm',
36 'common/cloud_print/cloud_print_cdd_conversion.cc',
37 'common/cloud_print/cloud_print_cdd_conversion.h',
38 'common/cloud_print/cloud_print_constants.cc',
39 'common/cloud_print/cloud_print_constants.h',
40 'common/cloud_print/cloud_print_helpers.cc',
41 'common/cloud_print/cloud_print_helpers.h',
42 'common/cloud_print/cloud_print_proxy_info.cc',
43 'common/cloud_print/cloud_print_proxy_info.h',
44 'common/common_message_generator.cc',
45 'common/common_message_generator.h',
46 'common/common_param_traits.cc',
47 'common/common_param_traits.h',
48 'common/common_param_traits_macros.h',
49 'common/content_restriction.h',
50 'common/content_settings.cc',
51 'common/content_settings.h',
52 'common/content_settings_helper.cc',
53 'common/content_settings_helper.h',
54 'common/content_settings_pattern.cc',
55 'common/content_settings_pattern.h',
56 'common/content_settings_pattern_parser.cc',
57 'common/content_settings_pattern_parser.h',
58 'common/content_settings_types.h',
59 'common/crash_keys.cc',
60 'common/crash_keys.h',
61 'common/custom_handlers/protocol_handler.cc',
62 'common/custom_handlers/protocol_handler.h',
63 'common/descriptors_android.h',
[email protected]d92b2322014-06-16 18:07:2564 'common/extensions/api/extension_action/action_info.cc',
65 'common/extensions/api/extension_action/action_info.h',
[email protected]d92b2322014-06-16 18:07:2566 'common/extensions/api/i18n/default_locale_handler.cc',
67 'common/extensions/api/i18n/default_locale_handler.h',
68 'common/extensions/api/identity/oauth2_manifest_handler.cc',
69 'common/extensions/api/identity/oauth2_manifest_handler.h',
[email protected]d92b2322014-06-16 18:07:2570 'common/extensions/api/plugins/plugins_handler.cc',
71 'common/extensions/api/plugins/plugins_handler.h',
[email protected]d92b2322014-06-16 18:07:2572 'common/extensions/api/storage/storage_schema_manifest_handler.cc',
73 'common/extensions/api/storage/storage_schema_manifest_handler.h',
[email protected]f3918a42014-06-24 15:52:0974 'common/extensions/api/supervised_user_private/supervised_user_handler.cc',
75 'common/extensions/api/supervised_user_private/supervised_user_handler.h',
[email protected]d92b2322014-06-16 18:07:2576 'common/extensions/chrome_extension_messages.h',
77 'common/extensions/chrome_extensions_client.cc',
78 'common/extensions/chrome_extensions_client.h',
79 'common/extensions/chrome_manifest_handlers.cc',
80 'common/extensions/chrome_manifest_handlers.h',
[email protected]ddc6a122014-06-27 04:52:3281 'common/extensions/chrome_utility_extensions_messages.h',
[email protected]d92b2322014-06-16 18:07:2582 'common/extensions/command.cc',
83 'common/extensions/command.h',
84 'common/extensions/extension_constants.cc',
85 'common/extensions/extension_constants.h',
86 'common/extensions/extension_file_util.cc',
87 'common/extensions/extension_file_util.h',
88 'common/extensions/extension_process_policy.cc',
89 'common/extensions/extension_process_policy.h',
90 'common/extensions/features/chrome_channel_feature_filter.cc',
91 'common/extensions/features/chrome_channel_feature_filter.h',
92 'common/extensions/features/feature_channel.cc',
93 'common/extensions/features/feature_channel.h',
94 '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',
106 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
107 'common/extensions/manifest_handlers/nacl_modules_handler.h',
108 'common/extensions/manifest_handlers/settings_overrides_handler.cc',
109 'common/extensions/manifest_handlers/settings_overrides_handler.h',
[email protected]4ad2cf722014-07-03 17:36:53110 'common/extensions/manifest_handlers/synthesize_browser_action_handler.cc',
111 'common/extensions/manifest_handlers/synthesize_browser_action_handler.h',
[email protected]d92b2322014-06-16 18:07:25112 'common/extensions/manifest_handlers/theme_handler.cc',
113 'common/extensions/manifest_handlers/theme_handler.h',
114 'common/extensions/manifest_handlers/ui_overrides_handler.cc',
115 'common/extensions/manifest_handlers/ui_overrides_handler.h',
116 'common/extensions/manifest_url_handler.cc',
117 'common/extensions/manifest_url_handler.h',
118 'common/extensions/permissions/chrome_api_permissions.cc',
119 'common/extensions/permissions/chrome_api_permissions.h',
120 'common/extensions/permissions/chrome_permission_message_provider.cc',
121 'common/extensions/permissions/chrome_permission_message_provider.h',
122 'common/extensions/sync_helper.cc',
123 'common/extensions/sync_helper.h',
124 'common/extensions/update_manifest.cc',
125 'common/extensions/update_manifest.h',
126 'common/favicon/favicon_url_parser.cc',
127 'common/favicon/favicon_url_parser.h',
128 'common/icon_with_badge_image_source.cc',
129 'common/icon_with_badge_image_source.h',
130 'common/importer/firefox_importer_utils.cc',
131 'common/importer/firefox_importer_utils.h',
132 'common/importer/firefox_importer_utils_linux.cc',
133 'common/importer/firefox_importer_utils_mac.mm',
134 'common/importer/firefox_importer_utils_win.cc',
135 'common/importer/ie_importer_test_registry_overrider_win.cc',
136 'common/importer/ie_importer_test_registry_overrider_win.h',
137 'common/importer/ie_importer_utils_win.cc',
138 'common/importer/ie_importer_utils_win.h',
139 'common/importer/imported_bookmark_entry.cc',
140 'common/importer/imported_bookmark_entry.h',
141 'common/importer/imported_favicon_usage.cc',
142 'common/importer/imported_favicon_usage.h',
143 'common/importer/importer_bridge.cc',
144 'common/importer/importer_bridge.h',
145 'common/importer/importer_data_types.cc',
146 'common/importer/importer_data_types.h',
147 'common/importer/importer_type.h',
148 'common/importer/importer_url_row.cc',
149 'common/importer/importer_url_row.h',
150 'common/importer/profile_import_process_messages.cc',
151 'common/importer/profile_import_process_messages.h',
152 'common/importer/safari_importer_utils.h',
153 'common/importer/safari_importer_utils.mm',
154 'common/instant_restricted_id_cache.h',
155 'common/instant_types.cc',
156 'common/instant_types.h',
157 'common/localized_error.cc',
158 'common/localized_error.h',
159 'common/logging_chrome.cc',
160 'common/logging_chrome.h',
161 'common/mac/app_mode_common.h',
162 'common/mac/app_mode_common.mm',
163 'common/mac/cfbundle_blocker.h',
164 'common/mac/cfbundle_blocker.mm',
165 'common/mac/launchd.h',
166 'common/mac/launchd.mm',
167 'common/mac/objc_method_swizzle.h',
168 'common/mac/objc_method_swizzle.mm',
169 'common/mac/objc_zombie.h',
170 'common/mac/objc_zombie.mm',
171 'common/media/webrtc_logging_messages.h',
172 'common/media/webrtc_logging_message_data.cc',
173 'common/media/webrtc_logging_message_data.h',
174 'common/media_galleries/metadata_types.h',
175 'common/multi_process_lock.h',
176 'common/multi_process_lock_linux.cc',
177 'common/multi_process_lock_mac.cc',
178 'common/multi_process_lock_win.cc',
179 'common/omnibox_focus_state.h',
180 'common/partial_circular_buffer.cc',
181 'common/partial_circular_buffer.h',
182 'common/pepper_flash.cc',
183 'common/pepper_flash.h',
184 'common/pepper_permission_util.cc',
185 'common/pepper_permission_util.h',
186 'common/pref_names_util.cc',
187 'common/pref_names_util.h',
188 'common/prerender_types.h',
189 'common/print_messages.cc',
190 'common/print_messages.h',
191 'common/profiling.cc',
192 'common/profiling.h',
193 'common/ref_counted_util.h',
194 'common/render_messages.cc',
195 'common/render_messages.h',
[email protected]d92b2322014-06-16 18:07:25196 'common/safe_browsing/safebrowsing_messages.h',
[email protected]d92b2322014-06-16 18:07:25197 '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]1e8205e82014-07-08 10:54:24264 'chrome_common_full_safe_browsing_sources': [
265 'common/safe_browsing/download_protection_util.cc',
266 'common/safe_browsing/download_protection_util.h',
267 'common/safe_browsing/zip_analyzer.cc',
268 'common/safe_browsing/zip_analyzer.h',
269 ],
[email protected]d92b2322014-06-16 18:07:25270 },
[email protected]dd363682009-12-28 20:30:46271 'targets': [
272 {
273 'target_name': 'common',
[email protected]5a547332011-05-19 23:18:53274 'type': 'static_library',
[email protected]dd363682009-12-28 20:30:46275 'variables': {
276 'chrome_common_target': 1,
[email protected]4f68ed72012-10-30 05:24:07277 'enable_wexit_time_destructors': 1,
[email protected]dd363682009-12-28 20:30:46278 },
[email protected]93156cec2011-09-12 21:14:44279 'include_dirs': [
280 '..',
[email protected]b50368b2012-02-18 00:02:13281 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
[email protected]93156cec2011-09-12 21:14:44282 ],
[email protected]dd363682009-12-28 20:30:46283 'direct_dependent_settings': {
284 'include_dirs': [
285 '..',
286 ],
287 },
288 'dependencies': [
289 # TODO(gregoryd): chrome_resources and chrome_strings could be
290 # shared with the 64-bit target, but it does not work due to a gyp
291 # issue.
[email protected]3c3065d2010-05-06 21:59:55292 'common_net',
[email protected]b9bbf5532011-11-03 07:35:22293 'common_version',
[email protected]52927222013-03-19 22:38:12294 'installer_util',
[email protected]12d9f6e2014-07-02 20:45:02295 'safe_browsing_proto',
[email protected]37794d02011-11-30 18:24:29296 '<(DEPTH)/base/base.gyp:base',
297 '<(DEPTH)/base/base.gyp:base_i18n',
[email protected]f59f33e2012-11-01 12:05:27298 '<(DEPTH)/base/base.gyp:base_prefs',
[email protected]37794d02011-11-30 18:24:29299 '<(DEPTH)/base/base.gyp:base_static',
[email protected]37794d02011-11-30 18:24:29300 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
301 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
302 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
[email protected]99245a02012-10-09 20:57:49303 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
[email protected]5b38caf2014-04-18 05:32:06304 '<(DEPTH)/components/components.gyp:cloud_devices_common',
[email protected]6c0c9736d2014-07-08 14:17:00305 '<(DEPTH)/components/components.gyp:component_updater',
[email protected]fb1397ce2013-08-13 22:55:07306 '<(DEPTH)/components/components.gyp:json_schema',
[email protected]2a172e42014-02-21 04:06:10307 '<(DEPTH)/components/components.gyp:metrics',
[email protected]f522afa2014-01-08 15:36:36308 '<(DEPTH)/components/components.gyp:policy_component_common',
[email protected]eba93c92014-01-07 17:34:17309 '<(DEPTH)/components/components.gyp:translate_core_common',
[email protected]50ae9f12013-08-29 18:03:22310 '<(DEPTH)/components/components.gyp:variations',
[email protected]37794d02011-11-30 18:24:29311 '<(DEPTH)/content/content.gyp:content_common',
[email protected]00c82c92014-03-14 21:32:07312 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]dcedc592014-04-28 19:49:29313 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
[email protected]99c0125b2014-04-17 05:21:57314 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
[email protected]84b92fa82014-04-23 18:30:29315 '<(DEPTH)/media/cast/cast.gyp:cast_transport',
[email protected]37794d02011-11-30 18:24:29316 '<(DEPTH)/net/net.gyp:net',
[email protected]37794d02011-11-30 18:24:29317 '<(DEPTH)/skia/skia.gyp:skia',
[email protected]37794d02011-11-30 18:24:29318 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
319 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
320 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
321 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
[email protected]720ceda2013-08-22 19:14:37322 '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
[email protected]ffff5b32014-06-25 21:31:08323 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]1c0c3f42013-11-20 02:03:28324 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]002cc08f2013-06-03 05:40:29325 '<(DEPTH)/url/url.gyp:url_lib',
[email protected]dd363682009-12-28 20:30:46326 ],
327 'sources': [
[email protected]d92b2322014-06-16 18:07:25328 '<@(chrome_common_sources)'
[email protected]dd363682009-12-28 20:30:46329 ],
330 'conditions': [
[email protected]989ae862013-03-13 04:22:58331 ['enable_extensions==1', {
[email protected]7f2b78ed2014-06-20 04:26:55332 'sources': [
333 '<@(chrome_common_extensions_sources)',
334 ],
[email protected]989ae862013-03-13 04:22:58335 'dependencies': [
[email protected]1ff64292013-07-18 20:37:15336 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]e3a9ccfc2013-06-03 00:22:30337 '../device/usb/usb.gyp:device_usb',
[email protected]989ae862013-03-13 04:22:58338 ],
[email protected]989ae862013-03-13 04:22:58339 }],
[email protected]c51694f2013-06-25 02:50:24340 ['OS=="win" or OS=="mac"', {
341 'sources': [
[email protected]00c82c92014-03-14 21:32:07342 'common/extensions/api/networking_private/networking_private_crypto.cc',
343 'common/extensions/api/networking_private/networking_private_crypto.h',
[email protected]580ce3d62013-07-31 05:28:48344 'common/media_galleries/itunes_library.cc',
345 'common/media_galleries/itunes_library.h',
[email protected]62116d02013-06-26 04:32:00346 'common/media_galleries/picasa_types.cc',
347 'common/media_galleries/picasa_types.h',
348 'common/media_galleries/pmp_constants.h',
[email protected]c51694f2013-06-25 02:50:24349 ],
350 }],
[email protected]19fa62bf2013-10-17 17:55:41351 ['OS=="mac"', {
352 'sources': [
353 'common/media_galleries/iphoto_library.cc',
354 'common/media_galleries/iphoto_library.h',
355 ],
356 }],
[email protected]fdaed545c2012-10-20 19:13:04357 ['OS != "ios"', {
358 'dependencies': [
[email protected]68cb5652014-03-12 06:41:29359 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
[email protected]d04f81912013-06-18 14:52:13360 '<(DEPTH)/components/components.gyp:autofill_core_common',
[email protected]45b53fb2013-12-12 19:28:06361 '<(DEPTH)/components/components.gyp:autofill_content_common',
[email protected]faaa917f2014-02-05 10:43:28362 '<(DEPTH)/components/components.gyp:password_manager_core_common',
[email protected]63c7f0c2014-03-25 21:12:59363 '<(DEPTH)/components/components.gyp:signin_core_common',
[email protected]381500972014-04-04 05:07:49364 '<(DEPTH)/components/components.gyp:translate_content_common',
[email protected]058fe532013-11-28 06:45:59365 '<(DEPTH)/components/nacl.gyp:nacl_common',
[email protected]54ac11b2013-12-04 19:50:37366 '<(DEPTH)/components/components.gyp:visitedlink_common',
[email protected]5eda6dc2014-03-28 16:12:56367 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
[email protected]558878cc82013-11-09 01:25:51368 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
[email protected]fdaed545c2012-10-20 19:13:04369 '<(DEPTH)/ipc/ipc.gyp:ipc',
[email protected]fdaed545c2012-10-20 19:13:04370 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
[email protected]e3a8ebb92014-03-31 01:54:38371 '<(DEPTH)/third_party/re2/re2.gyp:re2',
[email protected]fdaed545c2012-10-20 19:13:04372 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
[email protected]fdaed545c2012-10-20 19:13:04373 ],
[email protected]5eda6dc2014-03-28 16:12:56374 'export_dependent_settings': [
375 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
376 ],
[email protected]fdaed545c2012-10-20 19:13:04377 }, { # OS == ios
378 'sources/': [
[email protected]fdaed545c2012-10-20 19:13:04379 ['exclude', '^common/child_process_'],
380 ['exclude', '^common/chrome_content_client\\.cc$'],
381 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
382 ['exclude', '^common/common_message_generator\\.cc$'],
383 ['exclude', '^common/common_param_traits'],
384 ['exclude', '^common/custom_handlers/'],
385 ['exclude', '^common/extensions/'],
[email protected]fdaed545c2012-10-20 19:13:04386 ['exclude', '^common/logging_chrome\\.'],
[email protected]c5e85fc2014-05-13 22:38:42387 ['exclude', '^common/media_galleries/'],
[email protected]fdaed545c2012-10-20 19:13:04388 ['exclude', '^common/multi_process_'],
389 ['exclude', '^common/nacl_'],
390 ['exclude', '^common/pepper_flash\\.'],
391 ['exclude', '^common/profiling\\.'],
[email protected]fdaed545c2012-10-20 19:13:04392 ['exclude', '^common/spellcheck_'],
[email protected]1352ca92013-04-30 02:30:27393 ['exclude', '^common/validation_message_'],
[email protected]fdaed545c2012-10-20 19:13:04394 ['exclude', '^common/web_apps\\.'],
395 # TODO(ios): Include files here as they are made to work; once
396 # everything is online, remove everything below here and just
397 # use the exclusions above.
[email protected]b7d1efa62012-11-16 11:22:02398 ['exclude', '\\.(cc|mm)$'],
399 ['include', '_ios\\.(cc|mm)$'],
400 ['include', '(^|/)ios/'],
401 ['include', '^common/chrome_version_info\\.cc$'],
[email protected]d7575c22013-07-11 13:54:22402 ['include', '^common/translate'],
[email protected]b7d1efa62012-11-16 11:22:02403 ['include', '^common/zip'],
[email protected]fdaed545c2012-10-20 19:13:04404 ],
[email protected]271e88fc2013-05-06 07:48:05405 'include_dirs': [
406 '<(DEPTH)/breakpad/src',
407 ],
[email protected]fdaed545c2012-10-20 19:13:04408 }],
[email protected]65f81ec2014-06-07 08:55:07409 ['enable_printing==0', {
410 'sources!': [
411 'common/print_messages.cc',
412 'common/print_messages.h',
413 ]
414 }, {
[email protected]f757c1a2013-11-07 09:02:36415 'dependencies': [
416 '<(DEPTH)/printing/printing.gyp:printing',
417 ],
418 }],
[email protected]65f81ec2014-06-07 08:55:07419 ['enable_printing!=1', {
420 'sources!' : [
421 'common/service_messages.h',
422 ],
423 'sources/': [
424 ['exclude', '^common/service_process_util_'],
425 ],
426 }],
[email protected]8d1486c62014-04-28 14:18:33427 ['enable_service_discovery==1', {
428 'sources' : [
429 'common/local_discovery/service_discovery_client.cc',
430 'common/local_discovery/service_discovery_client.h',
431 ]
432 }],
433 ['enable_mdns==1', {
434 'sources' : [
435 'common/local_discovery/service_discovery_client_impl.cc',
436 'common/local_discovery/service_discovery_client_impl.h',
437 ]
438 }],
[email protected]9f6167c2012-03-16 02:28:17439 ['OS=="android"', {
440 'sources/': [
[email protected]281288d2012-11-09 03:03:23441 ['exclude', '^common/chrome_version_info_posix.cc'],
[email protected]b279e76aec2014-02-20 17:17:37442 ['exclude', '^common/importer/'],
[email protected]c5e85fc2014-05-13 22:38:42443 ['exclude', '^common/media_galleries/'],
[email protected]9f6167c2012-03-16 02:28:17444 ['exclude', '^common/service_'],
445 ],
[email protected]81bdab22013-09-02 21:12:52446 'sources!': [
447 'common/badge_util.cc',
448 'common/extensions/api/extension_action/browser_action_handler.cc',
449 'common/extensions/api/extension_action/page_action_handler.cc',
450 'common/extensions/api/spellcheck/spellcheck_handler.cc',
451 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
452 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
453 'common/icon_with_badge_image_source.cc',
[email protected]81bdab22013-09-02 21:12:52454 'common/net/url_util.cc',
[email protected]81bdab22013-09-02 21:12:52455 'common/spellcheck_common.cc',
456 ],
[email protected]9f6167c2012-03-16 02:28:17457 }],
[email protected]93156cec2011-09-12 21:14:44458 ['OS=="win"', {
459 'include_dirs': [
[email protected]27b38d62013-08-14 18:12:11460 '<(DEPTH)/breakpad/src',
[email protected]93156cec2011-09-12 21:14:44461 '<(DEPTH)/third_party/wtl/include',
[email protected]f65fdfc2013-03-05 21:56:04462 ],
[email protected]ef777a42011-11-25 13:15:43463 }],
[email protected]c1cc0e02013-07-04 12:46:35464 ['enable_mdns == 1', {
465 'sources': [
[email protected]686e985e2013-07-18 22:04:56466 'common/local_discovery/local_discovery_messages.h',
[email protected]c1cc0e02013-07-04 12:46:35467 ]
468 }],
[email protected]89886fa32012-10-08 23:46:33469 ['chromeos==1', {
[email protected]3a12f882011-12-14 06:39:25470 'sources!': [
471 'common/chrome_version_info_linux.cc',
472 ],
473 }],
[email protected]b9bbf5532011-11-03 07:35:22474 ['OS=="mac"', {
475 'dependencies': [
[email protected]a023dca2013-12-18 03:58:36476 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
[email protected]b9bbf5532011-11-03 07:35:22477 '../third_party/mach_override/mach_override.gyp:mach_override',
478 ],
479 'include_dirs': [
[email protected]271e88fc2013-05-06 07:48:05480 '<(DEPTH)/breakpad/src',
[email protected]b9bbf5532011-11-03 07:35:22481 ],
[email protected]1f26b9a2012-02-28 00:29:38482 'sources!': [
483 'common/child_process_logging_posix.cc',
484 'common/chrome_version_info_posix.cc',
485 ],
[email protected]b9bbf5532011-11-03 07:35:22486 }],
487 ['remoting==1', {
488 'dependencies': [
489 '../remoting/remoting.gyp:remoting_client_plugin',
490 ],
491 }],
[email protected]e3d193772013-09-11 15:18:26492 ['enable_plugins==0', {
493 'source!' : [
494 'common/pepper_permission_util.cc',
495 ],
496 }],
[email protected]6ef98b5a2013-05-31 23:58:31497 ['enable_webrtc==0', {
498 'sources!': [
499 'common/media/webrtc_logging_messages.h',
500 ]
501 }],
[email protected]991573e2013-12-16 13:49:20502 ['configuration_policy==1', {
503 'dependencies': [
504 '<(DEPTH)/components/components.gyp:policy',
505 ],
506 }],
[email protected]1e8205e82014-07-08 10:54:24507 ['safe_browsing==1', {
508 'defines': [ 'FULL_SAFE_BROWSING' ],
509 'sources': [ '<@(chrome_common_full_safe_browsing_sources)', ],
510 }],
511 ['safe_browsing==2', {
512 'defines': [ 'MOBILE_SAFE_BROWSING' ],
513 }],
[email protected]b9bbf5532011-11-03 07:35:22514 ],
[email protected]fdaed545c2012-10-20 19:13:04515 'target_conditions': [
516 ['OS == "ios"', {
517 'sources/': [
518 # Pull in specific Mac files for iOS (which have been filtered out
519 # by file name rules).
520 ['include', '^common/chrome_version_info_mac\\.mm$'],
521 ],
522 }],
523 ],
[email protected]b9bbf5532011-11-03 07:35:22524 'export_dependent_settings': [
525 '../base/base.gyp:base',
526 ],
527 },
528 {
529 'target_name': 'common_version',
530 'type': 'none',
531 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04532 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
[email protected]b9bbf5532011-11-03 07:35:22533 'direct_dependent_settings': {
534 'include_dirs': [
535 '<(SHARED_INTERMEDIATE_DIR)',
536 ],
537 },
[email protected]79440c52010-08-27 22:53:02538 # Because posix_version generates a header, we must set the
539 # hard_dependency flag.
540 'hard_dependency': 1,
[email protected]4641d3c2010-08-26 21:44:13541 'actions': [
542 {
543 'action_name': 'posix_version',
544 'variables': {
[email protected]bcd84532014-02-21 03:14:02545 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
546 'version_py_path': '<(DEPTH)/build/util/version.py',
[email protected]4641d3c2010-08-26 21:44:13547 'version_path': 'VERSION',
548 'template_input_path': 'common/chrome_version_info_posix.h.version',
549 },
550 'conditions': [
551 [ 'branding == "Chrome"', {
552 'variables': {
553 'branding_path':
554 'app/theme/google_chrome/BRANDING',
555 },
556 }, { # else branding!="Chrome"
557 'variables': {
558 'branding_path':
559 'app/theme/chromium/BRANDING',
560 },
561 }],
562 ],
563 'inputs': [
564 '<(template_input_path)',
565 '<(version_path)',
566 '<(branding_path)',
567 '<(lastchange_path)',
568 ],
569 'outputs': [
570 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
571 ],
572 'action': [
573 'python',
574 '<(version_py_path)',
575 '-f', '<(version_path)',
576 '-f', '<(branding_path)',
577 '-f', '<(lastchange_path)',
578 '<(template_input_path)',
579 '<@(_outputs)',
580 ],
581 'message': 'Generating version information',
582 },
583 ],
584 }],
[email protected]dd363682009-12-28 20:30:46585 ],
586 },
[email protected]3c3065d2010-05-06 21:59:55587 {
[email protected]7f2b78ed2014-06-20 04:26:55588 # GN version: //chrome/common/net:net
[email protected]3c3065d2010-05-06 21:59:55589 'target_name': 'common_net',
[email protected]5a547332011-05-19 23:18:53590 'type': 'static_library',
[email protected]3c3065d2010-05-06 21:59:55591 'sources': [
[email protected]2ea1efe2013-07-17 05:23:13592 'common/net/net_error_info.cc',
593 'common/net/net_error_info.h',
[email protected]06305962012-05-09 22:34:36594 'common/net/net_resource_provider.cc',
595 'common/net/net_resource_provider.h',
596 'common/net/predictor_common.h',
597 'common/net/url_util.cc',
598 'common/net/url_util.h',
[email protected]b1c2a5542010-10-08 12:44:40599 'common/net/x509_certificate_model.cc',
600 'common/net/x509_certificate_model_nss.cc',
601 'common/net/x509_certificate_model_openssl.cc',
602 'common/net/x509_certificate_model.h',
[email protected]3c3065d2010-05-06 21:59:55603 ],
604 'dependencies': [
[email protected]37794d02011-11-30 18:24:29605 '<(DEPTH)/base/base.gyp:base',
606 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
607 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
608 '<(DEPTH)/crypto/crypto.gyp:crypto',
[email protected]37794d02011-11-30 18:24:29609 '<(DEPTH)/net/net.gyp:net_resources',
610 '<(DEPTH)/net/net.gyp:net',
611 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
612 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
[email protected]3c3065d2010-05-06 21:59:55613 ],
[email protected]b1c2a5542010-10-08 12:44:40614 'conditions': [
[email protected]fdaed545c2012-10-20 19:13:04615 ['OS != "ios"', {
616 'dependencies': [
617 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
618 ],
619 }, { # OS == ios
620 'sources!': [
621 'common/net/net_resource_provider.cc',
622 'common/net/x509_certificate_model.cc',
623 ],
624 }],
625 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
[email protected]638e9df42011-05-31 17:19:30626 'dependencies': [
627 '../build/linux/system.gyp:ssl',
[email protected]b1c2a5542010-10-08 12:44:40628 ],
629 },
[email protected]af221ff2012-04-03 05:22:39630 ],
[email protected]fdaed545c2012-10-20 19:13:04631 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
[email protected]b1c2a5542010-10-08 12:44:40632 'sources!': [
633 'common/net/x509_certificate_model_nss.cc',
634 'common/net/x509_certificate_model_openssl.cc',
635 ],
636 },
637 ],
[email protected]af221ff2012-04-03 05:22:39638 ['OS == "android"', {
639 'dependencies': [
[email protected]8e853b142012-05-16 07:40:01640 '../third_party/openssl/openssl.gyp:openssl',
[email protected]af221ff2012-04-03 05:22:39641 ],
[email protected]df2e196e2014-02-05 19:56:25642 'sources!': [
643 'common/net/x509_certificate_model.cc',
[email protected]b455eefa2014-05-26 04:02:31644 'common/net/x509_certificate_model_openssl.cc',
[email protected]df2e196e2014-02-05 19:56:25645 ],
646 }],
[email protected]b1c2a5542010-10-08 12:44:40647 ['use_openssl==1', {
648 'sources!': [
[email protected]00c82c92014-03-14 21:32:07649 # networking_private_crypto.cc uses NSS functions.
650 'common/extensions/api/networking_private/networking_private_crypto.cc',
[email protected]b1c2a5542010-10-08 12:44:40651 'common/net/x509_certificate_model_nss.cc',
652 ],
653 },
654 { # else !use_openssl: remove the unneeded files
655 'sources!': [
656 'common/net/x509_certificate_model_openssl.cc',
657 ],
658 },
659 ],
[email protected]b1d2c742013-01-21 18:04:52660 ['OS=="win"', {
661 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
662 'msvs_disabled_warnings': [4267, ],
663 },
664 ],
[email protected]129d11452012-03-01 01:56:56665 ],
[email protected]3c3065d2010-05-06 21:59:55666 },
[email protected]133139772011-04-14 22:14:13667 {
[email protected]1c20dd62011-08-19 21:54:33668 # Protobuf compiler / generator for the safebrowsing client
669 # model proto and the client-side detection (csd) request
670 # protocol buffer.
[email protected]77ce8022014-06-16 19:29:56671
672 # GN version: //chrome/common/safe_browsing:proto
[email protected]cae64fe2011-06-17 17:54:50673 'target_name': 'safe_browsing_proto',
[email protected]1c20dd62011-08-19 21:54:33674 'type': 'static_library',
675 'sources': [
676 'common/safe_browsing/client_model.proto',
[email protected]8e289f0b2013-12-17 17:49:07677 'common/safe_browsing/crx_info.proto',
[email protected]1c20dd62011-08-19 21:54:33678 'common/safe_browsing/csd.proto'
[email protected]cae64fe2011-06-17 17:54:50679 ],
[email protected]1c20dd62011-08-19 21:54:33680 'variables': {
681 'proto_in_dir': 'common/safe_browsing',
682 'proto_out_dir': 'chrome/common/safe_browsing',
[email protected]cae64fe2011-06-17 17:54:50683 },
[email protected]1c20dd62011-08-19 21:54:33684 'includes': [ '../build/protoc.gypi' ],
[email protected]133139772011-04-14 22:14:13685 },
[email protected]dd363682009-12-28 20:30:46686 ],
[email protected]dd363682009-12-28 20:30:46687}