1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 'target_name': 'common',
9 'type': 'static_library',
11 'chrome_common_target': 1,
12 'enable_wexit_time_destructors': 1,
16 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_content_client.cc.
18 'direct_dependent_settings': {
24 # TODO(gregoryd): chrome_resources and chrome_strings could be
25 # shared with the 64-bit target, but it does not work due to a gyp
31 '<(DEPTH)/base/base.gyp:base',
32 '<(DEPTH)/base/base.gyp:base_i18n',
33 '<(DEPTH)/base/base.gyp:base_prefs',
34 '<(DEPTH)/base/base.gyp:base_static',
35 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
36 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
37 '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
38 '<(DEPTH)/chrome/common_constants.gyp:common_constants',
39 '<(DEPTH)/components/components.gyp:json_schema',
40 '<(DEPTH)/components/components.gyp:metrics',
41 '<(DEPTH)/components/components.gyp:policy_component_common',
42 '<(DEPTH)/components/components.gyp:translate_core_common',
43 '<(DEPTH)/components/components.gyp:variations',
44 '<(DEPTH)/content/content.gyp:content_common',
45 '<(DEPTH)/crypto/crypto.gyp:crypto',
46 '<(DEPTH)/media/cast/transport/cast_transport.gyp:cast_transport',
47 '<(DEPTH)/net/net.gyp:net',
48 '<(DEPTH)/skia/skia.gyp:skia',
49 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
50 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
51 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
52 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
53 '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
54 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
55 '<(DEPTH)/url/url.gyp:url_lib',
58 '../apps/app_shim/app_shim_launch.h',
59 '../apps/app_shim/app_shim_messages.h',
60 'common/all_messages.h',
61 'common/attrition_experiments.h',
62 'common/auto_start_linux.cc',
63 'common/auto_start_linux.h',
64 'common/autocomplete_match_type.cc',
65 'common/autocomplete_match_type.h',
66 'common/automation_constants.cc',
67 'common/automation_constants.h',
68 'common/automation_messages.h',
69 'common/automation_messages_internal.h',
70 'common/badge_util.cc',
71 'common/badge_util.h',
72 'common/child_process_logging.h',
73 'common/child_process_logging_win.cc',
74 'common/chrome_content_client.cc',
75 'common/chrome_content_client.h',
76 'common/chrome_content_client_constants.cc',
77 'common/chrome_content_client_ios.mm',
78 'common/chrome_result_codes.h',
79 'common/chrome_utility_messages.h',
80 'common/chrome_version_info.cc',
81 'common/chrome_version_info_android.cc',
82 'common/chrome_version_info_chromeos.cc',
83 'common/chrome_version_info_posix.cc',
84 'common/chrome_version_info_mac.mm',
85 'common/chrome_version_info_win.cc',
86 'common/chrome_version_info.h',
87 'common/cloud_print/cloud_print_class_mac.h',
88 'common/cloud_print/cloud_print_class_mac.mm',
89 'common/cloud_print/cloud_print_constants.cc',
90 'common/cloud_print/cloud_print_constants.h',
91 'common/cloud_print/cloud_print_helpers.cc',
92 'common/cloud_print/cloud_print_helpers.h',
93 'common/cloud_print/cloud_print_proxy_info.cc',
94 'common/cloud_print/cloud_print_proxy_info.h',
95 'common/common_message_generator.cc',
96 'common/common_message_generator.h',
97 'common/common_param_traits.cc',
98 'common/common_param_traits.h',
99 'common/common_param_traits_macros.h',
100 'common/content_restriction.h',
101 'common/content_settings.cc',
102 'common/content_settings.h',
103 'common/content_settings_helper.cc',
104 'common/content_settings_helper.h',
105 'common/content_settings_pattern.cc',
106 'common/content_settings_pattern.h',
107 'common/content_settings_pattern_parser.cc',
108 'common/content_settings_pattern_parser.h',
109 'common/content_settings_types.h',
110 'common/crash_keys.cc',
111 'common/crash_keys.h',
112 'common/custom_handlers/protocol_handler.cc',
113 'common/custom_handlers/protocol_handler.h',
114 'common/descriptors_android.h',
115 'common/encrypted_media_messages_android.h',
116 'common/extensions/api/bluetooth/bluetooth_manifest_data.cc',
117 'common/extensions/api/bluetooth/bluetooth_manifest_data.h',
118 'common/extensions/api/bluetooth/bluetooth_manifest_handler.cc',
119 'common/extensions/api/bluetooth/bluetooth_manifest_handler.h',
120 'common/extensions/api/bluetooth/bluetooth_manifest_permission.cc',
121 'common/extensions/api/bluetooth/bluetooth_manifest_permission.h',
122 'common/extensions/api/commands/commands_handler.cc',
123 'common/extensions/api/commands/commands_handler.h',
124 'common/extensions/api/extension_action/action_info.cc',
125 'common/extensions/api/extension_action/action_info.h',
126 'common/extensions/api/extension_action/browser_action_handler.cc',
127 'common/extensions/api/extension_action/browser_action_handler.h',
128 'common/extensions/api/extension_action/page_action_handler.cc',
129 'common/extensions/api/extension_action/page_action_handler.h',
130 'common/extensions/api/file_browser_handlers/file_browser_handler.cc',
131 'common/extensions/api/file_browser_handlers/file_browser_handler.h',
132 'common/extensions/api/file_handlers/file_handlers_parser.cc',
133 'common/extensions/api/file_handlers/file_handlers_parser.h',
134 'common/extensions/api/i18n/default_locale_handler.cc',
135 'common/extensions/api/i18n/default_locale_handler.h',
136 'common/extensions/api/identity/oauth2_manifest_handler.cc',
137 'common/extensions/api/identity/oauth2_manifest_handler.h',
138 'common/extensions/api/input_ime/input_components_handler.cc',
139 'common/extensions/api/input_ime/input_components_handler.h',
140 'common/extensions/api/managed_mode_private/managed_mode_handler.cc',
141 'common/extensions/api/managed_mode_private/managed_mode_handler.h',
142 'common/extensions/api/media_galleries_private/media_galleries_handler.h',
143 'common/extensions/api/media_galleries_private/media_galleries_handler.cc',
144 'common/extensions/api/omnibox/omnibox_handler.cc',
145 'common/extensions/api/omnibox/omnibox_handler.h',
146 'common/extensions/api/plugins/plugins_handler.cc',
147 'common/extensions/api/plugins/plugins_handler.h',
148 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
149 'common/extensions/api/speech/tts_engine_manifest_handler.h',
150 'common/extensions/api/spellcheck/spellcheck_handler.cc',
151 'common/extensions/api/spellcheck/spellcheck_handler.h',
152 'common/extensions/api/storage/storage_schema_manifest_handler.cc',
153 'common/extensions/api/storage/storage_schema_manifest_handler.h',
154 'common/extensions/api/system_indicator/system_indicator_handler.cc',
155 'common/extensions/api/system_indicator/system_indicator_handler.h',
156 'common/extensions/api/url_handlers/url_handlers_parser.cc',
157 'common/extensions/api/url_handlers/url_handlers_parser.h',
158 'common/extensions/api/webstore/webstore_api_constants.cc',
159 'common/extensions/api/webstore/webstore_api_constants.h',
160 'common/extensions/chrome_extension_messages.h',
161 'common/extensions/chrome_extensions_client.cc',
162 'common/extensions/chrome_extensions_client.h',
163 'common/extensions/chrome_manifest_handlers.cc',
164 'common/extensions/chrome_manifest_handlers.h',
165 'common/extensions/command.cc',
166 'common/extensions/command.h',
167 'common/extensions/dom_action_types.h',
168 'common/extensions/extension_constants.cc',
169 'common/extensions/extension_constants.h',
170 'common/extensions/extension_file_util.cc',
171 'common/extensions/extension_file_util.h',
172 'common/extensions/extension_icon_set.cc',
173 'common/extensions/extension_icon_set.h',
174 'common/extensions/extension_l10n_util.cc',
175 'common/extensions/extension_l10n_util.h',
176 'common/extensions/extension_process_policy.cc',
177 'common/extensions/extension_process_policy.h',
178 'common/extensions/features/api_feature.cc',
179 'common/extensions/features/api_feature.h',
180 'common/extensions/features/base_feature_provider.cc',
181 'common/extensions/features/base_feature_provider.h',
182 'common/extensions/features/chrome_channel_feature_filter.cc',
183 'common/extensions/features/chrome_channel_feature_filter.h',
184 'common/extensions/features/complex_feature.cc',
185 'common/extensions/features/complex_feature.h',
186 'common/extensions/features/feature_channel.cc',
187 'common/extensions/features/feature_channel.h',
188 'common/extensions/features/manifest_feature.cc',
189 'common/extensions/features/manifest_feature.h',
190 'common/extensions/features/permission_feature.cc',
191 'common/extensions/features/permission_feature.h',
192 'common/extensions/features/simple_feature.cc',
193 'common/extensions/features/simple_feature.h',
194 'common/extensions/features/simple_feature_filter.cc',
195 'common/extensions/features/simple_feature_filter.h',
196 'common/extensions/manifest_handler_helpers.cc',
197 'common/extensions/manifest_handler_helpers.h',
198 'common/extensions/manifest_handlers/app_isolation_info.cc',
199 'common/extensions/manifest_handlers/app_isolation_info.h',
200 'common/extensions/manifest_handlers/app_launch_info.cc',
201 'common/extensions/manifest_handlers/app_launch_info.h',
202 'common/extensions/manifest_handlers/content_scripts_handler.cc',
203 'common/extensions/manifest_handlers/content_scripts_handler.h',
204 'common/extensions/manifest_handlers/externally_connectable.cc',
205 'common/extensions/manifest_handlers/externally_connectable.h',
206 'common/extensions/manifest_handlers/icons_handler.cc',
207 'common/extensions/manifest_handlers/icons_handler.h',
208 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
209 'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
210 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
211 'common/extensions/manifest_handlers/nacl_modules_handler.h',
212 'common/extensions/manifest_handlers/settings_overrides_handler.cc',
213 'common/extensions/manifest_handlers/settings_overrides_handler.h',
214 'common/extensions/manifest_handlers/theme_handler.cc',
215 'common/extensions/manifest_handlers/theme_handler.h',
216 'common/extensions/manifest_handlers/ui_overrides_handler.cc',
217 'common/extensions/manifest_handlers/ui_overrides_handler.h',
218 'common/extensions/manifest_url_handler.cc',
219 'common/extensions/manifest_url_handler.h',
220 'common/extensions/message_bundle.cc',
221 'common/extensions/message_bundle.h',
222 'common/extensions/mime_types_handler.cc',
223 'common/extensions/mime_types_handler.h',
224 'common/extensions/permissions/chrome_api_permissions.cc',
225 'common/extensions/permissions/chrome_api_permissions.h',
226 'common/extensions/permissions/chrome_permission_message_provider.cc',
227 'common/extensions/permissions/chrome_permission_message_provider.h',
228 'common/extensions/sync_helper.cc',
229 'common/extensions/sync_helper.h',
230 'common/extensions/update_manifest.cc',
231 'common/extensions/update_manifest.h',
232 'common/extensions/value_counter.cc',
233 'common/extensions/value_counter.h',
234 'common/favicon/favicon_types.cc',
235 'common/favicon/favicon_types.h',
236 'common/favicon/favicon_url_parser.cc',
237 'common/favicon/favicon_url_parser.h',
238 'common/profile_management_switches.cc',
239 'common/profile_management_switches.h',
240 'common/icon_with_badge_image_source.cc',
241 'common/icon_with_badge_image_source.h',
242 'common/importer/firefox_importer_utils.cc',
243 'common/importer/firefox_importer_utils.h',
244 'common/importer/firefox_importer_utils_linux.cc',
245 'common/importer/firefox_importer_utils_mac.mm',
246 'common/importer/firefox_importer_utils_win.cc',
247 'common/importer/ie_importer_test_registry_overrider_win.cc',
248 'common/importer/ie_importer_test_registry_overrider_win.h',
249 'common/importer/ie_importer_utils_win.cc',
250 'common/importer/ie_importer_utils_win.h',
251 'common/importer/imported_bookmark_entry.cc',
252 'common/importer/imported_bookmark_entry.h',
253 'common/importer/imported_favicon_usage.cc',
254 'common/importer/imported_favicon_usage.h',
255 'common/importer/importer_bridge.cc',
256 'common/importer/importer_bridge.h',
257 'common/importer/importer_data_types.cc',
258 'common/importer/importer_data_types.h',
259 'common/importer/importer_type.h',
260 'common/importer/importer_url_row.cc',
261 'common/importer/importer_url_row.h',
262 'common/importer/profile_import_process_messages.cc',
263 'common/importer/profile_import_process_messages.h',
264 'common/importer/safari_importer_utils.h',
265 'common/importer/safari_importer_utils.mm',
266 'common/instant_restricted_id_cache.h',
267 'common/instant_types.cc',
268 'common/instant_types.h',
269 'common/localized_error.cc',
270 'common/localized_error.h',
271 'common/local_discovery/service_discovery_client.cc',
272 'common/local_discovery/service_discovery_client.h',
273 'common/logging_chrome.cc',
274 'common/logging_chrome.h',
275 'common/mac/app_mode_common.h',
276 'common/mac/app_mode_common.mm',
277 'common/mac/cfbundle_blocker.h',
278 'common/mac/cfbundle_blocker.mm',
279 'common/mac/launchd.h',
280 'common/mac/launchd.mm',
281 'common/mac/objc_method_swizzle.h',
282 'common/mac/objc_method_swizzle.mm',
283 'common/mac/objc_zombie.h',
284 'common/mac/objc_zombie.mm',
285 'common/media/webrtc_logging_messages.h',
286 'common/metrics/caching_permuted_entropy_provider.cc',
287 'common/metrics/caching_permuted_entropy_provider.h',
288 'common/metrics/metrics_log_base.cc',
289 'common/metrics/metrics_log_base.h',
290 'common/metrics/metrics_log_manager.cc',
291 'common/metrics/metrics_log_manager.h',
292 'common/metrics/metrics_service_base.cc',
293 'common/metrics/metrics_service_base.h',
294 'common/metrics/variations/experiment_labels.cc',
295 'common/metrics/variations/experiment_labels.h',
296 'common/metrics/variations/uniformity_field_trials.cc',
297 'common/metrics/variations/uniformity_field_trials.h',
298 'common/metrics/variations/variations_util.cc',
299 'common/metrics/variations/variations_util.h',
300 'common/multi_process_lock.h',
301 'common/multi_process_lock_linux.cc',
302 'common/multi_process_lock_mac.cc',
303 'common/multi_process_lock_win.cc',
304 'common/omnibox_focus_state.h',
305 'common/partial_circular_buffer.cc',
306 'common/partial_circular_buffer.h',
307 'common/pepper_flash.cc',
308 'common/pepper_flash.h',
309 'common/pepper_permission_util.cc',
310 'common/pepper_permission_util.h',
311 'common/pref_names_util.cc',
312 'common/pref_names_util.h',
313 'common/prerender_types.h',
314 'common/print_messages.cc',
315 'common/print_messages.h',
316 'common/profiling.cc',
317 'common/profiling.h',
318 'common/ref_counted_util.h',
319 'common/render_messages.cc',
320 'common/render_messages.h',
321 'common/safe_browsing/download_protection_util.cc',
322 'common/safe_browsing/download_protection_util.h',
323 'common/safe_browsing/safebrowsing_messages.h',
324 'common/safe_browsing/zip_analyzer.cc',
325 'common/safe_browsing/zip_analyzer.h',
326 'common/search_provider.h',
327 'common/search_types.h',
328 'common/search_urls.cc',
329 'common/search_urls.h',
330 'common/service_messages.h',
331 'common/service_process_util.cc',
332 'common/service_process_util.h',
333 'common/service_process_util_linux.cc',
334 'common/service_process_util_mac.mm',
335 'common/service_process_util_posix.cc',
336 'common/service_process_util_posix.h',
337 'common/service_process_util_win.cc',
338 'common/spellcheck_common.cc',
339 'common/spellcheck_common.h',
340 'common/spellcheck_marker.h',
341 'common/spellcheck_messages.h',
342 'common/spellcheck_result.h',
343 'common/switch_utils.cc',
344 'common/switch_utils.h',
345 'common/thumbnail_score.cc',
346 'common/thumbnail_score.h',
347 'common/tts_messages.h',
348 'common/tts_utterance_request.cc',
349 'common/tts_utterance_request.h',
350 'common/url_constants.cc',
351 'common/url_constants.h',
352 'common/web_application_info.cc',
353 'common/web_application_info.h',
354 'common/worker_thread_ticker.cc',
355 'common/worker_thread_ticker.h',
358 ['enable_extensions==1', {
360 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
361 '../device/usb/usb.gyp:device_usb',
363 }, { # enable_extensions == 0
365 ['exclude', '^common/extensions/api/'],
366 ['include', 'common/extensions/api/extension_action/action_info.cc'],
367 ['include', 'common/extensions/api/extension_action/action_info.h'],
368 ['include', 'common/extensions/api/i18n/default_locale_handler.cc'],
369 ['include', 'common/extensions/api/i18n/default_locale_handler.h'],
370 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.cc'],
371 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.h'],
372 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.cc'],
373 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.h'],
374 ['include', 'common/extensions/api/plugins/plugins_handler.cc'],
375 ['include', 'common/extensions/api/plugins/plugins_handler.h'],
376 ['include', 'common/extensions/api/storage/storage_schema_manifest_handler.cc'],
377 ['include', 'common/extensions/api/storage/storage_schema_manifest_handler.h'],
380 ['OS=="win" or OS=="mac"', {
382 'common/extensions/api/networking_private/networking_private_crypto.cc',
383 'common/extensions/api/networking_private/networking_private_crypto.h',
384 'common/media_galleries/itunes_library.cc',
385 'common/media_galleries/itunes_library.h',
386 'common/media_galleries/picasa_types.cc',
387 'common/media_galleries/picasa_types.h',
388 'common/media_galleries/pmp_constants.h',
393 'common/media_galleries/iphoto_library.cc',
394 'common/media_galleries/iphoto_library.h',
399 '<(DEPTH)/apps/common/api/api.gyp:apps_api',
400 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
401 '<(DEPTH)/components/components.gyp:autofill_core_common',
402 '<(DEPTH)/components/components.gyp:autofill_content_common',
403 '<(DEPTH)/components/components.gyp:password_manager_core_common',
404 '<(DEPTH)/components/components.gyp:signin_core_common',
405 '<(DEPTH)/components/nacl.gyp:nacl_common',
406 '<(DEPTH)/components/components.gyp:visitedlink_common',
407 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
408 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
409 '<(DEPTH)/ipc/ipc.gyp:ipc',
410 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
411 '<(DEPTH)/third_party/re2/re2.gyp:re2',
412 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
414 'export_dependent_settings': [
415 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
419 ['exclude', '^common/child_process_'],
420 ['exclude', '^common/chrome_content_client\\.cc$'],
421 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
422 ['exclude', '^common/common_message_generator\\.cc$'],
423 ['exclude', '^common/common_param_traits'],
424 ['exclude', '^common/custom_handlers/'],
425 ['exclude', '^common/extensions/'],
426 ['exclude', '^common/logging_chrome\\.'],
427 ['exclude', '^common/multi_process_'],
428 ['exclude', '^common/nacl_'],
429 ['exclude', '^common/pepper_flash\\.'],
430 ['exclude', '^common/profiling\\.'],
431 ['exclude', '^common/service_process_util_'],
432 ['exclude', '^common/spellcheck_'],
433 ['exclude', '^common/validation_message_'],
434 ['exclude', '^common/web_apps\\.'],
435 # TODO(ios): Include files here as they are made to work; once
436 # everything is online, remove everything below here and just
437 # use the exclusions above.
438 ['exclude', '\\.(cc|mm)$'],
439 ['include', '_ios\\.(cc|mm)$'],
440 ['include', '(^|/)ios/'],
441 ['include', '^common/chrome_version_info\\.cc$'],
442 ['include', '^common/translate'],
443 ['include', '^common/zip'],
446 '<(DEPTH)/breakpad/src',
449 ['enable_printing!=0', {
451 '<(DEPTH)/printing/printing.gyp:printing',
456 ['exclude', '^common/chrome_version_info_posix.cc'],
457 ['exclude', '^common/importer/'],
458 ['include', '^common/importer/imported_favicon_usage.cc$'],
459 ['include', '^common/importer/imported_favicon_usage.h$'],
460 ['exclude', '^common/service_'],
463 'common/badge_util.cc',
464 'common/extensions/api/extension_action/browser_action_handler.cc',
465 'common/extensions/api/extension_action/page_action_handler.cc',
466 'common/extensions/api/spellcheck/spellcheck_handler.cc',
467 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
468 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
469 'common/icon_with_badge_image_source.cc',
470 'common/net/url_util.cc',
471 'common/spellcheck_common.cc',
476 '<(DEPTH)/breakpad/src',
477 '<(DEPTH)/third_party/wtl/include',
480 ['enable_mdns == 1', {
482 'common/local_discovery/local_discovery_messages.h',
485 ['toolkit_uses_gtk == 1', {
487 '../build/linux/system.gyp:gtk',
488 '../build/linux/system.gyp:x11',
489 '../build/linux/system.gyp:xrender',
490 '../build/linux/system.gyp:xext',
492 'export_dependent_settings': [
493 '../third_party/sqlite/sqlite.gyp:sqlite',
498 'common/chrome_version_info_linux.cc',
503 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
504 '../third_party/mach_override/mach_override.gyp:mach_override',
507 '<(DEPTH)/breakpad/src',
510 'common/child_process_logging_posix.cc',
511 'common/chrome_version_info_posix.cc',
516 '../remoting/remoting.gyp:remoting_client_plugin',
519 ['enable_automation==0', {
521 ['exclude', '^common/automation_']
524 ['enable_plugins==0', {
526 'common/pepper_permission_util.cc',
529 ['enable_webrtc==0', {
531 'common/media/webrtc_logging_messages.h',
534 ['enable_printing==0', {
536 'common/print_messages.cc',
537 'common/print_messages.h',
540 ['configuration_policy==1', {
542 '<(DEPTH)/components/components.gyp:policy',
546 'target_conditions': [
549 # Pull in specific Mac files for iOS (which have been filtered out
550 # by file name rules).
551 ['include', '^common/chrome_version_info_mac\\.mm$'],
555 'export_dependent_settings': [
556 '../base/base.gyp:base',
561 'target_name': 'common_version',
564 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
565 'direct_dependent_settings': {
567 '<(SHARED_INTERMEDIATE_DIR)',
570 # Because posix_version generates a header, we must set the
571 # hard_dependency flag.
572 'hard_dependency': 1,
575 'action_name': 'posix_version',
577 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
578 'version_py_path': '<(DEPTH)/build/util/version.py',
579 'version_path': 'VERSION',
580 'template_input_path': 'common/chrome_version_info_posix.h.version',
583 [ 'branding == "Chrome"', {
586 'app/theme/google_chrome/BRANDING',
588 }, { # else branding!="Chrome"
591 'app/theme/chromium/BRANDING',
596 '<(template_input_path)',
599 '<(lastchange_path)',
602 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
606 '<(version_py_path)',
607 '-f', '<(version_path)',
608 '-f', '<(branding_path)',
609 '-f', '<(lastchange_path)',
610 '<(template_input_path)',
613 'message': 'Generating version information',
620 'target_name': 'common_net',
621 'type': 'static_library',
623 'common/net/net_error_info.cc',
624 'common/net/net_error_info.h',
625 'common/net/net_resource_provider.cc',
626 'common/net/net_resource_provider.h',
627 'common/net/predictor_common.h',
628 'common/net/url_fixer_upper.cc',
629 'common/net/url_fixer_upper.h',
630 'common/net/url_util.cc',
631 'common/net/url_util.h',
632 'common/net/x509_certificate_model.cc',
633 'common/net/x509_certificate_model_nss.cc',
634 'common/net/x509_certificate_model_openssl.cc',
635 'common/net/x509_certificate_model.h',
638 '<(DEPTH)/base/base.gyp:base',
639 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
640 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
641 '<(DEPTH)/crypto/crypto.gyp:crypto',
642 '<(DEPTH)/net/net.gyp:net_resources',
643 '<(DEPTH)/net/net.gyp:net',
644 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
645 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
650 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
654 'common/net/net_resource_provider.cc',
655 'common/net/x509_certificate_model.cc',
658 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
660 '../build/linux/system.gyp:ssl',
664 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
666 'common/net/x509_certificate_model_nss.cc',
667 'common/net/x509_certificate_model_openssl.cc',
671 ['OS == "android"', {
673 '../third_party/openssl/openssl.gyp:openssl',
676 'common/net/x509_certificate_model.cc',
681 # networking_private_crypto.cc uses NSS functions.
682 'common/extensions/api/networking_private/networking_private_crypto.cc',
683 'common/net/x509_certificate_model_nss.cc',
686 { # else !use_openssl: remove the unneeded files
688 'common/net/x509_certificate_model_openssl.cc',
693 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
694 'msvs_disabled_warnings': [4267, ],
700 # Protobuf compiler / generator for the safebrowsing client
701 # model proto and the client-side detection (csd) request
703 'target_name': 'safe_browsing_proto',
704 'type': 'static_library',
706 'common/safe_browsing/client_model.proto',
707 'common/safe_browsing/crx_info.proto',
708 'common/safe_browsing/csd.proto'
711 'proto_in_dir': 'common/safe_browsing',
712 'proto_out_dir': 'chrome/common/safe_browsing',
714 'includes': [ '../build/protoc.gypi' ],
717 # Protobuf compiler / generator for UMA (User Metrics Analysis).
718 'target_name': 'metrics_proto',
719 'type': 'static_library',
721 'common/metrics/proto/chrome_experiments.proto',
722 'common/metrics/proto/chrome_user_metrics_extension.proto',
723 'common/metrics/proto/histogram_event.proto',
724 'common/metrics/proto/omnibox_event.proto',
725 'common/metrics/proto/perf_data.proto',
726 'common/metrics/proto/permuted_entropy_cache.proto',
727 'common/metrics/proto/profiler_event.proto',
728 'common/metrics/proto/system_profile.proto',
729 'common/metrics/proto/user_action_event.proto',
732 'proto_in_dir': 'common/metrics/proto',
733 'proto_out_dir': 'chrome/common/metrics/proto',
735 'includes': [ '../build/protoc.gypi' ],