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:cloud_devices_common',
40 '<(DEPTH)/components/components.gyp:json_schema',
41 '<(DEPTH)/components/components.gyp:metrics',
42 '<(DEPTH)/components/components.gyp:policy_component_common',
43 '<(DEPTH)/components/components.gyp:translate_core_common',
44 '<(DEPTH)/components/components.gyp:variations',
45 '<(DEPTH)/content/content.gyp:content_common',
46 '<(DEPTH)/crypto/crypto.gyp:crypto',
47 '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
48 '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
49 '<(DEPTH)/media/cast/cast.gyp:cast_transport',
50 '<(DEPTH)/net/net.gyp:net',
51 '<(DEPTH)/skia/skia.gyp:skia',
52 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
53 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
54 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
55 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
56 '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
57 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
58 '<(DEPTH)/url/url.gyp:url_lib',
61 '../apps/app_shim/app_shim_launch.h',
62 '../apps/app_shim/app_shim_messages.h',
63 'common/all_messages.h',
64 'common/attrition_experiments.h',
65 'common/auto_start_linux.cc',
66 'common/auto_start_linux.h',
67 'common/autocomplete_match_type.cc',
68 'common/autocomplete_match_type.h',
69 'common/badge_util.cc',
70 'common/badge_util.h',
71 'common/child_process_logging.h',
72 'common/child_process_logging_win.cc',
73 'common/chrome_content_client.cc',
74 'common/chrome_content_client.h',
75 'common/chrome_content_client_constants.cc',
76 'common/chrome_content_client_ios.mm',
77 'common/chrome_result_codes.h',
78 'common/chrome_utility_messages.h',
79 'common/chrome_version_info.cc',
80 'common/chrome_version_info_android.cc',
81 'common/chrome_version_info_chromeos.cc',
82 'common/chrome_version_info_posix.cc',
83 'common/chrome_version_info_mac.mm',
84 'common/chrome_version_info_win.cc',
85 'common/chrome_version_info.h',
86 'common/cloud_print/cloud_print_class_mac.h',
87 'common/cloud_print/cloud_print_class_mac.mm',
88 'common/cloud_print/cloud_print_constants.cc',
89 'common/cloud_print/cloud_print_constants.h',
90 'common/cloud_print/cloud_print_helpers.cc',
91 'common/cloud_print/cloud_print_helpers.h',
92 'common/cloud_print/cloud_print_proxy_info.cc',
93 'common/cloud_print/cloud_print_proxy_info.h',
94 'common/common_message_generator.cc',
95 'common/common_message_generator.h',
96 'common/common_param_traits.cc',
97 'common/common_param_traits.h',
98 'common/common_param_traits_macros.h',
99 'common/content_restriction.h',
100 'common/content_settings.cc',
101 'common/content_settings.h',
102 'common/content_settings_helper.cc',
103 'common/content_settings_helper.h',
104 'common/content_settings_pattern.cc',
105 'common/content_settings_pattern.h',
106 'common/content_settings_pattern_parser.cc',
107 'common/content_settings_pattern_parser.h',
108 'common/content_settings_types.h',
109 'common/crash_keys.cc',
110 'common/crash_keys.h',
111 'common/custom_handlers/protocol_handler.cc',
112 'common/custom_handlers/protocol_handler.h',
113 'common/descriptors_android.h',
114 'common/extensions/api/bluetooth/bluetooth_manifest_data.cc',
115 'common/extensions/api/bluetooth/bluetooth_manifest_data.h',
116 'common/extensions/api/bluetooth/bluetooth_manifest_handler.cc',
117 'common/extensions/api/bluetooth/bluetooth_manifest_handler.h',
118 'common/extensions/api/bluetooth/bluetooth_manifest_permission.cc',
119 'common/extensions/api/bluetooth/bluetooth_manifest_permission.h',
120 'common/extensions/api/commands/commands_handler.cc',
121 'common/extensions/api/commands/commands_handler.h',
122 'common/extensions/api/extension_action/action_info.cc',
123 'common/extensions/api/extension_action/action_info.h',
124 'common/extensions/api/extension_action/browser_action_handler.cc',
125 'common/extensions/api/extension_action/browser_action_handler.h',
126 'common/extensions/api/extension_action/page_action_handler.cc',
127 'common/extensions/api/extension_action/page_action_handler.h',
128 'common/extensions/api/file_browser_handlers/file_browser_handler.cc',
129 'common/extensions/api/file_browser_handlers/file_browser_handler.h',
130 'common/extensions/api/file_handlers/file_handlers_parser.cc',
131 'common/extensions/api/file_handlers/file_handlers_parser.h',
132 'common/extensions/api/i18n/default_locale_handler.cc',
133 'common/extensions/api/i18n/default_locale_handler.h',
134 'common/extensions/api/identity/oauth2_manifest_handler.cc',
135 'common/extensions/api/identity/oauth2_manifest_handler.h',
136 'common/extensions/api/input_ime/input_components_handler.cc',
137 'common/extensions/api/input_ime/input_components_handler.h',
138 'common/extensions/api/managed_mode_private/managed_mode_handler.cc',
139 'common/extensions/api/managed_mode_private/managed_mode_handler.h',
140 'common/extensions/api/media_galleries_private/media_galleries_handler.h',
141 'common/extensions/api/media_galleries_private/media_galleries_handler.cc',
142 'common/extensions/api/omnibox/omnibox_handler.cc',
143 'common/extensions/api/omnibox/omnibox_handler.h',
144 'common/extensions/api/plugins/plugins_handler.cc',
145 'common/extensions/api/plugins/plugins_handler.h',
146 'common/extensions/api/speech/tts_engine_manifest_handler.cc',
147 'common/extensions/api/speech/tts_engine_manifest_handler.h',
148 'common/extensions/api/spellcheck/spellcheck_handler.cc',
149 'common/extensions/api/spellcheck/spellcheck_handler.h',
150 'common/extensions/api/storage/storage_schema_manifest_handler.cc',
151 'common/extensions/api/storage/storage_schema_manifest_handler.h',
152 'common/extensions/api/system_indicator/system_indicator_handler.cc',
153 'common/extensions/api/system_indicator/system_indicator_handler.h',
154 'common/extensions/api/url_handlers/url_handlers_parser.cc',
155 'common/extensions/api/url_handlers/url_handlers_parser.h',
156 'common/extensions/api/webstore/webstore_api_constants.cc',
157 'common/extensions/api/webstore/webstore_api_constants.h',
158 'common/extensions/chrome_extension_messages.h',
159 'common/extensions/chrome_extensions_client.cc',
160 'common/extensions/chrome_extensions_client.h',
161 'common/extensions/chrome_manifest_handlers.cc',
162 'common/extensions/chrome_manifest_handlers.h',
163 'common/extensions/command.cc',
164 'common/extensions/command.h',
165 'common/extensions/extension_constants.cc',
166 'common/extensions/extension_constants.h',
167 'common/extensions/extension_file_util.cc',
168 'common/extensions/extension_file_util.h',
169 'common/extensions/extension_process_policy.cc',
170 'common/extensions/extension_process_policy.h',
171 'common/extensions/features/chrome_channel_feature_filter.cc',
172 'common/extensions/features/chrome_channel_feature_filter.h',
173 'common/extensions/features/feature_channel.cc',
174 'common/extensions/features/feature_channel.h',
175 'common/extensions/file_handler_info.cc',
176 'common/extensions/file_handler_info.h',
177 'common/extensions/manifest_handlers/app_isolation_info.cc',
178 'common/extensions/manifest_handlers/app_isolation_info.h',
179 'common/extensions/manifest_handlers/app_launch_info.cc',
180 'common/extensions/manifest_handlers/app_launch_info.h',
181 'common/extensions/manifest_handlers/automation.h',
182 'common/extensions/manifest_handlers/automation.cc',
183 'common/extensions/manifest_handlers/content_scripts_handler.cc',
184 'common/extensions/manifest_handlers/content_scripts_handler.h',
185 'common/extensions/manifest_handlers/mime_types_handler.cc',
186 'common/extensions/manifest_handlers/mime_types_handler.h',
187 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
188 'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
189 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
190 'common/extensions/manifest_handlers/nacl_modules_handler.h',
191 'common/extensions/manifest_handlers/settings_overrides_handler.cc',
192 'common/extensions/manifest_handlers/settings_overrides_handler.h',
193 'common/extensions/manifest_handlers/theme_handler.cc',
194 'common/extensions/manifest_handlers/theme_handler.h',
195 'common/extensions/manifest_handlers/ui_overrides_handler.cc',
196 'common/extensions/manifest_handlers/ui_overrides_handler.h',
197 'common/extensions/manifest_url_handler.cc',
198 'common/extensions/manifest_url_handler.h',
199 'common/extensions/permissions/chrome_api_permissions.cc',
200 'common/extensions/permissions/chrome_api_permissions.h',
201 'common/extensions/permissions/chrome_permission_message_provider.cc',
202 'common/extensions/permissions/chrome_permission_message_provider.h',
203 'common/extensions/sync_helper.cc',
204 'common/extensions/sync_helper.h',
205 'common/extensions/update_manifest.cc',
206 'common/extensions/update_manifest.h',
207 'common/favicon/favicon_url_parser.cc',
208 'common/favicon/favicon_url_parser.h',
209 'common/icon_with_badge_image_source.cc',
210 'common/icon_with_badge_image_source.h',
211 'common/importer/firefox_importer_utils.cc',
212 'common/importer/firefox_importer_utils.h',
213 'common/importer/firefox_importer_utils_linux.cc',
214 'common/importer/firefox_importer_utils_mac.mm',
215 'common/importer/firefox_importer_utils_win.cc',
216 'common/importer/ie_importer_test_registry_overrider_win.cc',
217 'common/importer/ie_importer_test_registry_overrider_win.h',
218 'common/importer/ie_importer_utils_win.cc',
219 'common/importer/ie_importer_utils_win.h',
220 'common/importer/imported_bookmark_entry.cc',
221 'common/importer/imported_bookmark_entry.h',
222 'common/importer/imported_favicon_usage.cc',
223 'common/importer/imported_favicon_usage.h',
224 'common/importer/importer_bridge.cc',
225 'common/importer/importer_bridge.h',
226 'common/importer/importer_data_types.cc',
227 'common/importer/importer_data_types.h',
228 'common/importer/importer_type.h',
229 'common/importer/importer_url_row.cc',
230 'common/importer/importer_url_row.h',
231 'common/importer/profile_import_process_messages.cc',
232 'common/importer/profile_import_process_messages.h',
233 'common/importer/safari_importer_utils.h',
234 'common/importer/safari_importer_utils.mm',
235 'common/instant_restricted_id_cache.h',
236 'common/instant_types.cc',
237 'common/instant_types.h',
238 'common/localized_error.cc',
239 'common/localized_error.h',
240 'common/logging_chrome.cc',
241 'common/logging_chrome.h',
242 'common/mac/app_mode_common.h',
243 'common/mac/app_mode_common.mm',
244 'common/mac/cfbundle_blocker.h',
245 'common/mac/cfbundle_blocker.mm',
246 'common/mac/launchd.h',
247 'common/mac/launchd.mm',
248 'common/mac/objc_method_swizzle.h',
249 'common/mac/objc_method_swizzle.mm',
250 'common/mac/objc_zombie.h',
251 'common/mac/objc_zombie.mm',
252 'common/media/webrtc_logging_messages.h',
253 'common/media/webrtc_logging_message_data.cc',
254 'common/media/webrtc_logging_message_data.h',
255 'common/media_galleries/metadata_types.h',
256 'common/metrics/caching_permuted_entropy_provider.cc',
257 'common/metrics/caching_permuted_entropy_provider.h',
258 'common/metrics/metrics_service_base.cc',
259 'common/metrics/metrics_service_base.h',
260 'common/metrics/variations/experiment_labels.cc',
261 'common/metrics/variations/experiment_labels.h',
262 'common/metrics/variations/uniformity_field_trials.cc',
263 'common/metrics/variations/uniformity_field_trials.h',
264 'common/metrics/variations/variations_util.cc',
265 'common/metrics/variations/variations_util.h',
266 'common/multi_process_lock.h',
267 'common/multi_process_lock_linux.cc',
268 'common/multi_process_lock_mac.cc',
269 'common/multi_process_lock_win.cc',
270 'common/omnibox_focus_state.h',
271 'common/partial_circular_buffer.cc',
272 'common/partial_circular_buffer.h',
273 'common/pepper_flash.cc',
274 'common/pepper_flash.h',
275 'common/pepper_permission_util.cc',
276 'common/pepper_permission_util.h',
277 'common/pref_names_util.cc',
278 'common/pref_names_util.h',
279 'common/prerender_types.h',
280 'common/print_messages.cc',
281 'common/print_messages.h',
282 'common/profiling.cc',
283 'common/profiling.h',
284 'common/ref_counted_util.h',
285 'common/render_messages.cc',
286 'common/render_messages.h',
287 'common/safe_browsing/download_protection_util.cc',
288 'common/safe_browsing/download_protection_util.h',
289 'common/safe_browsing/safebrowsing_messages.h',
290 'common/safe_browsing/zip_analyzer.cc',
291 'common/safe_browsing/zip_analyzer.h',
292 'common/search_provider.h',
293 'common/search_types.h',
294 'common/search_urls.cc',
295 'common/search_urls.h',
296 'common/service_messages.h',
297 'common/service_process_util.cc',
298 'common/service_process_util.h',
299 'common/service_process_util_linux.cc',
300 'common/service_process_util_mac.mm',
301 'common/service_process_util_posix.cc',
302 'common/service_process_util_posix.h',
303 'common/service_process_util_win.cc',
304 'common/spellcheck_common.cc',
305 'common/spellcheck_common.h',
306 'common/spellcheck_marker.h',
307 'common/spellcheck_messages.h',
308 'common/spellcheck_result.h',
309 'common/switch_utils.cc',
310 'common/switch_utils.h',
311 'common/thumbnail_score.cc',
312 'common/thumbnail_score.h',
313 'common/tts_messages.h',
314 'common/tts_utterance_request.cc',
315 'common/tts_utterance_request.h',
316 'common/url_constants.cc',
317 'common/url_constants.h',
318 'common/web_application_info.cc',
319 'common/web_application_info.h',
320 'common/worker_thread_ticker.cc',
321 'common/worker_thread_ticker.h',
324 ['enable_extensions==1', {
326 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
327 '../device/usb/usb.gyp:device_usb',
329 }, { # enable_extensions == 0
331 ['exclude', '^common/extensions/api/'],
332 ['include', 'common/extensions/api/extension_action/action_info.cc'],
333 ['include', 'common/extensions/api/extension_action/action_info.h'],
334 ['include', 'common/extensions/api/i18n/default_locale_handler.cc'],
335 ['include', 'common/extensions/api/i18n/default_locale_handler.h'],
336 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.cc'],
337 ['include', 'common/extensions/api/identity/oauth2_manifest_handler.h'],
338 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.cc'],
339 ['include', 'common/extensions/api/managed_mode_private/managed_mode_handler.h'],
340 ['include', 'common/extensions/api/plugins/plugins_handler.cc'],
341 ['include', 'common/extensions/api/plugins/plugins_handler.h'],
342 ['include', 'common/extensions/api/storage/storage_schema_manifest_handler.cc'],
343 ['include', 'common/extensions/api/storage/storage_schema_manifest_handler.h'],
346 ['OS=="win" or OS=="mac"', {
348 'common/extensions/api/networking_private/networking_private_crypto.cc',
349 'common/extensions/api/networking_private/networking_private_crypto.h',
350 'common/media_galleries/itunes_library.cc',
351 'common/media_galleries/itunes_library.h',
352 'common/media_galleries/picasa_types.cc',
353 'common/media_galleries/picasa_types.h',
354 'common/media_galleries/pmp_constants.h',
359 'common/media_galleries/iphoto_library.cc',
360 'common/media_galleries/iphoto_library.h',
365 '<(DEPTH)/apps/common/api/api.gyp:apps_api',
366 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
367 '<(DEPTH)/components/components.gyp:autofill_core_common',
368 '<(DEPTH)/components/components.gyp:autofill_content_common',
369 '<(DEPTH)/components/components.gyp:password_manager_core_common',
370 '<(DEPTH)/components/components.gyp:signin_core_common',
371 '<(DEPTH)/components/components.gyp:translate_content_common',
372 '<(DEPTH)/components/nacl.gyp:nacl_common',
373 '<(DEPTH)/components/components.gyp:visitedlink_common',
374 '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
375 '<(DEPTH)/extensions/extensions.gyp:extensions_common',
376 '<(DEPTH)/ipc/ipc.gyp:ipc',
377 '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
378 '<(DEPTH)/third_party/re2/re2.gyp:re2',
379 '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
381 'export_dependent_settings': [
382 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
386 ['exclude', '^common/child_process_'],
387 ['exclude', '^common/chrome_content_client\\.cc$'],
388 ['exclude', '^common/chrome_version_info_posix\\.cc$'],
389 ['exclude', '^common/common_message_generator\\.cc$'],
390 ['exclude', '^common/common_param_traits'],
391 ['exclude', '^common/custom_handlers/'],
392 ['exclude', '^common/extensions/'],
393 ['exclude', '^common/logging_chrome\\.'],
394 ['exclude', '^common/media_galleries/'],
395 ['exclude', '^common/multi_process_'],
396 ['exclude', '^common/nacl_'],
397 ['exclude', '^common/pepper_flash\\.'],
398 ['exclude', '^common/profiling\\.'],
399 ['exclude', '^common/service_process_util_'],
400 ['exclude', '^common/spellcheck_'],
401 ['exclude', '^common/validation_message_'],
402 ['exclude', '^common/web_apps\\.'],
403 # TODO(ios): Include files here as they are made to work; once
404 # everything is online, remove everything below here and just
405 # use the exclusions above.
406 ['exclude', '\\.(cc|mm)$'],
407 ['include', '_ios\\.(cc|mm)$'],
408 ['include', '(^|/)ios/'],
409 ['include', '^common/chrome_version_info\\.cc$'],
410 ['include', '^common/translate'],
411 ['include', '^common/zip'],
414 '<(DEPTH)/breakpad/src',
417 ['enable_printing!=0', {
419 '<(DEPTH)/printing/printing.gyp:printing',
422 ['enable_service_discovery==1', {
424 'common/local_discovery/service_discovery_client.cc',
425 'common/local_discovery/service_discovery_client.h',
430 'common/local_discovery/service_discovery_client_impl.cc',
431 'common/local_discovery/service_discovery_client_impl.h',
436 ['exclude', '^common/chrome_version_info_posix.cc'],
437 ['exclude', '^common/importer/'],
438 ['include', '^common/importer/imported_favicon_usage.cc$'],
439 ['include', '^common/importer/imported_favicon_usage.h$'],
440 ['exclude', '^common/media_galleries/'],
441 ['exclude', '^common/service_'],
444 'common/badge_util.cc',
445 'common/extensions/api/extension_action/browser_action_handler.cc',
446 'common/extensions/api/extension_action/page_action_handler.cc',
447 'common/extensions/api/spellcheck/spellcheck_handler.cc',
448 'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
449 'common/extensions/manifest_handlers/nacl_modules_handler.cc',
450 'common/icon_with_badge_image_source.cc',
451 'common/net/url_util.cc',
452 'common/spellcheck_common.cc',
457 '<(DEPTH)/breakpad/src',
458 '<(DEPTH)/third_party/wtl/include',
461 ['enable_mdns == 1', {
463 'common/local_discovery/local_discovery_messages.h',
468 'common/chrome_version_info_linux.cc',
473 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
474 '../third_party/mach_override/mach_override.gyp:mach_override',
477 '<(DEPTH)/breakpad/src',
480 'common/child_process_logging_posix.cc',
481 'common/chrome_version_info_posix.cc',
486 '../remoting/remoting.gyp:remoting_client_plugin',
489 ['enable_plugins==0', {
491 'common/pepper_permission_util.cc',
494 ['enable_webrtc==0', {
496 'common/media/webrtc_logging_messages.h',
499 ['enable_printing==0', {
501 'common/print_messages.cc',
502 'common/print_messages.h',
505 ['configuration_policy==1', {
507 '<(DEPTH)/components/components.gyp:policy',
511 'target_conditions': [
514 # Pull in specific Mac files for iOS (which have been filtered out
515 # by file name rules).
516 ['include', '^common/chrome_version_info_mac\\.mm$'],
520 'export_dependent_settings': [
521 '../base/base.gyp:base',
526 'target_name': 'common_version',
529 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
530 'direct_dependent_settings': {
532 '<(SHARED_INTERMEDIATE_DIR)',
535 # Because posix_version generates a header, we must set the
536 # hard_dependency flag.
537 'hard_dependency': 1,
540 'action_name': 'posix_version',
542 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
543 'version_py_path': '<(DEPTH)/build/util/version.py',
544 'version_path': 'VERSION',
545 'template_input_path': 'common/chrome_version_info_posix.h.version',
548 [ 'branding == "Chrome"', {
551 'app/theme/google_chrome/BRANDING',
553 }, { # else branding!="Chrome"
556 'app/theme/chromium/BRANDING',
561 '<(template_input_path)',
564 '<(lastchange_path)',
567 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
571 '<(version_py_path)',
572 '-f', '<(version_path)',
573 '-f', '<(branding_path)',
574 '-f', '<(lastchange_path)',
575 '<(template_input_path)',
578 'message': 'Generating version information',
585 'target_name': 'common_net',
586 'type': 'static_library',
588 'common/net/net_error_info.cc',
589 'common/net/net_error_info.h',
590 'common/net/net_resource_provider.cc',
591 'common/net/net_resource_provider.h',
592 'common/net/predictor_common.h',
593 'common/net/url_fixer_upper.cc',
594 'common/net/url_fixer_upper.h',
595 'common/net/url_util.cc',
596 'common/net/url_util.h',
597 'common/net/x509_certificate_model.cc',
598 'common/net/x509_certificate_model_nss.cc',
599 'common/net/x509_certificate_model_openssl.cc',
600 'common/net/x509_certificate_model.h',
603 '<(DEPTH)/base/base.gyp:base',
604 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
605 '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
606 '<(DEPTH)/crypto/crypto.gyp:crypto',
607 '<(DEPTH)/net/net.gyp:net_resources',
608 '<(DEPTH)/net/net.gyp:net',
609 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
610 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
615 '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
619 'common/net/net_resource_provider.cc',
620 'common/net/x509_certificate_model.cc',
623 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
625 '../build/linux/system.gyp:ssl',
629 ['os_posix != 1 or OS == "mac" or OS == "ios"', {
631 'common/net/x509_certificate_model_nss.cc',
632 'common/net/x509_certificate_model_openssl.cc',
636 ['OS == "android"', {
638 '../third_party/openssl/openssl.gyp:openssl',
641 'common/net/x509_certificate_model.cc',
646 # networking_private_crypto.cc uses NSS functions.
647 'common/extensions/api/networking_private/networking_private_crypto.cc',
648 'common/net/x509_certificate_model_nss.cc',
651 { # else !use_openssl: remove the unneeded files
653 'common/net/x509_certificate_model_openssl.cc',
658 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
659 'msvs_disabled_warnings': [4267, ],
665 # Protobuf compiler / generator for the safebrowsing client
666 # model proto and the client-side detection (csd) request
668 'target_name': 'safe_browsing_proto',
669 'type': 'static_library',
671 'common/safe_browsing/client_model.proto',
672 'common/safe_browsing/crx_info.proto',
673 'common/safe_browsing/csd.proto'
676 'proto_in_dir': 'common/safe_browsing',
677 'proto_out_dir': 'chrome/common/safe_browsing',
679 'includes': [ '../build/protoc.gypi' ],
682 # Protobuf compiler / generator for UMA (User Metrics Analysis).
683 'target_name': 'metrics_proto',
684 'type': 'static_library',
686 'common/metrics/proto/chrome_experiments.proto',
687 'common/metrics/proto/permuted_entropy_cache.proto',
690 'proto_in_dir': 'common/metrics/proto',
691 'proto_out_dir': 'chrome/common/metrics/proto',
693 'includes': [ '../build/protoc.gypi' ],