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

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

Issue 1415573014: Reland "Add Linux support for the Bluetooth API" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix. Created 5 years, 1 month 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
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 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/rules.gni") # For generate_jni(). 6 import("//build/config/android/rules.gni") # For generate_jni().
7 } 7 }
8 8
9 config("bluetooth_config") { 9 config("bluetooth_config") {
10 if (is_win) { 10 if (is_win) {
(...skipping 11 matching lines...) Expand all
22 component("bluetooth") { 22 component("bluetooth") {
23 sources = [ 23 sources = [
24 "android/bluetooth_jni_registrar.cc", 24 "android/bluetooth_jni_registrar.cc",
25 "android/bluetooth_jni_registrar.h", 25 "android/bluetooth_jni_registrar.h",
26 "android/wrappers.cc", 26 "android/wrappers.cc",
27 "android/wrappers.h", 27 "android/wrappers.h",
28 "bluetooth_adapter.cc", 28 "bluetooth_adapter.cc",
29 "bluetooth_adapter.h", 29 "bluetooth_adapter.h",
30 "bluetooth_adapter_android.cc", 30 "bluetooth_adapter_android.cc",
31 "bluetooth_adapter_android.h", 31 "bluetooth_adapter_android.h",
32 "bluetooth_adapter_chromeos.cc",
33 "bluetooth_adapter_chromeos.h",
34 "bluetooth_adapter_factory.cc", 32 "bluetooth_adapter_factory.cc",
35 "bluetooth_adapter_factory.h", 33 "bluetooth_adapter_factory.h",
36 "bluetooth_adapter_mac.h", 34 "bluetooth_adapter_mac.h",
37 "bluetooth_adapter_mac.mm", 35 "bluetooth_adapter_mac.mm",
38 "bluetooth_adapter_profile_chromeos.cc",
39 "bluetooth_adapter_profile_chromeos.h",
40 "bluetooth_adapter_win.cc", 36 "bluetooth_adapter_win.cc",
41 "bluetooth_adapter_win.h", 37 "bluetooth_adapter_win.h",
42 "bluetooth_advertisement.cc", 38 "bluetooth_advertisement.cc",
43 "bluetooth_advertisement.h", 39 "bluetooth_advertisement.h",
44 "bluetooth_advertisement_chromeos.cc",
45 "bluetooth_advertisement_chromeos.h",
46 "bluetooth_audio_sink.cc", 40 "bluetooth_audio_sink.cc",
47 "bluetooth_audio_sink.h", 41 "bluetooth_audio_sink.h",
48 "bluetooth_audio_sink_chromeos.cc",
49 "bluetooth_audio_sink_chromeos.h",
50 "bluetooth_channel_mac.h", 42 "bluetooth_channel_mac.h",
51 "bluetooth_channel_mac.mm", 43 "bluetooth_channel_mac.mm",
52 "bluetooth_classic_device_mac.h", 44 "bluetooth_classic_device_mac.h",
53 "bluetooth_classic_device_mac.mm", 45 "bluetooth_classic_device_mac.mm",
54 "bluetooth_device.cc", 46 "bluetooth_device.cc",
55 "bluetooth_device.h", 47 "bluetooth_device.h",
56 "bluetooth_device_android.cc", 48 "bluetooth_device_android.cc",
57 "bluetooth_device_android.h", 49 "bluetooth_device_android.h",
58 "bluetooth_device_chromeos.cc",
59 "bluetooth_device_chromeos.h",
60 "bluetooth_device_mac.h", 50 "bluetooth_device_mac.h",
61 "bluetooth_device_mac.mm", 51 "bluetooth_device_mac.mm",
62 "bluetooth_device_win.cc", 52 "bluetooth_device_win.cc",
63 "bluetooth_device_win.h", 53 "bluetooth_device_win.h",
64 "bluetooth_discovery_filter.cc", 54 "bluetooth_discovery_filter.cc",
65 "bluetooth_discovery_filter.h", 55 "bluetooth_discovery_filter.h",
66 "bluetooth_discovery_manager_mac.h", 56 "bluetooth_discovery_manager_mac.h",
67 "bluetooth_discovery_manager_mac.mm", 57 "bluetooth_discovery_manager_mac.mm",
68 "bluetooth_discovery_session.cc", 58 "bluetooth_discovery_session.cc",
69 "bluetooth_discovery_session.h", 59 "bluetooth_discovery_session.h",
70 "bluetooth_discovery_session_outcome.h", 60 "bluetooth_discovery_session_outcome.h",
71 "bluetooth_gatt_characteristic.cc", 61 "bluetooth_gatt_characteristic.cc",
72 "bluetooth_gatt_characteristic.h", 62 "bluetooth_gatt_characteristic.h",
73 "bluetooth_gatt_connection.cc", 63 "bluetooth_gatt_connection.cc",
74 "bluetooth_gatt_connection.h", 64 "bluetooth_gatt_connection.h",
75 "bluetooth_gatt_connection_chromeos.cc",
76 "bluetooth_gatt_connection_chromeos.h",
77 "bluetooth_gatt_descriptor.cc", 65 "bluetooth_gatt_descriptor.cc",
78 "bluetooth_gatt_descriptor.h", 66 "bluetooth_gatt_descriptor.h",
79 "bluetooth_gatt_notify_session.cc", 67 "bluetooth_gatt_notify_session.cc",
80 "bluetooth_gatt_notify_session.h", 68 "bluetooth_gatt_notify_session.h",
81 "bluetooth_gatt_notify_session_android.cc", 69 "bluetooth_gatt_notify_session_android.cc",
82 "bluetooth_gatt_notify_session_android.h", 70 "bluetooth_gatt_notify_session_android.h",
83 "bluetooth_gatt_notify_session_chromeos.cc",
84 "bluetooth_gatt_notify_session_chromeos.h",
85 "bluetooth_gatt_service.cc", 71 "bluetooth_gatt_service.cc",
86 "bluetooth_gatt_service.h", 72 "bluetooth_gatt_service.h",
87 "bluetooth_init_win.cc", 73 "bluetooth_init_win.cc",
88 "bluetooth_init_win.h", 74 "bluetooth_init_win.h",
89 "bluetooth_l2cap_channel_mac.h", 75 "bluetooth_l2cap_channel_mac.h",
90 "bluetooth_l2cap_channel_mac.mm", 76 "bluetooth_l2cap_channel_mac.mm",
91 "bluetooth_low_energy_central_manager_delegate.h", 77 "bluetooth_low_energy_central_manager_delegate.h",
92 "bluetooth_low_energy_central_manager_delegate.mm", 78 "bluetooth_low_energy_central_manager_delegate.mm",
93 "bluetooth_low_energy_defs_win.cc", 79 "bluetooth_low_energy_defs_win.cc",
94 "bluetooth_low_energy_defs_win.h", 80 "bluetooth_low_energy_defs_win.h",
95 "bluetooth_low_energy_device_mac.h", 81 "bluetooth_low_energy_device_mac.h",
96 "bluetooth_low_energy_device_mac.mm", 82 "bluetooth_low_energy_device_mac.mm",
97 "bluetooth_low_energy_discovery_manager_mac.h", 83 "bluetooth_low_energy_discovery_manager_mac.h",
98 "bluetooth_low_energy_discovery_manager_mac.mm", 84 "bluetooth_low_energy_discovery_manager_mac.mm",
99 "bluetooth_low_energy_win.cc", 85 "bluetooth_low_energy_win.cc",
100 "bluetooth_low_energy_win.h", 86 "bluetooth_low_energy_win.h",
101 "bluetooth_pairing_chromeos.cc",
102 "bluetooth_pairing_chromeos.h",
103 "bluetooth_remote_gatt_characteristic_android.cc", 87 "bluetooth_remote_gatt_characteristic_android.cc",
104 "bluetooth_remote_gatt_characteristic_android.h", 88 "bluetooth_remote_gatt_characteristic_android.h",
105 "bluetooth_remote_gatt_characteristic_chromeos.cc",
106 "bluetooth_remote_gatt_characteristic_chromeos.h",
107 "bluetooth_remote_gatt_descriptor_chromeos.cc",
108 "bluetooth_remote_gatt_descriptor_chromeos.h",
109 "bluetooth_remote_gatt_service_android.cc", 89 "bluetooth_remote_gatt_service_android.cc",
110 "bluetooth_remote_gatt_service_android.h", 90 "bluetooth_remote_gatt_service_android.h",
111 "bluetooth_remote_gatt_service_chromeos.cc",
112 "bluetooth_remote_gatt_service_chromeos.h",
113 "bluetooth_rfcomm_channel_mac.h", 91 "bluetooth_rfcomm_channel_mac.h",
114 "bluetooth_rfcomm_channel_mac.mm", 92 "bluetooth_rfcomm_channel_mac.mm",
115 "bluetooth_service_record_win.cc", 93 "bluetooth_service_record_win.cc",
116 "bluetooth_service_record_win.h", 94 "bluetooth_service_record_win.h",
117 "bluetooth_socket.cc", 95 "bluetooth_socket.cc",
118 "bluetooth_socket.h", 96 "bluetooth_socket.h",
119 "bluetooth_socket_chromeos.cc",
120 "bluetooth_socket_chromeos.h",
121 "bluetooth_socket_mac.h", 97 "bluetooth_socket_mac.h",
122 "bluetooth_socket_mac.mm", 98 "bluetooth_socket_mac.mm",
123 "bluetooth_socket_net.cc", 99 "bluetooth_socket_net.cc",
124 "bluetooth_socket_net.h", 100 "bluetooth_socket_net.h",
125 "bluetooth_socket_thread.cc", 101 "bluetooth_socket_thread.cc",
126 "bluetooth_socket_thread.h", 102 "bluetooth_socket_thread.h",
127 "bluetooth_socket_win.cc", 103 "bluetooth_socket_win.cc",
128 "bluetooth_socket_win.h", 104 "bluetooth_socket_win.h",
129 "bluetooth_task_manager_win.cc", 105 "bluetooth_task_manager_win.cc",
130 "bluetooth_task_manager_win.h", 106 "bluetooth_task_manager_win.h",
(...skipping 12 matching lines...) Expand all
143 "//crypto", 119 "//crypto",
144 "//net", 120 "//net",
145 "//ui/base", 121 "//ui/base",
146 ] 122 ]
147 123
148 if (is_android) { 124 if (is_android) {
149 deps += [ ":jni_headers" ] 125 deps += [ ":jni_headers" ]
150 } 126 }
151 127
152 if (is_chromeos) { 128 if (is_chromeos) {
153 deps += [ 129 deps += [ "//chromeos" ]
154 "//chromeos", 130 }
155 "//dbus", 131
156 ] 132 if (is_chromeos || is_linux) {
133 deps += [ "//dbus" ]
157 } 134 }
158 135
159 if (is_mac) { 136 if (is_mac) {
160 libs = [ "IOBluetooth.framework" ] 137 libs = [ "IOBluetooth.framework" ]
161 } 138 }
162 139
163 if (is_win) { 140 if (is_win) {
164 libs = [ "setupapi.lib" ] 141 libs = [ "setupapi.lib" ]
165 } 142 }
166 143
167 # This block will also build for Linux once we write the linux 144 if (is_chromeos || is_linux) {
168 # implementation of BluezDbusManager.
169 if (is_chromeos) {
170 defines += [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ]
171 sources += [ 145 sources += [
146 "bluetooth_adapter_bluez.cc",
147 "bluetooth_adapter_bluez.h",
148 "bluetooth_adapter_profile_bluez.cc",
149 "bluetooth_adapter_profile_bluez.h",
150 "bluetooth_advertisement_bluez.cc",
151 "bluetooth_advertisement_bluez.h",
152 "bluetooth_audio_sink_bluez.cc",
153 "bluetooth_audio_sink_bluez.h",
154 "bluetooth_device_bluez.cc",
155 "bluetooth_device_bluez.h",
156 "bluetooth_gatt_connection_bluez.cc",
157 "bluetooth_gatt_connection_bluez.h",
158 "bluetooth_gatt_notify_session_bluez.cc",
159 "bluetooth_gatt_notify_session_bluez.h",
160 "bluetooth_pairing_bluez.cc",
161 "bluetooth_pairing_bluez.h",
162 "bluetooth_remote_gatt_characteristic_bluez.cc",
163 "bluetooth_remote_gatt_characteristic_bluez.h",
164 "bluetooth_remote_gatt_descriptor_bluez.cc",
165 "bluetooth_remote_gatt_descriptor_bluez.h",
166 "bluetooth_remote_gatt_service_bluez.cc",
167 "bluetooth_remote_gatt_service_bluez.h",
168 "bluetooth_socket_bluez.cc",
169 "bluetooth_socket_bluez.h",
172 "dbus/bluetooth_adapter_client.cc", 170 "dbus/bluetooth_adapter_client.cc",
173 "dbus/bluetooth_adapter_client.h", 171 "dbus/bluetooth_adapter_client.h",
174 "dbus/bluetooth_agent_manager_client.cc", 172 "dbus/bluetooth_agent_manager_client.cc",
175 "dbus/bluetooth_agent_manager_client.h", 173 "dbus/bluetooth_agent_manager_client.h",
176 "dbus/bluetooth_agent_service_provider.cc", 174 "dbus/bluetooth_agent_service_provider.cc",
177 "dbus/bluetooth_agent_service_provider.h", 175 "dbus/bluetooth_agent_service_provider.h",
178 "dbus/bluetooth_dbus_client_bundle.cc", 176 "dbus/bluetooth_dbus_client_bundle.cc",
179 "dbus/bluetooth_dbus_client_bundle.h", 177 "dbus/bluetooth_dbus_client_bundle.h",
180 "dbus/bluetooth_device_client.cc", 178 "dbus/bluetooth_device_client.cc",
181 "dbus/bluetooth_device_client.h", 179 "dbus/bluetooth_device_client.h",
(...skipping 23 matching lines...) Expand all
205 "dbus/bluetooth_media_endpoint_service_provider.h", 203 "dbus/bluetooth_media_endpoint_service_provider.h",
206 "dbus/bluetooth_media_transport_client.cc", 204 "dbus/bluetooth_media_transport_client.cc",
207 "dbus/bluetooth_media_transport_client.h", 205 "dbus/bluetooth_media_transport_client.h",
208 "dbus/bluetooth_profile_manager_client.cc", 206 "dbus/bluetooth_profile_manager_client.cc",
209 "dbus/bluetooth_profile_manager_client.h", 207 "dbus/bluetooth_profile_manager_client.h",
210 "dbus/bluetooth_profile_service_provider.cc", 208 "dbus/bluetooth_profile_service_provider.cc",
211 "dbus/bluetooth_profile_service_provider.h", 209 "dbus/bluetooth_profile_service_provider.h",
212 "dbus/bluez_dbus_client.h", 210 "dbus/bluez_dbus_client.h",
213 "dbus/bluez_dbus_manager.cc", 211 "dbus/bluez_dbus_manager.cc",
214 "dbus/bluez_dbus_manager.h", 212 "dbus/bluez_dbus_manager.h",
213 "dbus/dbus_thread_manager_linux.cc",
214 "dbus/dbus_thread_manager_linux.h",
215 "dbus/fake_bluetooth_adapter_client.cc", 215 "dbus/fake_bluetooth_adapter_client.cc",
216 "dbus/fake_bluetooth_adapter_client.h", 216 "dbus/fake_bluetooth_adapter_client.h",
217 "dbus/fake_bluetooth_agent_manager_client.cc", 217 "dbus/fake_bluetooth_agent_manager_client.cc",
218 "dbus/fake_bluetooth_agent_manager_client.h", 218 "dbus/fake_bluetooth_agent_manager_client.h",
219 "dbus/fake_bluetooth_agent_service_provider.cc", 219 "dbus/fake_bluetooth_agent_service_provider.cc",
220 "dbus/fake_bluetooth_agent_service_provider.h", 220 "dbus/fake_bluetooth_agent_service_provider.h",
221 "dbus/fake_bluetooth_device_client.cc", 221 "dbus/fake_bluetooth_device_client.cc",
222 "dbus/fake_bluetooth_device_client.h", 222 "dbus/fake_bluetooth_device_client.h",
223 "dbus/fake_bluetooth_gatt_characteristic_client.cc", 223 "dbus/fake_bluetooth_gatt_characteristic_client.cc",
224 "dbus/fake_bluetooth_gatt_characteristic_client.h", 224 "dbus/fake_bluetooth_gatt_characteristic_client.h",
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 jni_package = "bluetooth" 303 jni_package = "bluetooth"
304 } 304 }
305 305
306 android_library("java") { 306 android_library("java") {
307 java_files = java_sources_needing_jni 307 java_files = java_sources_needing_jni
308 deps = [ 308 deps = [
309 "//base:base_java", 309 "//base:base_java",
310 ] 310 ]
311 } 311 }
312 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698