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

Side by Side Diff: device/bluetooth/BUILD.gn

Issue 394033002: Add gcm, nfc and bluetooth to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « components/signin/ios/browser/BUILD.gn ('k') | device/bluetooth/bluetooth.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//tools/grit/grit_rule.gni")
6
7 config("bluetooth_config") {
8 if (is_win) {
9 ldflags = [
10 # Despite MSDN stating that Bthprops.dll contains the
11 # symbols declared by bthprops.lib, they actually reside here:
12 "/DELAYLOAD:Bthprops.cpl",
13 "/DELAYLOAD:setupapi.dll",
14 ]
15 }
16 }
17
18 static_library("bluetooth") {
19 sources = [
20 "bluetooth_adapter.cc",
21 "bluetooth_adapter.h",
22 "bluetooth_adapter_chromeos.cc",
23 "bluetooth_adapter_chromeos.h",
24 "bluetooth_adapter_factory.cc",
25 "bluetooth_adapter_factory.h",
26 "bluetooth_adapter_mac.h",
27 "bluetooth_adapter_mac.mm",
28 "bluetooth_adapter_win.cc",
29 "bluetooth_adapter_win.h",
30 "bluetooth_channel_mac.mm",
31 "bluetooth_channel_mac.h",
32 "bluetooth_device.cc",
33 "bluetooth_device.h",
34 "bluetooth_device_chromeos.cc",
35 "bluetooth_device_chromeos.h",
36 "bluetooth_device_mac.h",
37 "bluetooth_device_mac.mm",
38 "bluetooth_device_win.cc",
39 "bluetooth_device_win.h",
40 "bluetooth_discovery_manager_mac.mm",
41 "bluetooth_discovery_manager_mac.h",
42 "bluetooth_discovery_session.cc",
43 "bluetooth_discovery_session.h",
44 "bluetooth_gatt_characteristic.cc",
45 "bluetooth_gatt_characteristic.h",
46 "bluetooth_gatt_connection.cc",
47 "bluetooth_gatt_connection.h",
48 "bluetooth_gatt_connection_chromeos.cc",
49 "bluetooth_gatt_connection_chromeos.h",
50 "bluetooth_gatt_descriptor.cc",
51 "bluetooth_gatt_descriptor.h",
52 "bluetooth_gatt_notify_session.cc",
53 "bluetooth_gatt_notify_session.h",
54 "bluetooth_gatt_notify_session_chromeos.cc",
55 "bluetooth_gatt_notify_session_chromeos.h",
56 "bluetooth_gatt_service.cc",
57 "bluetooth_gatt_service.h",
58 "bluetooth_init_win.cc",
59 "bluetooth_init_win.h",
60 "bluetooth_l2cap_channel_mac.mm",
61 "bluetooth_l2cap_channel_mac.h",
62 "bluetooth_low_energy_win.cc",
63 "bluetooth_low_energy_win.h",
64 "bluetooth_pairing_chromeos.cc",
65 "bluetooth_pairing_chromeos.h",
66 "bluetooth_remote_gatt_characteristic_chromeos.cc",
67 "bluetooth_remote_gatt_characteristic_chromeos.h",
68 "bluetooth_remote_gatt_descriptor_chromeos.cc",
69 "bluetooth_remote_gatt_descriptor_chromeos.h",
70 "bluetooth_remote_gatt_service_chromeos.cc",
71 "bluetooth_remote_gatt_service_chromeos.h",
72 "bluetooth_rfcomm_channel_mac.mm",
73 "bluetooth_rfcomm_channel_mac.h",
74 "bluetooth_service_record_win.cc",
75 "bluetooth_service_record_win.h",
76 "bluetooth_socket.cc",
77 "bluetooth_socket.h",
78 "bluetooth_socket_chromeos.cc",
79 "bluetooth_socket_chromeos.h",
80 "bluetooth_socket_mac.h",
81 "bluetooth_socket_mac.mm",
82 "bluetooth_socket_net.cc",
83 "bluetooth_socket_net.h",
84 "bluetooth_socket_thread.cc",
85 "bluetooth_socket_thread.h",
86 "bluetooth_socket_win.cc",
87 "bluetooth_socket_win.h",
88 "bluetooth_task_manager_win.cc",
89 "bluetooth_task_manager_win.h",
90 "bluetooth_uuid.cc",
91 "bluetooth_uuid.h",
92 ]
93
94 all_dependent_configs = [ ":bluetooth_config" ]
95
96 deps = [
97 ":strings",
98 "//base",
99 "//base/third_party/dynamic_annotations",
100 "//net",
101 "//third_party/libxml",
102 "//ui/base",
103 "//ui/gfx",
104 "//ui/gfx/geometry",
105 ]
106
107 if (is_chromeos) {
108 deps += [
109 "//dbus",
110 #'../../chromeos/chromeos.gyp:chromeos', TODO(GYP)
111 ]
112 }
113
114 if (is_mac) {
115 libs = [ "IOBluetooth.framework" ]
116 }
117 }
118
119 grit("strings") {
120 visibility = ":*"
121 source = "bluetooth_strings.grd"
122 }
123
124 static_library("mocks") {
125 sources = [
126 "test/mock_bluetooth_adapter.cc",
127 "test/mock_bluetooth_adapter.h",
128 "test/mock_bluetooth_device.cc",
129 "test/mock_bluetooth_device.h",
130 "test/mock_bluetooth_discovery_session.cc",
131 "test/mock_bluetooth_discovery_session.h",
132 "test/mock_bluetooth_gatt_characteristic.cc",
133 "test/mock_bluetooth_gatt_characteristic.h",
134 "test/mock_bluetooth_gatt_connection.cc",
135 "test/mock_bluetooth_gatt_connection.h",
136 "test/mock_bluetooth_gatt_descriptor.cc",
137 "test/mock_bluetooth_gatt_descriptor.h",
138 "test/mock_bluetooth_gatt_notify_session.cc",
139 "test/mock_bluetooth_gatt_notify_session.h",
140 "test/mock_bluetooth_gatt_service.cc",
141 "test/mock_bluetooth_gatt_service.h",
142 "test/mock_bluetooth_socket.cc",
143 "test/mock_bluetooth_socket.h",
144 ]
145
146 deps = [
147 ":bluetooth",
148 "//testing/gmock",
149 ]
150 }
OLDNEW
« no previous file with comments | « components/signin/ios/browser/BUILD.gn ('k') | device/bluetooth/bluetooth.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698