views: Replace CullSet with intersection queries against the paint rect
[chromium-blink-merge.git] / chrome / chrome_common.gypi
blob9c44174a0e208f3c3570d89ef7d32f8c9afca246
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.
6   'variables': {
7     # File lists shared with GN build.
8     'chrome_common_sources': [
9       'common/all_messages.h',
10       'common/attrition_experiments.h',
11       'common/auto_start_linux.cc',
12       'common/auto_start_linux.h',
13       'common/badge_util.cc',
14       'common/badge_util.h',
15       'common/child_process_logging.h',
16       'common/child_process_logging_win.cc',
17       'common/chrome_content_client.cc',
18       'common/chrome_content_client.h',
19       'common/chrome_content_client_constants.cc',
20       'common/chrome_content_client_ios.mm',
21       'common/chrome_result_codes.h',
22       'common/chrome_utility_messages.h',
23       'common/chrome_utility_printing_messages.h',
24       'common/chrome_version_info.cc',
25       'common/chrome_version_info.h',
26       'common/chrome_version_info_android.cc',
27       'common/chrome_version_info_chromeos.cc',
28       'common/chrome_version_info_mac.mm',
29       'common/chrome_version_info_posix.cc',
30       'common/chrome_version_info_win.cc',
31       'common/cloud_print/cloud_print_cdd_conversion.cc',
32       'common/cloud_print/cloud_print_cdd_conversion.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_constants.cc',
36       'common/cloud_print/cloud_print_constants.h',
37       'common/cloud_print/cloud_print_helpers.cc',
38       'common/cloud_print/cloud_print_helpers.h',
39       'common/cloud_print/cloud_print_proxy_info.cc',
40       'common/cloud_print/cloud_print_proxy_info.h',
41       'common/common_message_generator.cc',
42       'common/common_message_generator.h',
43       'common/common_param_traits.cc',
44       'common/common_param_traits.h',
45       'common/common_param_traits_macros.h',
46       'common/content_restriction.h',
47       'common/content_settings_pattern_serializer.cc',
48       'common/content_settings_pattern_serializer.h',
49       'common/crash_keys.cc',
50       'common/crash_keys.h',
51       'common/custom_handlers/protocol_handler.cc',
52       'common/custom_handlers/protocol_handler.h',
53       'common/descriptors_android.h',
54       'common/favicon/fallback_icon_url_parser.cc',
55       'common/favicon/fallback_icon_url_parser.h',
56       'common/favicon/favicon_url_parser.cc',
57       'common/favicon/favicon_url_parser.h',
58       'common/favicon/large_icon_url_parser.cc',
59       'common/favicon/large_icon_url_parser.h',
60       'common/icon_with_badge_image_source.cc',
61       'common/icon_with_badge_image_source.h',
62       'common/ini_parser.cc',
63       'common/ini_parser.h',
64       'common/instant_types.cc',
65       'common/instant_types.h',
66       'common/localized_error.cc',
67       'common/localized_error.h',
68       'common/logging_chrome.cc',
69       'common/logging_chrome.h',
70       'common/mac/app_shim_launch.h',
71       'common/mac/app_shim_messages.h',
72       'common/mac/cfbundle_blocker.h',
73       'common/mac/cfbundle_blocker.mm',
74       'common/mac/launchd.h',
75       'common/mac/launchd.mm',
76       'common/mac/objc_zombie.h',
77       'common/mac/objc_zombie.mm',
78       'common/media/webrtc_logging_message_data.cc',
79       'common/media/webrtc_logging_message_data.h',
80       'common/media/webrtc_logging_messages.h',
81       'common/media_galleries/metadata_types.h',
82       'common/multi_process_lock.h',
83       'common/multi_process_lock_linux.cc',
84       'common/multi_process_lock_mac.cc',
85       'common/multi_process_lock_win.cc',
86       'common/omnibox_focus_state.h',
87       'common/partial_circular_buffer.cc',
88       'common/partial_circular_buffer.h',
89       'common/pref_names_util.cc',
90       'common/pref_names_util.h',
91       'common/prerender_types.h',
92       'common/profiling.cc',
93       'common/profiling.h',
94       'common/ref_counted_util.h',
95       'common/render_messages.cc',
96       'common/render_messages.h',
97       'common/safe_browsing/safebrowsing_messages.h',
98       'common/search_provider.h',
99       'common/search_types.h',
100       'common/search_urls.cc',
101       'common/search_urls.h',
102       'common/spellcheck_common.cc',
103       'common/spellcheck_common.h',
104       'common/spellcheck_marker.h',
105       'common/spellcheck_messages.h',
106       'common/spellcheck_result.h',
107       'common/switch_utils.cc',
108       'common/switch_utils.h',
109       'common/tts_messages.h',
110       'common/tts_utterance_request.cc',
111       'common/tts_utterance_request.h',
112       'common/url_constants.cc',
113       'common/url_constants.h',
114       'common/v8_breakpad_support_win.cc',
115       'common/v8_breakpad_support_win.h',
116       'common/variations/experiment_labels.cc',
117       'common/variations/experiment_labels.h',
118       'common/variations/variations_util.cc',
119       'common/variations/variations_util.h',
120       'common/web_application_info.cc',
121       'common/web_application_info.h',
122       'common/worker_thread_ticker.cc',
123       'common/worker_thread_ticker.h',
124     ],
125     'chrome_common_extensions_sources': [
126       'common/extensions/api/commands/commands_handler.cc',
127       'common/extensions/api/commands/commands_handler.h',
128       'common/extensions/api/extension_action/action_info.cc',
129       'common/extensions/api/extension_action/action_info.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/input_ime/input_components_handler.cc',
133       'common/extensions/api/input_ime/input_components_handler.h',
134       'common/extensions/api/notifications/notification_style.cc',
135       'common/extensions/api/notifications/notification_style.h',
136       'common/extensions/api/omnibox/omnibox_handler.cc',
137       'common/extensions/api/omnibox/omnibox_handler.h',
138       'common/extensions/api/plugins/plugins_handler.cc',
139       'common/extensions/api/plugins/plugins_handler.h',
140       'common/extensions/api/speech/tts_engine_manifest_handler.cc',
141       'common/extensions/api/speech/tts_engine_manifest_handler.h',
142       'common/extensions/api/spellcheck/spellcheck_handler.cc',
143       'common/extensions/api/spellcheck/spellcheck_handler.h',
144       'common/extensions/api/storage/storage_schema_manifest_handler.cc',
145       'common/extensions/api/storage/storage_schema_manifest_handler.h',
146       'common/extensions/api/supervised_user_private/supervised_user_handler.cc',
147       'common/extensions/api/supervised_user_private/supervised_user_handler.h',
148       'common/extensions/api/system_indicator/system_indicator_handler.cc',
149       'common/extensions/api/system_indicator/system_indicator_handler.h',
150       'common/extensions/api/url_handlers/url_handlers_parser.cc',
151       'common/extensions/api/url_handlers/url_handlers_parser.h',
152       'common/extensions/api/webstore/webstore_api_constants.cc',
153       'common/extensions/api/webstore/webstore_api_constants.h',
154       'common/extensions/chrome_extension_messages.h',
155       'common/extensions/chrome_extensions_client.cc',
156       'common/extensions/chrome_extensions_client.h',
157       'common/extensions/chrome_manifest_handlers.cc',
158       'common/extensions/chrome_manifest_handlers.h',
159       'common/extensions/chrome_manifest_url_handlers.cc',
160       'common/extensions/chrome_manifest_url_handlers.h',
161       'common/extensions/chrome_utility_extensions_messages.h',
162       'common/extensions/command.cc',
163       'common/extensions/command.h',
164       'common/extensions/extension_constants.cc',
165       'common/extensions/extension_constants.h',
166       'common/extensions/extension_metrics.cc',
167       'common/extensions/extension_metrics.h',
168       'common/extensions/extension_process_policy.cc',
169       'common/extensions/extension_process_policy.h',
170       'common/extensions/features/chrome_channel_feature_filter.cc',
171       'common/extensions/features/chrome_channel_feature_filter.h',
172       'common/extensions/features/feature_channel.cc',
173       'common/extensions/features/feature_channel.h',
174       'common/extensions/image_writer/image_writer_util_mac.cc',
175       'common/extensions/image_writer/image_writer_util_mac.h',
176       'common/extensions/manifest_handlers/app_icon_color_info.cc',
177       'common/extensions/manifest_handlers/app_icon_color_info.h',
178       'common/extensions/manifest_handlers/app_isolation_info.cc',
179       'common/extensions/manifest_handlers/app_isolation_info.h',
180       'common/extensions/manifest_handlers/app_launch_info.cc',
181       'common/extensions/manifest_handlers/app_launch_info.h',
182       'common/extensions/manifest_handlers/automation.cc',
183       'common/extensions/manifest_handlers/automation.h',
184       'common/extensions/manifest_handlers/content_scripts_handler.cc',
185       'common/extensions/manifest_handlers/content_scripts_handler.h',
186       'common/extensions/manifest_handlers/copresence_manifest.cc',
187       'common/extensions/manifest_handlers/copresence_manifest.h',
188       'common/extensions/manifest_handlers/extension_action_handler.cc',
189       'common/extensions/manifest_handlers/extension_action_handler.h',
190       'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
191       'common/extensions/manifest_handlers/minimum_chrome_version_checker.h',
192       'common/extensions/manifest_handlers/settings_overrides_handler.cc',
193       'common/extensions/manifest_handlers/settings_overrides_handler.h',
194       'common/extensions/manifest_handlers/theme_handler.cc',
195       'common/extensions/manifest_handlers/theme_handler.h',
196       'common/extensions/manifest_handlers/ui_overrides_handler.cc',
197       'common/extensions/manifest_handlers/ui_overrides_handler.h',
198       'common/extensions/permissions/chrome_api_permissions.cc',
199       'common/extensions/permissions/chrome_api_permissions.h',
200       'common/extensions/permissions/chrome_permission_message_provider.cc',
201       'common/extensions/permissions/chrome_permission_message_provider.h',
202       'common/extensions/permissions/chrome_permission_message_rules.cc',
203       'common/extensions/permissions/chrome_permission_message_rules.h',
204       'common/extensions/sync_helper.cc',
205       'common/extensions/sync_helper.h',
206     ],
207     'chrome_common_full_safe_browsing_sources': [
208       'common/safe_browsing/binary_feature_extractor.cc',
209       'common/safe_browsing/binary_feature_extractor.h',
210       'common/safe_browsing/binary_feature_extractor_posix.cc',
211       'common/safe_browsing/binary_feature_extractor_win.cc',
212       'common/safe_browsing/download_protection_util.cc',
213       'common/safe_browsing/download_protection_util.h',
214       'common/safe_browsing/ipc_protobuf_message_macros.h',
215       'common/safe_browsing/ipc_protobuf_message_null_macros.h',
216       'common/safe_browsing/pe_image_reader_win.cc',
217       'common/safe_browsing/pe_image_reader_win.h',
218       'common/safe_browsing/protobuf_message_log_macros.h',
219       'common/safe_browsing/protobuf_message_param_traits.h',
220       'common/safe_browsing/protobuf_message_read_macros.h',
221       'common/safe_browsing/protobuf_message_write_macros.h',
222       'common/safe_browsing/zip_analyzer.cc',
223       'common/safe_browsing/zip_analyzer.h',
224       'common/safe_browsing/zip_analyzer_results.cc',
225       'common/safe_browsing/zip_analyzer_results.h',
226     ],
227     'chrome_common_importer_sources': [
228       'common/importer/firefox_importer_utils.cc',
229       'common/importer/firefox_importer_utils.h',
230       'common/importer/firefox_importer_utils_linux.cc',
231       'common/importer/firefox_importer_utils_mac.mm',
232       'common/importer/firefox_importer_utils_win.cc',
233       'common/importer/ie_importer_test_registry_overrider_win.cc',
234       'common/importer/ie_importer_test_registry_overrider_win.h',
235       'common/importer/ie_importer_utils_win.cc',
236       'common/importer/ie_importer_utils_win.h',
237       'common/importer/imported_bookmark_entry.cc',
238       'common/importer/imported_bookmark_entry.h',
239       'common/importer/importer_autofill_form_data_entry.cc',
240       'common/importer/importer_autofill_form_data_entry.h',
241       'common/importer/importer_bridge.cc',
242       'common/importer/importer_bridge.h',
243       'common/importer/importer_data_types.cc',
244       'common/importer/importer_data_types.h',
245       'common/importer/importer_type.h',
246       'common/importer/importer_url_row.cc',
247       'common/importer/importer_url_row.h',
248       'common/importer/profile_import_process_messages.cc',
249       'common/importer/profile_import_process_messages.h',
250       'common/importer/profile_import_process_param_traits_macros.h',
251       'common/importer/safari_importer_utils.h',
252       'common/importer/safari_importer_utils.mm',
253     ],
254     'chrome_common_ipc_fuzzer_sources': [
255       'common/external_ipc_dumper.h',
256       'common/external_ipc_dumper.cc',
257     ],
258     'chrome_common_service_process_sources': [
259       'common/service_messages.h',
260       'common/service_process_util.cc',
261       'common/service_process_util.h',
262       'common/service_process_util_linux.cc',
263       'common/service_process_util_mac.mm',
264       'common/service_process_util_posix.cc',
265       'common/service_process_util_posix.h',
266       'common/service_process_util_win.cc',
267     ],
268     'chrome_common_win_mac_sources': [
269       'common/media_galleries/itunes_library.cc',
270       'common/media_galleries/itunes_library.h',
271       'common/media_galleries/picasa_types.cc',
272       'common/media_galleries/picasa_types.h',
273       'common/media_galleries/pmp_constants.h',
274     ],
275     'chrome_common_networking_private_sources_openssl' : [
276       'common/extensions/api/networking_private/networking_private_crypto.cc',
277       'common/extensions/api/networking_private/networking_private_crypto.h',
278       'common/extensions/api/networking_private/networking_private_crypto_openssl.cc',
279     ],
280     'chrome_common_networking_private_sources_nss' : [
281       'common/extensions/api/networking_private/networking_private_crypto.cc',
282       'common/extensions/api/networking_private/networking_private_crypto.h',
283       'common/extensions/api/networking_private/networking_private_crypto_nss.cc',
284     ],
286     'chrome_common_mac_sources': [
287       'common/media_galleries/iphoto_library.cc',
288       'common/media_galleries/iphoto_library.h',
289     ]
290   },
291   'targets': [
292     {
293       # GN: //chrome/common:common
294       'target_name': 'common',
295       'type': 'static_library',
296       'variables': {
297         'chrome_common_target': 1,
298         'enable_wexit_time_destructors': 1,
299       },
300       'include_dirs': [
301           '..',
302           '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_content_client.cc.
303         ],
304       'direct_dependent_settings': {
305         'include_dirs': [
306           '..',
307         ],
308       },
309       'dependencies': [
310         # TODO(gregoryd): chrome_resources and chrome_strings could be
311         #  shared with the 64-bit target, but it does not work due to a gyp
312         # issue.
313         'common_net',
314         'common_version',
315         'installer_util',
316         'safe_browsing_proto',
317         '<(DEPTH)/base/base.gyp:base',
318         '<(DEPTH)/base/base.gyp:base_i18n',
319         '<(DEPTH)/base/base.gyp:base_prefs',
320         '<(DEPTH)/base/base.gyp:base_static',
321         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
322         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
323         '<(DEPTH)/chrome/chrome_resources.gyp:theme_resources',
324         '<(DEPTH)/chrome/common_constants.gyp:common_constants',
325         '<(DEPTH)/components/components.gyp:cloud_devices_common',
326         '<(DEPTH)/components/components.gyp:component_updater',
327         '<(DEPTH)/components/components.gyp:content_settings_core_common',
328         '<(DEPTH)/components/components.gyp:favicon_base',
329         '<(DEPTH)/components/components.gyp:json_schema',
330         '<(DEPTH)/components/components.gyp:metrics',
331         '<(DEPTH)/components/components.gyp:policy_component_common',
332         '<(DEPTH)/components/components.gyp:translate_core_common',
333         '<(DEPTH)/components/components.gyp:variations',
334         '<(DEPTH)/content/content.gyp:content_common',
335         '<(DEPTH)/crypto/crypto.gyp:crypto',
336         '<(DEPTH)/net/net.gyp:net',
337         '<(DEPTH)/skia/skia.gyp:skia',
338         '<(DEPTH)/skia/skia.gyp:skia_library',
339         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
340         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
341         '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
342         '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
343         '<(DEPTH)/third_party/zlib/google/zip.gyp:zip',
344         '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
345         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
346         '<(DEPTH)/url/url.gyp:url_lib',
347       ],
348       'sources': [
349         '<@(chrome_common_sources)'
350       ],
351       'conditions': [
352         ['enable_extensions==1', {
353           'sources': [ '<@(chrome_common_extensions_sources)' ],
354           'dependencies': [
355             '<(DEPTH)/device/usb/usb.gyp:device_usb',
356             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
357             '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
358             '<(DEPTH)/extensions/extensions.gyp:extensions_common',
359             '<(DEPTH)/extensions/extensions_resources.gyp:extensions_resources',
360             '<(DEPTH)/extensions/extensions_strings.gyp:extensions_strings',
361             '<(DEPTH)/media/cast/cast.gyp:cast_net',
362           ],
363           'export_dependent_settings': [
364             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
365           ],
366         }],
367         ['OS=="win" or OS=="mac"', {
368           'sources': [ '<@(chrome_common_win_mac_sources)' ],
369         }],
370         ['(OS=="win" or OS=="mac" or chromeos==1) and use_openssl==1', {
371           'sources': [ '<@(chrome_common_networking_private_sources_openssl)' ],
372           'dependencies': [
373             '../third_party/boringssl/boringssl.gyp:boringssl',
374           ],
375         }],
376         ['(OS=="win" or OS=="mac" or chromeos==1) and use_openssl!=1', {
377           'sources': [ '<@(chrome_common_networking_private_sources_nss)' ],
378         }],
379         ['OS=="mac"', {
380           'sources': [ '<@(chrome_common_mac_sources)' ],
381           'dependencies': [ 'app_mode_app_support' ],
382         }],
383         ['OS != "ios"', {
384           'dependencies': [
385             '<(DEPTH)/components/components.gyp:autofill_core_common',
386             '<(DEPTH)/components/components.gyp:autofill_content_common',
387             '<(DEPTH)/components/components.gyp:password_manager_core_common',
388             '<(DEPTH)/components/components.gyp:password_manager_content_common',
389             '<(DEPTH)/components/components.gyp:signin_core_common',
390             '<(DEPTH)/components/components.gyp:translate_content_common',
391             '<(DEPTH)/components/components.gyp:visitedlink_common',
392             '<(DEPTH)/extensions/extensions.gyp:extensions_common_constants',
393             '<(DEPTH)/ipc/ipc.gyp:ipc',
394             '<(DEPTH)/third_party/re2/re2.gyp:re2',
395             '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
396           ],
397         }, {  # OS == ios
398           'sources/': [
399             ['exclude', '^common/child_process_'],
400             ['exclude', '^common/chrome_content_client\\.cc$'],
401             ['exclude', '^common/chrome_version_info_posix\\.cc$'],
402             ['exclude', '^common/common_message_generator\\.cc$'],
403             ['exclude', '^common/common_param_traits'],
404             ['exclude', '^common/custom_handlers/'],
405             ['exclude', '^common/extensions/'],
406             ['exclude', '^common/logging_chrome\\.'],
407             ['exclude', '^common/media_galleries/'],
408             ['exclude', '^common/multi_process_'],
409             ['exclude', '^common/profiling\\.'],
410             ['exclude', '^common/spellcheck_'],
411             ['exclude', '^common/validation_message_'],
412             ['exclude', '^common/web_apps\\.'],
413             # TODO(ios): Include files here as they are made to work; once
414             # everything is online, remove everything below here and just
415             # use the exclusions above.
416             ['exclude', '\\.(cc|mm)$'],
417             ['include', '_ios\\.(cc|mm)$'],
418             ['include', '(^|/)ios/'],
419             ['include', '^common/chrome_version_info\\.cc$'],
420             ['include', '^common/translate'],
421             ['include', '^common/zip'],
422           ],
423           'include_dirs': [
424             '<(DEPTH)/breakpad/src',
425           ],
426         }],
427         ['disable_nacl==0', {
428           'dependencies': [
429             '<(DEPTH)/components/nacl.gyp:nacl_common',
430           ],
431         }],
432         ['enable_ipc_fuzzer==1', {
433           'sources': [ '<@(chrome_common_ipc_fuzzer_sources)' ],
434         }],
435         ['enable_plugins==1', {
436           'dependencies': [
437             '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
438           ],
439           'sources': [
440             'common/pepper_flash.cc',
441             'common/pepper_flash.h',
442             'common/ppapi_utils.cc',
443             'common/ppapi_utils.h',
444           ],
445         }],
446         ['enable_plugins==1 and enable_extensions==1', {
447           'sources': [
448             'common/pepper_permission_util.cc',
449             'common/pepper_permission_util.h',
450           ],
451         }],
452         ['enable_basic_printing==1 or enable_print_preview==1', {
453           'dependencies': [
454             '<(DEPTH)/components/components.gyp:printing_common',
455             '<(DEPTH)/printing/printing.gyp:printing',
456           ],
457         }],
458         ['enable_print_preview==1', {
459           'sources': [ '<@(chrome_common_service_process_sources)' ],
460         }],
461         ['enable_service_discovery==1', {
462           'sources' : [
463             'common/local_discovery/service_discovery_client.cc',
464             'common/local_discovery/service_discovery_client.h',
465            ]
466         }],
467         ['enable_mdns==1', {
468           'sources' : [
469             'common/local_discovery/service_discovery_client_impl.cc',
470             'common/local_discovery/service_discovery_client_impl.h',
471           ]
472         }],
473         ['OS=="android"', {
474           'sources!': [
475             'common/badge_util.cc',
476             'common/chrome_version_info_posix.cc',
477             'common/extensions/api/spellcheck/spellcheck_handler.cc',
478             'common/extensions/manifest_handlers/extension_action_handler.cc',
479             'common/extensions/manifest_handlers/minimum_chrome_version_checker.cc',
480             'common/icon_with_badge_image_source.cc',
481             'common/media_galleries/metadata_types.h',
482             'common/net/url_util.cc',
483             'common/spellcheck_common.cc',
484           ],
485         }, {
486           # Non-Android.
487           'sources': [ '<@(chrome_common_importer_sources)' ]
488         }],
489         ['OS=="win"', {
490           'include_dirs': [
491             '<(DEPTH)/breakpad/src',
492             '<(DEPTH)/third_party/wtl/include',
493           ],
494           'dependencies': [
495             '<(DEPTH)/components/components.gyp:dom_distiller_core',  # Needed by chrome_content_client.cc.
496           ],
497         }],
498         ['enable_mdns == 1', {
499             'sources': [
500               'common/local_discovery/local_discovery_messages.h',
501             ]
502         }],
503         ['OS=="mac"', {
504           'dependencies': [
505             '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
506             '../third_party/mach_override/mach_override.gyp:mach_override',
507           ],
508           'include_dirs': [
509             '<(DEPTH)/breakpad/src',
510           ],
511           'sources!': [
512             'common/chrome_version_info_posix.cc',
513           ],
514         }],
515         ['enable_webrtc==0', {
516           'sources!': [
517             'common/media/webrtc_logging_messages.h',
518           ]
519         }],
520         ['configuration_policy==1', {
521           'dependencies': [
522             '<(DEPTH)/components/components.gyp:policy',
523           ],
524         }],
525         ['safe_browsing==1', {
526           'defines': [ 'FULL_SAFE_BROWSING' ],
527           'sources': [ '<@(chrome_common_full_safe_browsing_sources)', ],
528         }],
529         ['safe_browsing==2', {
530           'defines': [ 'MOBILE_SAFE_BROWSING' ],
531         }],
532       ],
533       'target_conditions': [
534         ['OS == "ios"', {
535           'sources/': [
536             # Pull in specific Mac files for iOS (which have been filtered out
537             # by file name rules).
538             ['include', '^common/chrome_version_info_mac\\.mm$'],
539           ],
540         }],
541       ],
542       'export_dependent_settings': [
543         '../base/base.gyp:base',
544       ],
545     },
546     {
547       # GN version: //chrome/common:version
548       'target_name': 'common_version',
549       'type': 'none',
550       'direct_dependent_settings': {
551         'include_dirs': [
552           '<(SHARED_INTERMEDIATE_DIR)',
553         ],
554       },
555       # Because generate_version generates a header, we must set the
556       # hard_dependency flag.
557       'hard_dependency': 1,
558       'actions': [
559         {
560           'action_name': 'generate_version',
561           'variables': {
562             'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
563             'version_py_path': '<(DEPTH)/build/util/version.py',
564             'version_path': 'VERSION',
565             'template_input_path': 'common/chrome_version_info_values.h.version',
566           },
567           'conditions': [
568             [ 'branding == "Chrome"', {
569               'variables': {
570                   'branding_path':
571                     'app/theme/google_chrome/BRANDING',
572               },
573             }, { # else branding!="Chrome"
574               'variables': {
575                   'branding_path':
576                     'app/theme/chromium/BRANDING',
577               },
578             }],
579           ],
580           'inputs': [
581             '<(template_input_path)',
582             '<(version_path)',
583             '<(branding_path)',
584             '<(lastchange_path)',
585           ],
586           'outputs': [
587             '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_values.h',
588           ],
589           'action': [
590             'python',
591             '<(version_py_path)',
592             '-f', '<(version_path)',
593             '-f', '<(branding_path)',
594             '-f', '<(lastchange_path)',
595             '<(template_input_path)',
596             '<@(_outputs)',
597           ],
598           'message': 'Generating version information',
599         },
600       ],
601     },
602     {
603       # GN version: //chrome/common/net
604       'target_name': 'common_net',
605       'type': 'static_library',
606       'sources': [
607         'common/net/net_resource_provider.cc',
608         'common/net/net_resource_provider.h',
609         'common/net/url_util.cc',
610         'common/net/url_util.h',
611         'common/net/x509_certificate_model.cc',
612         'common/net/x509_certificate_model.h',
613         'common/net/x509_certificate_model_nss.cc',
614         'common/net/x509_certificate_model_openssl.cc',
615       ],
616       'dependencies': [
617         '<(DEPTH)/base/base.gyp:base',
618         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
619         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
620         '<(DEPTH)/components/components.gyp:network_hints_common',
621         '<(DEPTH)/components/components.gyp:error_page_common',
622         '<(DEPTH)/crypto/crypto.gyp:crypto',
623         '<(DEPTH)/net/net.gyp:net_resources',
624         '<(DEPTH)/net/net.gyp:net',
625         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
626         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
627         '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
628       ],
629       'conditions': [
630         ['OS != "ios"', {
631           'dependencies': [
632             '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
633           ],
634         }, {  # OS == ios
635           'sources!': [
636             'common/net/net_resource_provider.cc',
637             'common/net/x509_certificate_model.cc',
638           ],
639         }],
640         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
641             'dependencies': [
642               '../build/linux/system.gyp:ssl',
643             ],
644           },
645         ],
646         ['os_posix != 1 or OS == "mac" or OS == "ios"', {
647             'sources!': [
648               'common/net/x509_certificate_model_nss.cc',
649               'common/net/x509_certificate_model_openssl.cc',
650             ],
651           },
652         ],
653         ['OS == "android"', {
654             'dependencies': [
655               '../third_party/boringssl/boringssl.gyp:boringssl',
656             ],
657             'sources!': [
658               'common/net/x509_certificate_model.cc',
659               'common/net/x509_certificate_model_openssl.cc',
660             ],
661         }],
662         ['use_openssl==1', {
663             'sources!': [
664               'common/net/x509_certificate_model_nss.cc',
665             ],
666             'dependencies': [
667               '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
668             ],
669           },
670           {  # else !use_openssl: remove the unneeded files
671             'sources!': [
672               'common/net/x509_certificate_model_openssl.cc',
673             ],
674           },
675         ],
676         ['OS=="win"', {
677             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
678             'msvs_disabled_warnings': [4267, ],
679           },
680         ],
681       ],
682     },
683     {
684       # Protobuf compiler / generator for the safebrowsing client
685       # model proto and the client-side detection (csd) request
686       # protocol buffer.
688       # GN version: //chrome/common/safe_browsing:proto
689       'target_name': 'safe_browsing_proto',
690       'type': 'static_library',
691       'sources': [
692         'common/safe_browsing/client_model.proto',
693         'common/safe_browsing/crx_info.proto',
694         'common/safe_browsing/csd.proto'
695       ],
696       'variables': {
697         'proto_in_dir': 'common/safe_browsing',
698         'proto_out_dir': 'chrome/common/safe_browsing',
699       },
700       'includes': [ '../build/protoc.gypi' ],
701     },
702   ],