Make hitting "Enter" submit the add/change profile dialog.
[chromium-blink-merge.git] / chrome / chrome_common.gypi
blob19eedfe7de4c1b81373c480af8a7740aeed39da3
1 # Copyright (c) 2012 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   'targets': [
7     {
8       'target_name': 'common',
9       'type': 'static_library',
10       'variables': {
11         'chrome_common_target': 1,
12         'enable_wexit_time_destructors': 1,
13       },
14       'include_dirs': [
15           '..',
16           '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_content_client.cc.
17         ],
18       'direct_dependent_settings': {
19         'include_dirs': [
20           '..',
21         ],
22       },
23       'dependencies': [
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
26         # issue.
27         'common_net',
28         'common_version',
29         'metrics_proto',
30         '<(DEPTH)/base/base.gyp:base',
31         '<(DEPTH)/base/base.gyp:base_i18n',
32         '<(DEPTH)/base/base.gyp:base_prefs',
33         '<(DEPTH)/base/base.gyp:base_static',
34         '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
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)/content/content.gyp:content_common',
40         '<(DEPTH)/net/net.gyp:net',
41         '<(DEPTH)/skia/skia.gyp:skia',
42         '<(DEPTH)/third_party/bzip2/bzip2.gyp:bzip2',
43         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
44         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
45         '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
46         '<(DEPTH)/third_party/mt19937ar/mt19937ar.gyp:mt19937ar',
47         '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
48         '<(DEPTH)/third_party/zlib/zlib.gyp:minizip',
49         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
50         '<(DEPTH)/ui/ui.gyp:ui_resources',
51         '<(DEPTH)/webkit/support/webkit_support.gyp:user_agent',
52       ],
53       'sources': [
54         '../extensions/common/constants.cc',
55         '../extensions/common/constants.h',
56         '../extensions/common/error_utils.cc',
57         '../extensions/common/error_utils.h',
58         '../extensions/common/url_pattern.cc',
59         '../extensions/common/url_pattern.h',
60         '../extensions/common/url_pattern_set.cc',
61         '../extensions/common/url_pattern_set.h',
62         'common/all_messages.h',
63         'common/attrition_experiments.h',
64         'common/auto_start_linux.cc',
65         'common/auto_start_linux.h',
66         'common/autofill/web_element_descriptor.cc',
67         'common/autofill/web_element_descriptor.h',
68         'common/autofill_messages.h',
69         'common/automation_constants.cc',
70         'common/automation_constants.h',
71         'common/automation_events.cc',
72         'common/automation_events.h',
73         'common/automation_id.cc',
74         'common/automation_id.h',
75         'common/automation_messages.cc',
76         'common/automation_messages.h',
77         'common/automation_messages_internal.h',
78         'common/badge_util.cc',
79         'common/badge_util.h',
80         'common/bzip2_error_handler.cc',
81         'common/cancelable_task_tracker.cc',
82         'common/cancelable_task_tracker.h',
83         'common/child_process_logging.h',
84         'common/child_process_logging_mac.mm',
85         'common/child_process_logging_posix.cc',
86         'common/child_process_logging_win.cc',
87         'common/chrome_content_client.cc',
88         'common/chrome_content_client.h',
89         'common/chrome_content_client_ios.mm',
90         'common/chrome_notification_types.h',
91         'common/chrome_result_codes.h',
92         'common/chrome_sandbox_type_mac.h',
93         'common/chrome_utility_messages.h',
94         'common/chrome_version_info.cc',
95         'common/chrome_version_info_android.cc',
96         'common/chrome_version_info_chromeos.cc',
97         'common/chrome_version_info_posix.cc',
98         'common/chrome_version_info_mac.mm',
99         'common/chrome_version_info_win.cc',
100         'common/chrome_version_info.h',
101         'common/cloud_print/cloud_print_class_mac.h',
102         'common/cloud_print/cloud_print_class_mac.mm',
103         'common/cloud_print/cloud_print_constants.cc',
104         'common/cloud_print/cloud_print_constants.h',
105         'common/cloud_print/cloud_print_helpers.cc',
106         'common/cloud_print/cloud_print_helpers.h',
107         'common/cloud_print/cloud_print_proxy_info.cc',
108         'common/cloud_print/cloud_print_proxy_info.h',
109         'common/common_message_generator.cc',
110         'common/common_message_generator.h',
111         'common/common_param_traits.cc',
112         'common/common_param_traits.h',
113         'common/common_param_traits_macros.h',
114         'common/content_settings.cc',
115         'common/content_settings.h',
116         'common/content_settings_helper.cc',
117         'common/content_settings_helper.h',
118         'common/content_settings_pattern.cc',
119         'common/content_settings_pattern.h',
120         'common/content_settings_pattern_parser.cc',
121         'common/content_settings_pattern_parser.h',
122         'common/content_settings_types.h',
123         'common/crash_keys.cc',
124         'common/crash_keys.h',
125         'common/custom_handlers/protocol_handler.cc',
126         'common/custom_handlers/protocol_handler.h',
127         'common/descriptors_android.h',
128         'common/extensions/api/extension_api.cc',
129         'common/extensions/api/extension_api.h',
130         'common/extensions/api/extension_api_stub.cc',
131         'common/extensions/api/input_ime/input_components_handler.cc',
132         'common/extensions/api/input_ime/input_components_handler.h',
133         'common/extensions/api/omnibox/omnibox_handler.cc',
134         'common/extensions/api/omnibox/omnibox_handler.h',
135         'common/extensions/command.cc',
136         'common/extensions/command.h',
137         'common/extensions/csp_validator.cc',
138         'common/extensions/csp_validator.h',
139         'common/extensions/draggable_region.cc',
140         'common/extensions/draggable_region.h',
141         'common/extensions/event_filter.cc',
142         'common/extensions/event_filter.h',
143         'common/extensions/event_filtering_info.cc',
144         'common/extensions/event_filtering_info.h',
145         'common/extensions/event_matcher.cc',
146         'common/extensions/event_matcher.h',
147         'common/extensions/extension.cc',
148         'common/extensions/extension.h',
149         'common/extensions/extension_constants.cc',
150         'common/extensions/extension_constants.h',
151         'common/extensions/extension_file_util.cc',
152         'common/extensions/extension_file_util.h',
153         'common/extensions/extension_icon_set.cc',
154         'common/extensions/extension_icon_set.h',
155         'common/extensions/extension_l10n_util.cc',
156         'common/extensions/extension_l10n_util.h',
157         'common/extensions/extension_localization_peer.cc',
158         'common/extensions/extension_localization_peer.h',
159         'common/extensions/extension_manifest_constants.cc',
160         'common/extensions/extension_manifest_constants.h',
161         'common/extensions/extension_messages.cc',
162         'common/extensions/extension_messages.h',
163         'common/extensions/extension_process_policy.cc',
164         'common/extensions/extension_process_policy.h',
165         'common/extensions/extension_resource.cc',
166         'common/extensions/extension_resource.h',
167         'common/extensions/extension_set.cc',
168         'common/extensions/extension_set.h',
169         'common/extensions/feature_switch.cc',
170         'common/extensions/feature_switch.h',
171         'common/extensions/features/base_feature_provider.cc',
172         'common/extensions/features/base_feature_provider.h',
173         'common/extensions/features/complex_feature.cc',
174         'common/extensions/features/complex_feature.h',
175         'common/extensions/features/feature.cc',
176         'common/extensions/features/feature.h',
177         'common/extensions/features/feature_provider.h',
178         'common/extensions/features/manifest_feature.cc',
179         'common/extensions/features/manifest_feature.h',
180         'common/extensions/features/permission_feature.cc',
181         'common/extensions/features/permission_feature.h',
182         'common/extensions/features/simple_feature.cc',
183         'common/extensions/features/simple_feature.h',
184         'common/extensions/manifest.cc',
185         'common/extensions/manifest.h',
186         'common/extensions/manifest_handler.cc',
187         'common/extensions/manifest_handler.h',
188         'common/extensions/matcher/regex_set_matcher.cc',
189         'common/extensions/matcher/regex_set_matcher.h',
190         'common/extensions/matcher/string_pattern.cc',
191         'common/extensions/matcher/string_pattern.h',
192         'common/extensions/matcher/substring_set_matcher.cc',
193         'common/extensions/matcher/substring_set_matcher.h',
194         'common/extensions/matcher/url_matcher.cc',
195         'common/extensions/matcher/url_matcher.h',
196         'common/extensions/matcher/url_matcher_constants.cc',
197         'common/extensions/matcher/url_matcher_constants.h',
198         'common/extensions/matcher/url_matcher_factory.cc',
199         'common/extensions/matcher/url_matcher_factory.h',
200         'common/extensions/matcher/url_matcher_helpers.cc',
201         'common/extensions/matcher/url_matcher_helpers.h',
202         'common/extensions/message_bundle.cc',
203         'common/extensions/message_bundle.h',
204         'common/extensions/permissions/api_permission.cc',
205         'common/extensions/permissions/api_permission.h',
206         'common/extensions/permissions/api_permission_set.cc',
207         'common/extensions/permissions/api_permission_set.h',
208         'common/extensions/permissions/bluetooth_device_permission.cc',
209         'common/extensions/permissions/bluetooth_device_permission.h',
210         'common/extensions/permissions/bluetooth_device_permission_data.cc',
211         'common/extensions/permissions/bluetooth_device_permission_data.h',
212         'common/extensions/permissions/permission_message.cc',
213         'common/extensions/permissions/permission_message.h',
214         'common/extensions/permissions/permission_set.cc',
215         'common/extensions/permissions/permission_set.h',
216         'common/extensions/permissions/permissions_info.cc',
217         'common/extensions/permissions/permissions_info.h',
218         'common/extensions/permissions/set_disjunction_permission.h',
219         'common/extensions/permissions/socket_permission.cc',
220         'common/extensions/permissions/socket_permission.h',
221         'common/extensions/permissions/socket_permission_data.cc',
222         'common/extensions/permissions/socket_permission_data.h',
223         'common/extensions/permissions/usb_device_permission.cc',
224         'common/extensions/permissions/usb_device_permission.h',
225         'common/extensions/permissions/usb_device_permission_data.cc',
226         'common/extensions/permissions/usb_device_permission_data.h',
227         'common/extensions/request_media_access_permission_helper.cc',
228         'common/extensions/request_media_access_permission_helper.h',
229         'common/extensions/unpacker.cc',
230         'common/extensions/unpacker.h',
231         'common/extensions/update_manifest.cc',
232         'common/extensions/update_manifest.h',
233         'common/extensions/user_script.cc',
234         'common/extensions/user_script.h',
235         'common/extensions/value_counter.cc',
236         'common/extensions/value_counter.h',
237         'common/external_ipc_fuzzer.h',
238         'common/external_ipc_fuzzer.cc',
239         'common/form_data.cc',
240         'common/form_data.h',
241         'common/form_data_predictions.cc',
242         'common/form_data_predictions.h',
243         'common/form_field_data.cc',
244         'common/form_field_data.h',
245         'common/form_field_data_predictions.cc',
246         'common/form_field_data_predictions.h',
247         'common/icon_with_badge_image_source.cc',
248         'common/icon_with_badge_image_source.h',
249         'common/instant_types.cc',
250         'common/instant_types.h',
251         'common/json_schema_constants.cc',
252         'common/json_schema_constants.h',
253         'common/json_schema_validator.cc',
254         'common/json_schema_validator.h',
255         'common/jstemplate_builder.cc',
256         'common/jstemplate_builder.h',
257         'common/localized_error.cc',
258         'common/localized_error.h',
259         'common/logging_chrome.cc',
260         'common/logging_chrome.h',
261         'common/mac/app_mode_common.h',
262         'common/mac/app_mode_common.mm',
263         'common/mac/cfbundle_blocker.h',
264         'common/mac/cfbundle_blocker.mm',
265         'common/mac/launchd.h',
266         'common/mac/launchd.mm',
267         'common/mac/nscoder_util.h',
268         'common/mac/nscoder_util.mm',
269         'common/mac/objc_method_swizzle.h',
270         'common/mac/objc_method_swizzle.mm',
271         'common/mac/objc_zombie.h',
272         'common/mac/objc_zombie.mm',
273         'common/metrics/entropy_provider.cc',
274         'common/metrics/entropy_provider.h',
275         'common/metrics/metrics_log_base.cc',
276         'common/metrics/metrics_log_base.h',
277         'common/metrics/metrics_log_manager.cc',
278         'common/metrics/metrics_log_manager.h',
279         'common/metrics/metrics_service_base.cc',
280         'common/metrics/metrics_service_base.h',
281         'common/metrics/metrics_util.cc',
282         'common/metrics/metrics_util.h',
283         'common/metrics/variations/variations_util.cc',
284         'common/metrics/variations/variations_util.h',
285         'common/multi_process_lock.h',
286         'common/multi_process_lock_linux.cc',
287         'common/multi_process_lock_mac.cc',
288         'common/multi_process_lock_win.cc',
289         'common/nacl_cmd_line.cc',
290         'common/nacl_cmd_line.h',
291         'common/nacl_messages.cc',
292         'common/nacl_messages.h',
293         'common/nacl_types.cc',
294         'common/nacl_types.h',
295         'common/password_form_fill_data.cc',
296         'common/password_form_fill_data.h',
297         'common/password_generation_util.cc',
298         'common/password_generation_util.h',
299         'common/pepper_flash.cc',
300         'common/pepper_flash.h',
301         'common/pref_names_util.cc',
302         'common/pref_names_util.h',
303         'common/print_messages.cc',
304         'common/print_messages.h',
305         'common/profiling.cc',
306         'common/profiling.h',
307         'common/ref_counted_util.h',
308         'common/render_messages.cc',
309         'common/render_messages.h',
310         'common/safe_browsing/safebrowsing_messages.h',
311         'common/search_provider.h',
312         'common/search_types.h',
313         'common/service_messages.h',
314         'common/service_process_util.cc',
315         'common/service_process_util.h',
316         'common/service_process_util_linux.cc',
317         'common/service_process_util_mac.mm',
318         'common/service_process_util_posix.cc',
319         'common/service_process_util_posix.h',
320         'common/service_process_util_win.cc',
321         'common/spellcheck_common.cc',
322         'common/spellcheck_common.h',
323         'common/spellcheck_messages.h',
324         'common/spellcheck_result.h',
325         'common/startup_metric_utils.cc',
326         'common/startup_metric_utils.h',
327         'common/switch_utils.cc',
328         'common/switch_utils.h',
329         'common/thumbnail_score.cc',
330         'common/thumbnail_score.h',
331         'common/time_format.cc',
332         'common/time_format.h',
333         'common/url_constants.cc',
334         'common/url_constants.h',
335         'common/view_type.cc',
336         'common/view_type.h',
337         'common/visitedlink_common.cc',
338         'common/visitedlink_common.h',
339         'common/web_apps.cc',
340         'common/web_apps.h',
341         'common/web_resource/web_resource_unpacker.cc',
342         'common/web_resource/web_resource_unpacker.h',
343         'common/worker_thread_ticker.cc',
344         'common/worker_thread_ticker.h',
345         'common/zip.cc',  # Requires zlib directly.
346         'common/zip.h',
347         'common/zip_internal.cc',
348         'common/zip_internal.h',
349         'common/zip_reader.cc',
350         'common/zip_reader.h',
351       ],
352       'conditions': [
353         ['OS != "ios"', {
354           'dependencies': [
355             '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
356             '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
357             '<(DEPTH)/ipc/ipc.gyp:ipc',
358             '<(DEPTH)/printing/printing.gyp:printing',
359             '<(DEPTH)/third_party/adobe/flash/flash_player.gyp:flapper_version_h',
360             '<(DEPTH)/third_party/re2/re2.gyp:re2',
361             '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
362             '<(DEPTH)/webkit/support/webkit_support.gyp:glue',
363           ],
364         }, {  # OS == ios
365           'sources/': [
366             ['exclude', '^common/automation_'],
367             ['exclude', '^common/child_process_'],
368             ['exclude', '^common/chrome_content_client\\.cc$'],
369             ['exclude', '^common/chrome_version_info_posix\\.cc$'],
370             ['exclude', '^common/common_message_generator\\.cc$'],
371             ['exclude', '^common/common_param_traits'],
372             ['exclude', '^common/custom_handlers/'],
373             ['exclude', '^common/extensions/'],
374             ['exclude', '^common/external_ipc_fuzzer\\.'],
375             ['exclude', '^common/logging_chrome\\.'],
376             ['exclude', '^common/multi_process_'],
377             ['exclude', '^common/nacl_'],
378             ['exclude', '^common/pepper_flash\\.'],
379             ['exclude', '^common/profiling\\.'],
380             ['exclude', '^common/service_process_util_'],
381             ['exclude', '^common/spellcheck_'],
382             ['exclude', '^common/web_apps\\.'],
383             # TODO(ios): Include files here as they are made to work; once
384             # everything is online, remove everything below here and just
385             # use the exclusions above.
386             ['exclude', '\\.(cc|mm)$'],
387             ['include', '_ios\\.(cc|mm)$'],
388             ['include', '(^|/)ios/'],
389             ['include', '^common/chrome_version_info\\.cc$'],
390             ['include', '^common/zip'],
391           ],
392         }],
393         ['OS=="android"', {
394           'sources/': [
395             ['exclude', '^common/chrome_version_info_posix.cc'],
396             ['exclude', '^common/service_'],
397           ],
398           'dependencies!': [
399             '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
400           ],
401         }],
402         ['OS=="win"', {
403           'include_dirs': [
404             '<(DEPTH)/third_party/wtl/include',
405           ]
406         }],
407         ['toolkit_uses_gtk == 1', {
408           'dependencies': [
409             '../build/linux/system.gyp:gtk',
410           ],
411           'export_dependent_settings': [
412             '../third_party/sqlite/sqlite.gyp:sqlite',
413           ],
414           'link_settings': {
415             'libraries': [
416               '-lX11',
417               '-lXrender',
418               '-lXss',
419               '-lXext',
420             ],
421           },
422         }],
423         ['OS=="linux" and selinux==1', {
424           'dependencies': [
425             '../build/linux/system.gyp:selinux',
426           ],
427         }],
428         ['chromeos==1', {
429           'sources!': [
430             'common/chrome_version_info_linux.cc',
431           ],
432         }],
433         ['OS=="mac"', {
434           'dependencies': [
435             '../third_party/mach_override/mach_override.gyp:mach_override',
436           ],
437           'include_dirs': [
438             '../third_party/GTM',
439           ],
440           'sources!': [
441             'common/child_process_logging_posix.cc',
442             'common/chrome_version_info_posix.cc',
443           ],
444         }],
445         ['enable_extensions==1', {
446           'sources!': [
447             'common/extensions/api/extension_api_stub.cc',
448           ],
449           'dependencies': [
450             '../device/device.gyp:device_usb',
451           ],
452         }, {  # enable_extensions == 0
453           'sources/': [
454             ['exclude', '^common/extensions/api/'],
455             ['include', 'common/extensions/api/extension_api_stub.cc'],
456           ],
457         }],
458         ['remoting==1', {
459           'dependencies': [
460             '../remoting/remoting.gyp:remoting_client_plugin',
461           ],
462         }],
463       ],
464       'target_conditions': [
465         ['OS == "ios"', {
466           'sources/': [
467             # Pull in specific Mac files for iOS (which have been filtered out
468             # by file name rules).
469             ['include', '^common/chrome_version_info_mac\\.mm$'],
470             ['include', '^common/mac/nscoder_util\\.'],
471           ],
472         }],
473       ],
474       'export_dependent_settings': [
475         '../base/base.gyp:base',
476         'metrics_proto',
477       ],
478     },
479     {
480       'target_name': 'common_version',
481       'type': 'none',
482       'conditions': [
483         ['os_posix == 1 and OS != "mac" and OS != "ios"', {
484           'direct_dependent_settings': {
485             'include_dirs': [
486               '<(SHARED_INTERMEDIATE_DIR)',
487             ],
488           },
489           # Because posix_version generates a header, we must set the
490           # hard_dependency flag.
491           'hard_dependency': 1,
492           'actions': [
493             {
494               'action_name': 'posix_version',
495               'variables': {
496                 'lastchange_path':
497                   '<(DEPTH)/build/util/LASTCHANGE',
498                 'version_py_path': 'tools/build/version.py',
499                 'version_path': 'VERSION',
500                 'template_input_path': 'common/chrome_version_info_posix.h.version',
501               },
502               'conditions': [
503                 [ 'branding == "Chrome"', {
504                   'variables': {
505                      'branding_path':
506                        'app/theme/google_chrome/BRANDING',
507                   },
508                 }, { # else branding!="Chrome"
509                   'variables': {
510                      'branding_path':
511                        'app/theme/chromium/BRANDING',
512                   },
513                 }],
514               ],
515               'inputs': [
516                 '<(template_input_path)',
517                 '<(version_path)',
518                 '<(branding_path)',
519                 '<(lastchange_path)',
520               ],
521               'outputs': [
522                 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_posix.h',
523               ],
524               'action': [
525                 'python',
526                 '<(version_py_path)',
527                 '-f', '<(version_path)',
528                 '-f', '<(branding_path)',
529                 '-f', '<(lastchange_path)',
530                 '<(template_input_path)',
531                 '<@(_outputs)',
532               ],
533               'message': 'Generating version information',
534             },
535           ],
536         }],
537       ],
538     },
539     {
540       'target_name': 'common_net',
541       'type': 'static_library',
542       'sources': [
543         'common/net/net_resource_provider.cc',
544         'common/net/net_resource_provider.h',
545         'common/net/predictor_common.h',
546         'common/net/url_util.cc',
547         'common/net/url_util.h',
548         'common/net/x509_certificate_model.cc',
549         'common/net/x509_certificate_model_nss.cc',
550         'common/net/x509_certificate_model_openssl.cc',
551         'common/net/x509_certificate_model.h',
552       ],
553       'dependencies': [
554         '<(DEPTH)/base/base.gyp:base',
555         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
556         '<(DEPTH)/chrome/chrome_resources.gyp:chrome_strings',
557         '<(DEPTH)/crypto/crypto.gyp:crypto',
558         '<(DEPTH)/net/net.gyp:net_resources',
559         '<(DEPTH)/net/net.gyp:net',
560         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
561         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
562       ],
563       'conditions': [
564         ['OS != "ios"', {
565           'dependencies': [
566             '<(DEPTH)/gpu/gpu.gyp:gpu_ipc',
567           ],
568         }, {  # OS == ios
569           'sources!': [
570             'common/net/net_resource_provider.cc',
571             'common/net/x509_certificate_model.cc',
572           ],
573         }],
574         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
575             'dependencies': [
576               '../build/linux/system.gyp:ssl',
577             ],
578           },
579         ],
580         ['os_posix != 1 or OS == "mac" or OS == "ios"', {
581             'sources!': [
582               'common/net/x509_certificate_model_nss.cc',
583               'common/net/x509_certificate_model_openssl.cc',
584             ],
585           },
586         ],
587         ['OS == "android"', {
588             'dependencies': [
589               '../third_party/openssl/openssl.gyp:openssl',
590             ],
591           },
592         ],
593         ['use_openssl==1', {
594             'sources!': [
595               'common/net/x509_certificate_model_nss.cc',
596             ],
597           },
598           {  # else !use_openssl: remove the unneeded files
599             'sources!': [
600               'common/net/x509_certificate_model_openssl.cc',
601             ],
602           },
603         ],
604       ],
605     },
606     {
607       # Protobuf compiler / generator for the safebrowsing client
608       # model proto and the client-side detection (csd) request
609       # protocol buffer.
610       'target_name': 'safe_browsing_proto',
611       'type': 'static_library',
612       'sources': [
613         'common/safe_browsing/client_model.proto',
614         'common/safe_browsing/csd.proto'
615       ],
616       'variables': {
617         'proto_in_dir': 'common/safe_browsing',
618         'proto_out_dir': 'chrome/common/safe_browsing',
619       },
620       'includes': [ '../build/protoc.gypi' ],
621     },
622     {
623       # Protobuf compiler / generator for UMA (User Metrics Analysis).
624       'target_name': 'metrics_proto',
625       'type': 'static_library',
626       'sources': [
627         'common/metrics/proto/chrome_experiments.proto',
628         'common/metrics/proto/chrome_user_metrics_extension.proto',
629         'common/metrics/proto/histogram_event.proto',
630         'common/metrics/proto/omnibox_event.proto',
631         'common/metrics/proto/profiler_event.proto',
632         'common/metrics/proto/system_profile.proto',
633         'common/metrics/proto/user_action_event.proto',
634       ],
635       'variables': {
636         'proto_in_dir': 'common/metrics/proto',
637         'proto_out_dir': 'chrome/common/metrics/proto',
638       },
639       'includes': [ '../build/protoc.gypi' ],
640     },
641   ],