API for binary_dependencies, and import changes to call the new API.
[chromium-blink-merge.git] / components / components.gyp
blob52bd3e1ce05cbbcec42f13950e6497b2ca641722
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     'dom_distiller.gypi',
26     'domain_reliability.gypi',
27     'enhanced_bookmarks.gypi',
28     'error_page.gypi',
29     'favicon.gypi',
30     'favicon_base.gypi',
31     'gcm_driver.gypi',
32     'google.gypi',
33     'guest_view.gypi',
34     'handoff.gypi',
35     'history.gypi',
36     'infobars.gypi',
37     'invalidation.gypi',
38     'json_schema.gypi',
39     'keyed_service.gypi',
40     'language_usage_metrics.gypi',
41     'leveldb_proto.gypi',
42     'login.gypi',
43     'metrics.gypi',
44     'navigation_metrics.gypi',
45     'network_hints.gypi',
46     'network_time.gypi',
47     'offline_pages.gypi',
48     'omnibox.gypi',
49     'onc.gypi',
50     'os_crypt.gypi',
51     'ownership.gypi',
52     'packed_ct_ev_whitelist.gypi',
53     'password_manager.gypi',
54     'plugins.gypi',
55     'policy.gypi',
56     'precache.gypi',
57     'pref_registry.gypi',
58     'proxy_config.gypi',
59     'query_parser.gypi',
60     'rappor.gypi',
61     'renderer_context_menu.gypi',
62     'search.gypi',
63     'search_engines.gypi',
64     'search_provider_logos.gypi',
65     'sessions.gypi',
66     'signin.gypi',
67     'startup_metric_utils.gypi',
68     'suggestions.gypi',
69     'sync_driver.gypi',
70     'translate.gypi',
71     'ui_zoom.gypi',
72     'undo.gypi',
73     'update_client.gypi',
74     'url_fixer.gypi',
75     'url_matcher.gypi',
76     'user_prefs.gypi',
77     'variations.gypi',
78     'wallpaper.gypi',
79     'web_resource.gypi',
80     'webdata.gypi',
81     'webdata_services.gypi',
82   ],
83   'conditions': [
84     ['OS == "android"', {
85       'includes': [
86         'external_video_surface.gypi',
87         'service_tab_launcher.gypi',
88       ],
89     }],
90     ['OS != "ios"', {
91       'includes': [
92         'app_modal.gypi',
93         'browsing_data.gypi',
94         'cdm.gypi',
95         'devtools_discovery.gypi',
96         'devtools_http_handler.gypi',
97         'message_port.gypi',
98         'navigation_interception.gypi',
99         'power.gypi',
100         'safe_json.gypi',
101         'visitedlink.gypi',
102         'web_cache.gypi',
103         'web_contents_delegate_android.gypi',
104         'web_modal.gypi',
105       ],
106     }],
107     ['OS == "ios"', {
108       'includes': [
109         'open_from_clipboard.gypi',
110         'webp_transcode.gypi',
111       ],
112     }],
113     ['OS != "ios" and OS != "android"', {
114       'includes': [
115         'audio_modem.gypi',
116         'copresence.gypi',
117         'feedback.gypi',
118         'proximity_auth.gypi',
119         'storage_monitor.gypi',
120       ]
121     }],
122     ['chromeos == 1', {
123       'includes': [
124         'pairing.gypi',
125         'timers.gypi',
126         'wifi_sync.gypi',
127       ],
128     }],
129     ['OS == "win" or OS == "mac"', {
130       'includes': [
131         'wifi.gypi',
132       ],
133     }],
134     ['OS == "win"', {
135       'includes': [
136         'browser_watcher.gypi',
137       ],
138     }],
139     ['chromeos == 1 or use_ash == 1', {
140       'includes': [
141         'session_manager.gypi',
142         'user_manager.gypi',
143       ],
144     }],
145     ['toolkit_views==1', {
146       'includes': [
147         'constrained_window.gypi',
148       ],
149     }],
150     ['enable_basic_printing==1 or enable_print_preview==1', {
151       'includes': [
152         'printing.gypi',
153       ],
154     }],
155     ['enable_plugins==1', {
156       'includes': [
157         'pdf.gypi',
158       ],
159     }],
160     # TODO(tbarzic): Remove chromeos condition when there are non-chromeos apps
161     # in components/apps.
162     ['enable_extensions == 1 and chromeos == 1', {
163       'includes': [
164         'chrome_apps.gypi',
165       ],
166     }],
167     ['enable_rlz_support==1', {
168       'includes': [
169         'rlz.gypi',
170       ],
171     }]
172   ],