OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 # GYP version: extensions/extensions.gyp:extensions_common_constants | 8 # GYP version: extensions/extensions.gyp:extensions_common_constants |
9 source_set("common_constants") { | 9 source_set("common_constants") { |
10 sources = [ | 10 sources = [ |
11 "constants.cc", | 11 "constants.cc", |
12 "constants.h", | 12 "constants.h", |
13 ] | 13 ] |
14 | 14 |
15 if (is_win) { | 15 if (is_win) { |
16 cflags = [ | 16 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t
runcations. |
17 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 17 } |
| 18 } |
| 19 |
| 20 if (enable_extensions) { |
| 21 mojom("mojo") { |
| 22 sources = [ |
| 23 "mojo/keep_alive.mojom", |
| 24 "mojo/stash.mojom", |
18 ] | 25 ] |
19 } | 26 } |
20 } | 27 |
21 | 28 # GYP version: extensions/extensions.gyp:extensions_common |
22 if (enable_extensions) { | 29 source_set("common") { |
23 | 30 sources = [ |
24 mojom("mojo") { | 31 "api/messaging/message.h", |
25 sources = [ | 32 "api/bluetooth/bluetooth_manifest_data.cc", |
26 "mojo/keep_alive.mojom", | 33 "api/bluetooth/bluetooth_manifest_data.h", |
27 "mojo/stash.mojom", | 34 "api/bluetooth/bluetooth_manifest_handler.cc", |
28 ] | 35 "api/bluetooth/bluetooth_manifest_handler.h", |
29 } | 36 "api/bluetooth/bluetooth_manifest_permission.cc", |
30 | 37 "api/bluetooth/bluetooth_manifest_permission.h", |
31 | 38 "api/sockets/sockets_manifest_data.cc", |
32 # GYP version: extensions/extensions.gyp:extensions_common | 39 "api/sockets/sockets_manifest_data.h", |
33 source_set("common") { | 40 "api/sockets/sockets_manifest_handler.cc", |
34 sources = [ | 41 "api/sockets/sockets_manifest_handler.h", |
35 "api/messaging/message.h", | 42 "api/sockets/sockets_manifest_permission.cc", |
36 "api/bluetooth/bluetooth_manifest_data.cc", | 43 "api/sockets/sockets_manifest_permission.h", |
37 "api/bluetooth/bluetooth_manifest_data.h", | 44 "common_manifest_handlers.cc", |
38 "api/bluetooth/bluetooth_manifest_handler.cc", | 45 "common_manifest_handlers.h", |
39 "api/bluetooth/bluetooth_manifest_handler.h", | 46 "csp_validator.cc", |
40 "api/bluetooth/bluetooth_manifest_permission.cc", | 47 "csp_validator.h", |
41 "api/bluetooth/bluetooth_manifest_permission.h", | 48 "dom_action_types.h", |
42 "api/sockets/sockets_manifest_data.cc", | 49 "draggable_region.cc", |
43 "api/sockets/sockets_manifest_data.h", | 50 "draggable_region.h", |
44 "api/sockets/sockets_manifest_handler.cc", | 51 "error_utils.cc", |
45 "api/sockets/sockets_manifest_handler.h", | 52 "error_utils.h", |
46 "api/sockets/sockets_manifest_permission.cc", | 53 "event_filter.cc", |
47 "api/sockets/sockets_manifest_permission.h", | 54 "event_filter.h", |
48 "common_manifest_handlers.cc", | 55 "event_filtering_info.cc", |
49 "common_manifest_handlers.h", | 56 "event_filtering_info.h", |
50 "csp_validator.cc", | 57 "event_matcher.cc", |
51 "csp_validator.h", | 58 "event_matcher.h", |
52 "dom_action_types.h", | 59 "extension.cc", |
53 "draggable_region.cc", | 60 "extension.h", |
54 "draggable_region.h", | 61 "extension_api.cc", |
55 "error_utils.cc", | 62 "extension_api.h", |
56 "error_utils.h", | 63 "extension_icon_set.cc", |
57 "event_filter.cc", | 64 "extension_icon_set.h", |
58 "event_filter.h", | 65 "extension_l10n_util.cc", |
59 "event_filtering_info.cc", | 66 "extension_l10n_util.h", |
60 "event_filtering_info.h", | 67 "extension_message_generator.cc", |
61 "event_matcher.cc", | 68 "extension_message_generator.h", |
62 "event_matcher.h", | 69 "extension_messages.cc", |
63 "extension.cc", | 70 "extension_messages.h", |
64 "extension.h", | 71 "extension_paths.cc", |
65 "extension_api.cc", | 72 "extension_paths.h", |
66 "extension_api.h", | 73 "extension_resource.cc", |
67 "extension_icon_set.cc", | 74 "extension_resource.h", |
68 "extension_icon_set.h", | 75 "extension_set.cc", |
69 "extension_l10n_util.cc", | 76 "extension_set.h", |
70 "extension_l10n_util.h", | 77 "extension_urls.cc", |
71 "extension_message_generator.cc", | 78 "extension_urls.h", |
72 "extension_message_generator.h", | 79 "extensions_client.cc", |
73 "extension_messages.cc", | 80 "extensions_client.h", |
74 "extension_messages.h", | 81 "feature_switch.cc", |
75 "extension_paths.cc", | 82 "feature_switch.h", |
76 "extension_paths.h", | 83 "features/api_feature.cc", |
77 "extension_resource.cc", | 84 "features/api_feature.h", |
78 "extension_resource.h", | 85 "features/base_feature_provider.cc", |
79 "extension_set.cc", | 86 "features/base_feature_provider.h", |
80 "extension_set.h", | 87 "features/complex_feature.cc", |
81 "extension_urls.cc", | 88 "features/complex_feature.h", |
82 "extension_urls.h", | 89 "features/feature.cc", |
83 "extensions_client.cc", | 90 "features/feature.h", |
84 "extensions_client.h", | 91 "features/feature_provider.cc", |
85 "feature_switch.cc", | 92 "features/feature_provider.h", |
86 "feature_switch.h", | 93 "features/json_feature_provider_source.cc", |
87 "features/api_feature.cc", | 94 "features/json_feature_provider_source.h", |
88 "features/api_feature.h", | 95 "features/manifest_feature.cc", |
89 "features/base_feature_provider.cc", | 96 "features/manifest_feature.h", |
90 "features/base_feature_provider.h", | 97 "features/permission_feature.cc", |
91 "features/complex_feature.cc", | 98 "features/permission_feature.h", |
92 "features/complex_feature.h", | 99 "features/simple_feature.cc", |
93 "features/feature.cc", | 100 "features/simple_feature.h", |
94 "features/feature.h", | 101 "features/simple_feature_filter.cc", |
95 "features/feature_provider.cc", | 102 "features/simple_feature_filter.h", |
96 "features/feature_provider.h", | 103 "file_util.cc", |
97 "features/json_feature_provider_source.cc", | 104 "file_util.h", |
98 "features/json_feature_provider_source.h", | 105 "guest_view/guest_view_constants.cc", |
99 "features/manifest_feature.cc", | 106 "guest_view/guest_view_constants.h", |
100 "features/manifest_feature.h", | 107 "install_warning.cc", |
101 "features/permission_feature.cc", | 108 "install_warning.h", |
102 "features/permission_feature.h", | 109 "manifest.cc", |
103 "features/simple_feature.cc", | 110 "manifest.h", |
104 "features/simple_feature.h", | 111 "manifest_constants.cc", |
105 "features/simple_feature_filter.cc", | 112 "manifest_constants.h", |
106 "features/simple_feature_filter.h", | 113 "manifest_handler.cc", |
107 "file_util.cc", | 114 "manifest_handler.h", |
108 "file_util.h", | 115 "manifest_handler_helpers.cc", |
109 "guest_view/guest_view_constants.cc", | 116 "manifest_handler_helpers.h", |
110 "guest_view/guest_view_constants.h", | 117 "manifest_handlers/background_info.cc", |
111 "install_warning.cc", | 118 "manifest_handlers/background_info.h", |
112 "install_warning.h", | 119 "manifest_handlers/csp_info.cc", |
113 "manifest.cc", | 120 "manifest_handlers/csp_info.h", |
114 "manifest.h", | 121 "manifest_handlers/default_locale_handler.cc", |
115 "manifest_constants.cc", | 122 "manifest_handlers/default_locale_handler.h", |
116 "manifest_constants.h", | 123 "manifest_handlers/externally_connectable.cc", |
117 "manifest_handler.cc", | 124 "manifest_handlers/externally_connectable.h", |
118 "manifest_handler.h", | 125 "manifest_handlers/file_handler_info.cc", |
119 "manifest_handler_helpers.cc", | 126 "manifest_handlers/file_handler_info.h", |
120 "manifest_handler_helpers.h", | 127 "manifest_handlers/icons_handler.cc", |
121 "manifest_handlers/background_info.cc", | 128 "manifest_handlers/icons_handler.h", |
122 "manifest_handlers/background_info.h", | 129 "manifest_handlers/incognito_info.cc", |
123 "manifest_handlers/csp_info.cc", | 130 "manifest_handlers/incognito_info.h", |
124 "manifest_handlers/csp_info.h", | 131 "manifest_handlers/kiosk_mode_info.cc", |
125 "manifest_handlers/default_locale_handler.cc", | 132 "manifest_handlers/kiosk_mode_info.h", |
126 "manifest_handlers/default_locale_handler.h", | 133 "manifest_handlers/launcher_page_info.cc", |
127 "manifest_handlers/externally_connectable.cc", | 134 "manifest_handlers/launcher_page_info.h", |
128 "manifest_handlers/externally_connectable.h", | 135 "manifest_handlers/oauth2_manifest_handler.cc", |
129 "manifest_handlers/file_handler_info.cc", | 136 "manifest_handlers/oauth2_manifest_handler.h", |
130 "manifest_handlers/file_handler_info.h", | 137 "manifest_handlers/offline_enabled_info.cc", |
131 "manifest_handlers/icons_handler.cc", | 138 "manifest_handlers/offline_enabled_info.h", |
132 "manifest_handlers/icons_handler.h", | 139 "manifest_handlers/options_page_info.cc", |
133 "manifest_handlers/incognito_info.cc", | 140 "manifest_handlers/options_page_info.h", |
134 "manifest_handlers/incognito_info.h", | 141 "manifest_handlers/permissions_parser.cc", |
135 "manifest_handlers/kiosk_mode_info.cc", | 142 "manifest_handlers/permissions_parser.h", |
136 "manifest_handlers/kiosk_mode_info.h", | 143 "manifest_handlers/requirements_info.cc", |
137 "manifest_handlers/launcher_page_info.cc", | 144 "manifest_handlers/requirements_info.h", |
138 "manifest_handlers/launcher_page_info.h", | 145 "manifest_handlers/sandboxed_page_info.cc", |
139 "manifest_handlers/oauth2_manifest_handler.cc", | 146 "manifest_handlers/sandboxed_page_info.h", |
140 "manifest_handlers/oauth2_manifest_handler.h", | 147 "manifest_handlers/shared_module_info.cc", |
141 "manifest_handlers/offline_enabled_info.cc", | 148 "manifest_handlers/shared_module_info.h", |
142 "manifest_handlers/offline_enabled_info.h", | 149 "manifest_handlers/web_accessible_resources_info.cc", |
143 "manifest_handlers/options_page_info.cc", | 150 "manifest_handlers/web_accessible_resources_info.h", |
144 "manifest_handlers/options_page_info.h", | 151 "manifest_handlers/webview_info.cc", |
145 "manifest_handlers/permissions_parser.cc", | 152 "manifest_handlers/webview_info.h", |
146 "manifest_handlers/permissions_parser.h", | 153 "manifest_url_handlers.cc", |
147 "manifest_handlers/requirements_info.cc", | 154 "manifest_url_handlers.h", |
148 "manifest_handlers/requirements_info.h", | 155 "message_bundle.cc", |
149 "manifest_handlers/sandboxed_page_info.cc", | 156 "message_bundle.h", |
150 "manifest_handlers/sandboxed_page_info.h", | 157 "one_shot_event.cc", |
151 "manifest_handlers/shared_module_info.cc", | 158 "one_shot_event.h", |
152 "manifest_handlers/shared_module_info.h", | 159 "permissions/api_permission.cc", |
153 "manifest_handlers/web_accessible_resources_info.cc", | 160 "permissions/api_permission.h", |
154 "manifest_handlers/web_accessible_resources_info.h", | 161 "permissions/api_permission_set.cc", |
155 "manifest_handlers/webview_info.cc", | 162 "permissions/api_permission_set.h", |
156 "manifest_handlers/webview_info.h", | 163 "permissions/base_set_operators.h", |
157 "manifest_url_handlers.cc", | 164 "permissions/extensions_api_permissions.cc", |
158 "manifest_url_handlers.h", | 165 "permissions/extensions_api_permissions.h", |
159 "message_bundle.cc", | 166 "permissions/manifest_permission.cc", |
160 "message_bundle.h", | 167 "permissions/manifest_permission.h", |
161 "one_shot_event.cc", | 168 "permissions/manifest_permission_set.cc", |
162 "one_shot_event.h", | 169 "permissions/manifest_permission_set.h", |
163 "permissions/api_permission.cc", | 170 "permissions/media_galleries_permission.cc", |
164 "permissions/api_permission.h", | 171 "permissions/media_galleries_permission.h", |
165 "permissions/api_permission_set.cc", | 172 "permissions/media_galleries_permission_data.cc", |
166 "permissions/api_permission_set.h", | 173 "permissions/media_galleries_permission_data.h", |
167 "permissions/base_set_operators.h", | 174 "permissions/permission_message.cc", |
168 "permissions/extensions_api_permissions.cc", | 175 "permissions/permission_message.h", |
169 "permissions/extensions_api_permissions.h", | 176 "permissions/permission_message_provider.cc", |
170 "permissions/manifest_permission.cc", | 177 "permissions/permission_message_provider.h", |
171 "permissions/manifest_permission.h", | 178 "permissions/permission_message_util.cc", |
172 "permissions/manifest_permission_set.cc", | 179 "permissions/permission_message_util.h", |
173 "permissions/manifest_permission_set.h", | 180 "permissions/permission_set.cc", |
174 "permissions/media_galleries_permission.cc", | 181 "permissions/permission_set.h", |
175 "permissions/media_galleries_permission.h", | 182 "permissions/permissions_data.cc", |
176 "permissions/media_galleries_permission_data.cc", | 183 "permissions/permissions_data.h", |
177 "permissions/media_galleries_permission_data.h", | 184 "permissions/permissions_info.cc", |
178 "permissions/permission_message.cc", | 185 "permissions/permissions_info.h", |
179 "permissions/permission_message.h", | 186 "permissions/permissions_provider.h", |
180 "permissions/permission_message_provider.cc", | 187 "permissions/set_disjunction_permission.h", |
181 "permissions/permission_message_provider.h", | 188 "permissions/settings_override_permission.cc", |
182 "permissions/permission_message_util.cc", | 189 "permissions/settings_override_permission.h", |
183 "permissions/permission_message_util.h", | 190 "permissions/socket_permission.cc", |
184 "permissions/permission_set.cc", | 191 "permissions/socket_permission.h", |
185 "permissions/permission_set.h", | 192 "permissions/socket_permission_data.cc", |
186 "permissions/permissions_data.cc", | 193 "permissions/socket_permission_data.h", |
187 "permissions/permissions_data.h", | 194 "permissions/socket_permission_entry.cc", |
188 "permissions/permissions_info.cc", | 195 "permissions/socket_permission_entry.h", |
189 "permissions/permissions_info.h", | 196 "permissions/usb_device_permission.cc", |
190 "permissions/permissions_provider.h", | 197 "permissions/usb_device_permission.h", |
191 "permissions/set_disjunction_permission.h", | 198 "permissions/usb_device_permission_data.cc", |
192 "permissions/settings_override_permission.cc", | 199 "permissions/usb_device_permission_data.h", |
193 "permissions/settings_override_permission.h", | 200 "stack_frame.cc", |
194 "permissions/socket_permission.cc", | 201 "stack_frame.h", |
195 "permissions/socket_permission.h", | 202 "switches.cc", |
196 "permissions/socket_permission_data.cc", | 203 "switches.h", |
197 "permissions/socket_permission_data.h", | 204 "update_manifest.cc", |
198 "permissions/socket_permission_entry.cc", | 205 "update_manifest.h", |
199 "permissions/socket_permission_entry.h", | 206 "url_pattern.cc", |
200 "permissions/usb_device_permission.cc", | 207 "url_pattern.h", |
201 "permissions/usb_device_permission.h", | 208 "url_pattern_set.cc", |
202 "permissions/usb_device_permission_data.cc", | 209 "url_pattern_set.h", |
203 "permissions/usb_device_permission_data.h", | 210 "user_script.cc", |
204 "stack_frame.cc", | 211 "user_script.h", |
205 "stack_frame.h", | 212 "value_counter.cc", |
206 "switches.cc", | 213 "value_counter.h", |
207 "switches.h", | 214 "view_type.cc", |
208 "update_manifest.cc", | 215 "view_type.h", |
209 "update_manifest.h", | |
210 "url_pattern.cc", | |
211 "url_pattern.h", | |
212 "url_pattern_set.cc", | |
213 "url_pattern_set.h", | |
214 "user_script.cc", | |
215 "user_script.h", | |
216 "value_counter.cc", | |
217 "value_counter.h", | |
218 "view_type.cc", | |
219 "view_type.h", | |
220 ] | |
221 | |
222 deps = [ | |
223 ":common_constants", | |
224 ":mojo", | |
225 # TODO(benwells): figure out what to do with the api target and | |
226 # api resources compiled into the chrome resource bundle. | |
227 # http://crbug.com/162530 | |
228 "//chrome:resources", | |
229 "//components/crx_file", | |
230 "//components/url_matcher", | |
231 "//content/public/common", | |
232 "//crypto", | |
233 "//device/bluetooth", | |
234 "//device/usb", | |
235 "//extensions/common/api", | |
236 "//extensions/strings", | |
237 "//extensions:extensions_resources", | |
238 "//ipc", | |
239 "//net", | |
240 "//third_party/icu", | |
241 "//third_party/libxml", | |
242 "//third_party/re2", | |
243 "//ui/base", | |
244 "//ui/gfx/geometry", | |
245 "//ui/gfx/ipc", | |
246 "//url", | |
247 ] | |
248 | |
249 if (enable_nacl) { | |
250 sources += [ | |
251 "manifest_handlers/nacl_modules_handler.cc", | |
252 "manifest_handlers/nacl_modules_handler.h", | |
253 ] | 216 ] |
| 217 |
| 218 deps = [ |
| 219 ":common_constants", |
| 220 ":mojo", |
| 221 |
| 222 # TODO(benwells): figure out what to do with the api target and |
| 223 # api resources compiled into the chrome resource bundle. |
| 224 # http://crbug.com/162530 |
| 225 "//chrome:resources", |
| 226 "//components/crx_file", |
| 227 "//components/url_matcher", |
| 228 "//content/public/common", |
| 229 "//crypto", |
| 230 "//device/bluetooth", |
| 231 "//device/usb", |
| 232 "//extensions/common/api", |
| 233 "//extensions/strings", |
| 234 "//extensions:extensions_resources", |
| 235 "//ipc", |
| 236 "//net", |
| 237 "//third_party/icu", |
| 238 "//third_party/libxml", |
| 239 "//third_party/re2", |
| 240 "//ui/base", |
| 241 "//ui/gfx/geometry", |
| 242 "//ui/gfx/ipc", |
| 243 "//url", |
| 244 ] |
| 245 |
| 246 if (enable_nacl) { |
| 247 sources += [ |
| 248 "manifest_handlers/nacl_modules_handler.cc", |
| 249 "manifest_handlers/nacl_modules_handler.h", |
| 250 ] |
| 251 } |
| 252 |
| 253 if (is_win) { |
| 254 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int
truncations. |
| 255 } |
254 } | 256 } |
255 | 257 } # enable_extensions |
256 if (is_win) { | |
257 cflags = [ | |
258 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
259 ] | |
260 } | |
261 } | |
262 | |
263 } # enable_extensions | |
OLD | NEW |