Fix import error in mac_platform_backend.py
[chromium-blink-merge.git] / extensions / extensions.gyp
blob8fa892119700c2efbf9d126f5d12bf4372034465
1 # Copyright 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     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'extensions_common',
12       'type': 'static_library',
13       'dependencies': [
14         '../third_party/re2/re2.gyp:re2',
15         # TODO(benwells): figure out what to do with the api target and
16         # api resources compiled into the chrome resource bundle.
17         # http://crbug.com/162530
18         '../chrome/chrome_resources.gyp:chrome_resources',
19         # TODO(jamescook|derat): Pull strings into extensions module.
20         '../chrome/chrome_resources.gyp:chrome_strings',
21         '../chrome/common/extensions/api/api.gyp:api',
22         '../components/components.gyp:url_matcher',
23         '../content/content.gyp:content_common',
24       ],
25       'include_dirs': [
26         '..',
27         '<(INTERMEDIATE_DIR)',
28       ],
29       'sources': [
30         'common/common_manifest_handlers.cc',
31         'common/common_manifest_handlers.h',
32         'common/crx_file.cc',
33         'common/crx_file.h',
34         'common/csp_validator.cc',
35         'common/csp_validator.h',
36         'common/draggable_region.cc',
37         'common/draggable_region.h',
38         'common/error_utils.cc',
39         'common/error_utils.h',
40         'common/event_filter.cc',
41         'common/event_filter.h',
42         'common/event_filtering_info.cc',
43         'common/event_filtering_info.h',
44         'common/event_matcher.cc',
45         'common/event_matcher.h',
46         'common/extension.cc',
47         'common/extension.h',
48         'common/extension_api.cc',
49         'common/extension_api.h',
50         'common/extension_api_stub.cc',
51         'common/extension_paths.cc',
52         'common/extension_paths.h',
53         'common/extension_resource.cc',
54         'common/extension_resource.h',
55         'common/extension_set.cc',
56         'common/extension_set.h',
57         'common/extension_urls.cc',
58         'common/extension_urls.h',
59         'common/extensions_client.cc',
60         'common/extensions_client.h',
61         'common/feature_switch.cc',
62         'common/feature_switch.h',
63         'common/features/feature.cc',
64         'common/features/feature.h',
65         'common/features/feature_provider.cc',
66         'common/features/feature_provider.h',
67         'common/file_util.cc',
68         'common/file_util.h',
69         'common/id_util.cc',
70         'common/id_util.h',
71         'common/install_warning.cc',
72         'common/install_warning.h',
73         'common/manifest.cc',
74         'common/manifest.h',
75         'common/manifest_constants.cc',
76         'common/manifest_constants.h',
77         'common/manifest_handler.cc',
78         'common/manifest_handler.h',
79         'common/manifest_handlers/background_info.cc',
80         'common/manifest_handlers/background_info.h',
81         'common/manifest_handlers/csp_info.cc',
82         'common/manifest_handlers/csp_info.h',
83         'common/manifest_handlers/incognito_info.cc',
84         'common/manifest_handlers/incognito_info.h',
85         'common/manifest_handlers/kiosk_mode_info.cc',
86         'common/manifest_handlers/kiosk_mode_info.h',
87         'common/manifest_handlers/offline_enabled_info.cc',
88         'common/manifest_handlers/offline_enabled_info.h',
89         'common/manifest_handlers/requirements_info.h',
90         'common/manifest_handlers/requirements_info.cc',
91         'common/manifest_handlers/sandboxed_page_info.cc',
92         'common/manifest_handlers/sandboxed_page_info.h',
93         'common/manifest_handlers/shared_module_info.cc',
94         'common/manifest_handlers/shared_module_info.h',
95         'common/manifest_handlers/web_accessible_resources_info.cc',
96         'common/manifest_handlers/web_accessible_resources_info.h',
97         'common/manifest_handlers/webview_info.cc',
98         'common/manifest_handlers/webview_info.h',
99         'common/one_shot_event.cc',
100         'common/one_shot_event.h',
101         'common/permissions/api_permission.cc',
102         'common/permissions/api_permission.h',
103         'common/permissions/api_permission_set.cc',
104         'common/permissions/api_permission_set.h',
105         'common/permissions/base_set_operators.h',
106         'common/permissions/manifest_permission.cc',
107         'common/permissions/manifest_permission.h',
108         'common/permissions/manifest_permission_set.cc',
109         'common/permissions/manifest_permission_set.h',
110         'common/permissions/permission_message.cc',
111         'common/permissions/permission_message.h',
112         'common/permissions/permission_message_provider.cc',
113         'common/permissions/permission_message_provider.h',
114         'common/permissions/permission_set.cc',
115         'common/permissions/permission_set.h',
116         'common/permissions/permissions_data.cc',
117         'common/permissions/permissions_data.h',
118         'common/permissions/permissions_info.cc',
119         'common/permissions/permissions_info.h',
120         'common/permissions/permissions_provider.h',
121         'common/stack_frame.cc',
122         'common/stack_frame.h',
123         'common/switches.cc',
124         'common/switches.h',
125         'common/url_pattern.cc',
126         'common/url_pattern.h',
127         'common/url_pattern_set.cc',
128         'common/url_pattern_set.h',
129         'common/user_script.cc',
130         'common/user_script.h',
131         'common/view_type.cc',
132         'common/view_type.h',
133       ],
134       # Disable c4267 warnings until we fix size_t to int truncations.
135       'msvs_disabled_warnings': [ 4267, ],
136       'conditions': [
137         ['enable_extensions==1', {
138           'sources!': [
139             'common/extension_api_stub.cc',
140           ],
141         }, {  # enable_extensions == 0
142           'sources!': [
143             'common/extension_api.cc',
144           ],
145         }],
146       ],
147     },
148     {
149       'target_name': 'extensions_browser',
150       'type': 'static_library',
151       'dependencies': [
152         'extensions_common',
153         # TODO(jamescook|derat): Pull strings into extensions module.
154         '../chrome/chrome_resources.gyp:chrome_strings',
155         '../chrome/common/extensions/api/api.gyp:api',
156         '../content/content.gyp:content_browser',
157         '../skia/skia.gyp:skia',
158       ],
159       'include_dirs': [
160         '..',
161         '<(INTERMEDIATE_DIR)',
162         # Needed to access generated API headers.
163         '<(SHARED_INTERMEDIATE_DIR)',
164         # Needed for grit.
165         '<(SHARED_INTERMEDIATE_DIR)/chrome',
166       ],
167       'sources': [
168         'browser/admin_policy.cc',
169         'browser/admin_policy.h',
170         'browser/api_activity_monitor.h',
171         'browser/app_sorting.h',
172         'browser/blacklist_state.h',
173         'browser/error_map.cc',
174         'browser/error_map.h',
175         'browser/event_listener_map.cc',
176         'browser/event_listener_map.h',
177         'browser/event_router.cc',
178         'browser/event_router.h',
179         'browser/extension_error.cc',
180         'browser/extension_error.h',
181         'browser/extension_function.cc',
182         'browser/extension_function.h',
183         'browser/extension_message_filter.cc',
184         'browser/extension_message_filter.h',
185         'browser/extension_pref_store.cc',
186         'browser/extension_pref_store.h',
187         'browser/extension_pref_value_map.cc',
188         'browser/extension_pref_value_map_factory.cc',
189         'browser/extension_pref_value_map_factory.h',
190         'browser/extension_pref_value_map.h',
191         'browser/extension_prefs.cc',
192         'browser/extension_prefs.h',
193         'browser/extension_prefs_factory.cc',
194         'browser/extension_prefs_factory.h',
195         'browser/extension_prefs_scope.h',
196         'browser/extension_registry.cc',
197         'browser/extension_registry.h',
198         'browser/extension_registry_factory.cc',
199         'browser/extension_registry_factory.h',
200         'browser/extension_registry_observer.h',
201         'browser/extension_scoped_prefs.h',
202         'browser/extension_system.cc',
203         'browser/extension_system.h',
204         'browser/extensions_browser_client.cc',
205         'browser/extensions_browser_client.h',
206         'browser/external_provider_interface.h',
207         'browser/info_map.cc',
208         'browser/info_map.h',
209         'browser/file_highlighter.cc',
210         'browser/file_highlighter.h',
211         'browser/file_reader.cc',
212         'browser/file_reader.h',
213         'browser/lazy_background_task_queue.cc',
214         'browser/lazy_background_task_queue.h',
215         'browser/management_policy.cc',
216         'browser/management_policy.h',
217         'browser/pending_extension_info.cc',
218         'browser/pending_extension_info.h',
219         'browser/pending_extension_manager.cc',
220         'browser/pending_extension_manager.h',
221         'browser/pref_names.cc',
222         'browser/pref_names.h',
223         'browser/process_manager.cc',
224         'browser/process_manager.h',
225         'browser/process_map.cc',
226         'browser/process_map.h',
227         'browser/process_map_factory.cc',
228         'browser/process_map_factory.h',
229         'browser/quota_service.cc',
230         'browser/quota_service.h',
231         'browser/renderer_startup_helper.cc',
232         'browser/renderer_startup_helper.h',
233         'browser/runtime_data.cc',
234         'browser/runtime_data.h',
235         'browser/update_observer.h',
236         'browser/view_type_utils.cc',
237         'browser/view_type_utils.h',
238       ],
239       # Disable c4267 warnings until we fix size_t to int truncations.
240       'msvs_disabled_warnings': [ 4267, ],
241     },
242     {
243       'target_name': 'extensions_test_support',
244       'type': 'static_library',
245       'dependencies': [
246         'extensions_browser',
247         'extensions_common',
248         '../base/base.gyp:base',
249       ],
250       'include_dirs': [
251         '..',
252       ],
253       'sources': [
254         'browser/test_management_policy.cc',
255         'browser/test_management_policy.h',
256         'common/extension_builder.cc',
257         'common/extension_builder.h',
258         'common/test_util.cc',
259         'common/test_util.h',
260         'common/value_builder.cc',
261         'common/value_builder.h',
262       ],
263       # Disable c4267 warnings until we fix size_t to int truncations.
264       'msvs_disabled_warnings': [ 4267, ],
265     },
266   ]