Fix crash on app list start page contents not existing.
[chromium-blink-merge.git] / components / components.gyp
blobdb6d9b0b44e60985fcc50a32a4702029cdd4a927
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     # This turns on e.g. the filename-based detection of which
8     # platforms to include source files on (e.g. files ending in
9     # _mac.h or _mac.cc are only compiled on MacOSX).
10     'chromium_code': 1,
11   },
12   'includes': [
13     'auto_login_parser.gypi',
14     'autofill.gypi',
15     'bookmarks.gypi',
16     'captive_portal.gypi',
17     'cloud_devices.gypi',
18     'component_updater.gypi',
19     'content_settings.gypi',
20     'crash.gypi',
21     'cronet.gypi',
22     'crx_file.gypi',
23     'data_reduction_proxy.gypi',
24     'device_event_log.gypi',
25     'network_hints.gypi',
26     'dom_distiller.gypi',
27     'domain_reliability.gypi',
28     'enhanced_bookmarks.gypi',
29     'error_page.gypi',
30     'favicon.gypi',
31     'favicon_base.gypi',
32     'google.gypi',
33     'handoff.gypi',
34     'history.gypi',
35     'infobars.gypi',
36     'json_schema.gypi',
37     'keyed_service.gypi',
38     'language_usage_metrics.gypi',
39     'leveldb_proto.gypi',
40     'login.gypi',
41     'metrics.gypi',
42     'navigation_metrics.gypi',
43     'network_time.gypi',
44     'onc.gypi',
45     'os_crypt.gypi',
46     'ownership.gypi',
47     'packed_ct_ev_whitelist.gypi',
48     'password_manager.gypi',
49     'policy.gypi',
50     'precache.gypi',
51     'pref_registry.gypi',
52     'query_parser.gypi',
53     'rappor.gypi',
54     'search.gypi',
55     'search_provider_logos.gypi',
56     'sessions.gypi',
57     'signin.gypi',
58     'startup_metric_utils.gypi',
59     'suggestions.gypi',
60     'translate.gypi',
61     'ui_zoom.gypi',
62     'update_client.gypi',
63     'url_fixer.gypi',
64     'url_matcher.gypi',
65     'user_prefs.gypi',
66     'variations.gypi',
67     'wallpaper.gypi',
68     'webdata.gypi',
69     'web_resource.gypi',
70   ],
71   'conditions': [
72     ['OS != "ios"', {
73       'includes': [
74         'app_modal.gypi',
75         'cdm.gypi',
76         'navigation_interception.gypi',
77         'plugins.gypi',
78         'power.gypi',
79         'visitedlink.gypi',
80         'web_cache.gypi',
81         'web_contents_delegate_android.gypi',
82         'web_modal.gypi',
83       ],
84     }],
85     ['OS == "ios"', {
86       'includes': [
87         'open_from_clipboard.gypi',
88         'webp_transcode.gypi',
89       ],
90     }],
91     ['OS != "android"', {
92       'includes': [
93         'feedback.gypi',
94       ]
95     }],
96     ['OS != "ios" and OS != "android"', {
97       'includes': [
98         'audio_modem.gypi',
99         'copresence.gypi',
100         'proximity_auth.gypi',
101         'storage_monitor.gypi',
102       ]
103     }],
104     ['chromeos == 1', {
105       'includes': [
106         'pairing.gypi',
107         'timers.gypi',
108         'wifi_sync.gypi',
109       ],
110     }],
111     ['OS == "win" or OS == "mac"', {
112       'includes': [
113         'wifi.gypi',
114       ],
115     }],
116     ['OS == "win"', {
117       'includes': [
118         'browser_watcher.gypi',
119       ],
120     }],
121     ['chromeos == 1 or use_ash == 1', {
122       'includes': [
123         'session_manager.gypi',
124         'user_manager.gypi',
125       ],
126     }],
127     ['toolkit_views==1', {
128       'includes': [
129         'constrained_window.gypi',
130       ],
131     }],
132     ['android_webview_build == 0', {
133       # Android WebView fails to build if a dependency on these targets is
134       # introduced.
135       'includes': [
136         'gcm_driver.gypi',
137         'omnibox.gypi',
138         'renderer_context_menu.gypi',
139         'search_engines.gypi',
140         'sync_driver.gypi',
141         'invalidation.gypi',
142         'webdata_services.gypi',
143       ],
144     }],
145     ['enable_basic_printing==1 or enable_print_preview==1', {
146       'includes': [
147         'printing.gypi',
148       ],
149     }],
150     ['enable_plugins==1', {
151       'includes': [
152         'pdf.gypi',
153       ],
154     }],
155   ],