Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: extensions/common/BUILD.gn

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc ('k') | extensions/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698