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 mojom("mojo") { | 8 mojom("mojo") { |
9 sources = [ | 9 sources = [ |
10 "stash.mojom", | 10 "stash.mojom", |
11 ] | 11 ] |
12 } | 12 } |
13 | 13 |
| 14 # GYP version: extensions/extensions.gyp:extensions_common_constants |
| 15 source_set("common_constants") { |
| 16 sources = [ |
| 17 "constants.cc", |
| 18 "constants.h", |
| 19 ] |
| 20 |
| 21 if (is_win) { |
| 22 cflags = [ |
| 23 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 24 ] |
| 25 } |
| 26 } |
| 27 |
14 # GYP version: extensions/extensions.gyp:extensions_common | 28 # GYP version: extensions/extensions.gyp:extensions_common |
15 source_set("common") { | 29 source_set("common") { |
16 sources = [ | 30 sources = [ |
17 "api/messaging/message.h", | 31 "api/messaging/message.h", |
18 "api/bluetooth/bluetooth_manifest_data.cc", | 32 "api/bluetooth/bluetooth_manifest_data.cc", |
19 "api/bluetooth/bluetooth_manifest_data.h", | 33 "api/bluetooth/bluetooth_manifest_data.h", |
20 "api/bluetooth/bluetooth_manifest_handler.cc", | 34 "api/bluetooth/bluetooth_manifest_handler.cc", |
21 "api/bluetooth/bluetooth_manifest_handler.h", | 35 "api/bluetooth/bluetooth_manifest_handler.h", |
22 "api/bluetooth/bluetooth_manifest_permission.cc", | 36 "api/bluetooth/bluetooth_manifest_permission.cc", |
23 "api/bluetooth/bluetooth_manifest_permission.h", | 37 "api/bluetooth/bluetooth_manifest_permission.h", |
24 "api/sockets/sockets_manifest_data.cc", | 38 "api/sockets/sockets_manifest_data.cc", |
25 "api/sockets/sockets_manifest_data.h", | 39 "api/sockets/sockets_manifest_data.h", |
26 "api/sockets/sockets_manifest_handler.cc", | 40 "api/sockets/sockets_manifest_handler.cc", |
27 "api/sockets/sockets_manifest_handler.h", | 41 "api/sockets/sockets_manifest_handler.h", |
28 "api/sockets/sockets_manifest_permission.cc", | 42 "api/sockets/sockets_manifest_permission.cc", |
29 "api/sockets/sockets_manifest_permission.h", | 43 "api/sockets/sockets_manifest_permission.h", |
30 "common_manifest_handlers.cc", | 44 "common_manifest_handlers.cc", |
31 "common_manifest_handlers.h", | 45 "common_manifest_handlers.h", |
32 "constants.cc", | |
33 "constants.h", | |
34 "csp_validator.cc", | 46 "csp_validator.cc", |
35 "csp_validator.h", | 47 "csp_validator.h", |
36 "dom_action_types.h", | 48 "dom_action_types.h", |
37 "draggable_region.cc", | 49 "draggable_region.cc", |
38 "draggable_region.h", | 50 "draggable_region.h", |
39 "error_utils.cc", | 51 "error_utils.cc", |
40 "error_utils.h", | 52 "error_utils.h", |
41 "event_filter.cc", | 53 "event_filter.cc", |
42 "event_filter.h", | 54 "event_filter.h", |
43 "event_filtering_info.cc", | 55 "event_filtering_info.cc", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 "url_pattern_set.h", | 206 "url_pattern_set.h", |
195 "user_script.cc", | 207 "user_script.cc", |
196 "user_script.h", | 208 "user_script.h", |
197 "value_counter.cc", | 209 "value_counter.cc", |
198 "value_counter.h", | 210 "value_counter.h", |
199 "view_type.cc", | 211 "view_type.cc", |
200 "view_type.h", | 212 "view_type.h", |
201 ] | 213 ] |
202 | 214 |
203 deps = [ | 215 deps = [ |
| 216 ":common_constants", |
204 ":mojo", | 217 ":mojo", |
205 # TODO(benwells): figure out what to do with the api target and | 218 # TODO(benwells): figure out what to do with the api target and |
206 # api resources compiled into the chrome resource bundle. | 219 # api resources compiled into the chrome resource bundle. |
207 # http://crbug.com/162530 | 220 # http://crbug.com/162530 |
208 "//chrome:resources", | 221 "//chrome:resources", |
209 "//components/crx_file", | 222 "//components/crx_file", |
210 "//components/url_matcher", | 223 "//components/url_matcher", |
211 "//content/public/common", | 224 "//content/public/common", |
212 "//crypto", | 225 "//crypto", |
213 "//extensions/strings", | 226 "//extensions/strings", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 "manifest_handlers/nacl_modules_handler.h", | 275 "manifest_handlers/nacl_modules_handler.h", |
263 ] | 276 ] |
264 } | 277 } |
265 | 278 |
266 if (is_win) { | 279 if (is_win) { |
267 cflags = [ | 280 cflags = [ |
268 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 281 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
269 ] | 282 ] |
270 } | 283 } |
271 } | 284 } |
OLD | NEW |