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 | 6 |
7 # GYP version: extensions/extensions.gyp:extensions_common | 7 # GYP version: extensions/extensions.gyp:extensions_common |
8 source_set("common") { | 8 source_set("common") { |
9 sources = [ | 9 sources = [ |
10 "api/messaging/message.h", | 10 "api/messaging/message.h", |
| 11 "api/bluetooth/bluetooth_manifest_data.cc", |
| 12 "api/bluetooth/bluetooth_manifest_data.h", |
| 13 "api/bluetooth/bluetooth_manifest_handler.cc", |
| 14 "api/bluetooth/bluetooth_manifest_handler.h", |
| 15 "api/bluetooth/bluetooth_manifest_permission.cc", |
| 16 "api/bluetooth/bluetooth_manifest_permission.h", |
11 "api/sockets/sockets_manifest_data.cc", | 17 "api/sockets/sockets_manifest_data.cc", |
12 "api/sockets/sockets_manifest_data.h", | 18 "api/sockets/sockets_manifest_data.h", |
13 "api/sockets/sockets_manifest_handler.cc", | 19 "api/sockets/sockets_manifest_handler.cc", |
14 "api/sockets/sockets_manifest_handler.h", | 20 "api/sockets/sockets_manifest_handler.h", |
15 "api/sockets/sockets_manifest_permission.cc", | 21 "api/sockets/sockets_manifest_permission.cc", |
16 "api/sockets/sockets_manifest_permission.h", | 22 "api/sockets/sockets_manifest_permission.h", |
17 "common_manifest_handlers.cc", | 23 "common_manifest_handlers.cc", |
18 "common_manifest_handlers.h", | 24 "common_manifest_handlers.h", |
19 "constants.cc", | 25 "constants.cc", |
20 "constants.h", | 26 "constants.h", |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 "//ui/gfx/ipc", | 206 "//ui/gfx/ipc", |
201 "//url", | 207 "//url", |
202 ] | 208 ] |
203 | 209 |
204 if (enable_extensions) { | 210 if (enable_extensions) { |
205 sources -= [ | 211 sources -= [ |
206 "extension_api_stub.cc", | 212 "extension_api_stub.cc", |
207 ] | 213 ] |
208 | 214 |
209 deps += [ | 215 deps += [ |
| 216 "//device/bluetooth", |
210 "//device/usb", | 217 "//device/usb", |
211 ] | 218 ] |
212 } else { | 219 } else { |
213 sources -= [ | 220 sources -= [ |
| 221 "api/bluetooth/bluetooth_manifest_data.cc", |
| 222 "api/bluetooth/bluetooth_manifest_data.h", |
| 223 "api/bluetooth/bluetooth_manifest_handler.cc", |
| 224 "api/bluetooth/bluetooth_manifest_handler.h", |
| 225 "api/bluetooth/bluetooth_manifest_permission.cc", |
| 226 "api/bluetooth/bluetooth_manifest_permission.h", |
214 "api/messaging/message.h", | 227 "api/messaging/message.h", |
215 "api/sockets/sockets_manifest_data.cc", | 228 "api/sockets/sockets_manifest_data.cc", |
216 "api/sockets/sockets_manifest_data.h", | 229 "api/sockets/sockets_manifest_data.h", |
217 "api/sockets/sockets_manifest_handler.cc", | 230 "api/sockets/sockets_manifest_handler.cc", |
218 "api/sockets/sockets_manifest_handler.h", | 231 "api/sockets/sockets_manifest_handler.h", |
219 "api/sockets/sockets_manifest_permission.cc", | 232 "api/sockets/sockets_manifest_permission.cc", |
220 "api/sockets/sockets_manifest_permission.h", | 233 "api/sockets/sockets_manifest_permission.h", |
221 "extension_api.cc", | 234 "extension_api.cc", |
222 "manifest_handlers/externally_connectable.cc", | 235 "manifest_handlers/externally_connectable.cc", |
223 "manifest_handlers/externally_connectable.h", | 236 "manifest_handlers/externally_connectable.h", |
224 ] | 237 ] |
225 } | 238 } |
226 | 239 |
227 if (enable_nacl) { | 240 if (enable_nacl) { |
228 sources += [ | 241 sources += [ |
229 "manifest_handlers/nacl_modules_handler.cc", | 242 "manifest_handlers/nacl_modules_handler.cc", |
230 "manifest_handlers/nacl_modules_handler.h", | 243 "manifest_handlers/nacl_modules_handler.h", |
231 ] | 244 ] |
232 } | 245 } |
233 | 246 |
234 if (is_win) { | 247 if (is_win) { |
235 cflags = [ | 248 cflags = [ |
236 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 249 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
237 ] | 250 ] |
238 } | 251 } |
239 } | 252 } |
OLD | NEW |