Revert of Enable OrientationEvent only for android. (https://codereview.chromium...
[chromium-blink-merge.git] / extensions / extensions.gyp
blobdfc66c10f48dea436649f80a457b0d639fa50b61
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         # TODO(benwells): figure out what to do with the api target and
15         # api resources compiled into the chrome resource bundle.
16         # http://crbug.com/162530
17         '../chrome/chrome_resources.gyp:chrome_resources',
18         # TODO(jamescook|derat): Pull strings into extensions module.
19         '../chrome/chrome_resources.gyp:chrome_strings',
20         '../chrome/common/extensions/api/api.gyp:api',
21         '../components/components.gyp:url_matcher',
22         '../content/content.gyp:content_common',
23         '../third_party/re2/re2.gyp:re2',
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/app_sorting.h',
171         'browser/event_listener_map.cc',
172         'browser/event_listener_map.h',
173         'browser/event_router.cc',
174         'browser/event_router.h',
175         'browser/extension_prefs_scope.h',
176         'browser/extension_error.cc',
177         'browser/extension_error.h',
178         'browser/extension_function.cc',
179         'browser/extension_function.h',
180         'browser/extension_registry.cc',
181         'browser/extension_registry.h',
182         'browser/extension_registry_factory.cc',
183         'browser/extension_registry_factory.h',
184         'browser/extensions_browser_client.cc',
185         'browser/extensions_browser_client.h',
186         'browser/external_provider_interface.h',
187         'browser/info_map.cc',
188         'browser/info_map.h',
189         'browser/file_highlighter.cc',
190         'browser/file_highlighter.h',
191         'browser/file_reader.cc',
192         'browser/file_reader.h',
193         'browser/lazy_background_task_queue.cc',
194         'browser/lazy_background_task_queue.h',
195         'browser/management_policy.cc',
196         'browser/management_policy.h',
197         'browser/pending_extension_info.cc',
198         'browser/pending_extension_info.h',
199         'browser/pending_extension_manager.cc',
200         'browser/pending_extension_manager.h',
201         'browser/pref_names.cc',
202         'browser/pref_names.h',
203         'browser/process_manager.cc',
204         'browser/process_manager.h',
205         'browser/process_map.cc',
206         'browser/process_map.h',
207         'browser/quota_service.cc',
208         'browser/quota_service.h',
209         'browser/update_observer.h',
210         'browser/view_type_utils.cc',
211         'browser/view_type_utils.h',
212       ],
213       # Disable c4267 warnings until we fix size_t to int truncations.
214       'msvs_disabled_warnings': [ 4267, ],
215     },
216     {
217       'target_name': 'extensions_test_support',
218       'type': 'static_library',
219       'dependencies': [
220         'extensions_browser',
221         'extensions_common',
222         '../base/base.gyp:base',
223       ],
224       'include_dirs': [
225         '..',
226       ],
227       'sources': [
228         'browser/test_management_policy.cc',
229         'browser/test_management_policy.h',
230         'common/extension_builder.cc',
231         'common/extension_builder.h',
232         'common/test_util.cc',
233         'common/test_util.h',
234         'common/value_builder.cc',
235         'common/value_builder.h',
236       ],
237       # Disable c4267 warnings until we fix size_t to int truncations.
238       'msvs_disabled_warnings': [ 4267, ],
239     },
240   ]