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