Chromium Code Reviews| 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 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 ] | 150 ] |
| 151 } | 151 } |
| 152 | 152 |
| 153 if (is_mac) { | 153 if (is_mac) { |
| 154 libs = [ "IOBluetooth.framework" ] | 154 libs = [ "IOBluetooth.framework" ] |
| 155 } | 155 } |
| 156 | 156 |
| 157 if (is_win) { | 157 if (is_win) { |
| 158 libs = [ "setupapi.lib" ] | 158 libs = [ "setupapi.lib" ] |
| 159 } | 159 } |
| 160 | |
| 161 if (is_chromeos || is_linux) { | |
| 162 defines += [ "CHROMEOS_IMPLEMENTATION" ] | |
|
stevenjb
2015/09/17 21:48:01
DEVICE_BLUETOOTH_IMPLEMENTATION
rkc
2015/09/21 18:54:22
Done.
| |
| 163 sources += [ | |
| 164 "dbus/bluetooth_adapter_client.cc", | |
| 165 "dbus/bluetooth_adapter_client.h", | |
| 166 "dbus/bluetooth_agent_manager_client.cc", | |
| 167 "dbus/bluetooth_agent_manager_client.h", | |
| 168 "dbus/bluetooth_agent_service_provider.cc", | |
| 169 "dbus/bluetooth_agent_service_provider.h", | |
| 170 "dbus/bluetooth_dbus_client_bundle.cc", | |
| 171 "dbus/bluetooth_dbus_client_bundle.h", | |
| 172 "dbus/bluetooth_device_client.cc", | |
| 173 "dbus/bluetooth_device_client.h", | |
| 174 "dbus/bluetooth_gatt_characteristic_client.cc", | |
| 175 "dbus/bluetooth_gatt_characteristic_client.h", | |
| 176 "dbus/bluetooth_gatt_characteristic_service_provider.cc", | |
| 177 "dbus/bluetooth_gatt_characteristic_service_provider.h", | |
| 178 "dbus/bluetooth_gatt_descriptor_client.cc", | |
| 179 "dbus/bluetooth_gatt_descriptor_client.h", | |
| 180 "dbus/bluetooth_gatt_descriptor_service_provider.cc", | |
| 181 "dbus/bluetooth_gatt_descriptor_service_provider.h", | |
| 182 "dbus/bluetooth_gatt_manager_client.cc", | |
| 183 "dbus/bluetooth_gatt_manager_client.h", | |
| 184 "dbus/bluetooth_gatt_service_client.cc", | |
| 185 "dbus/bluetooth_gatt_service_client.h", | |
| 186 "dbus/bluetooth_gatt_service_service_provider.cc", | |
| 187 "dbus/bluetooth_gatt_service_service_provider.h", | |
| 188 "dbus/bluetooth_input_client.cc", | |
| 189 "dbus/bluetooth_input_client.h", | |
| 190 "dbus/bluetooth_le_advertisement_service_provider.cc", | |
| 191 "dbus/bluetooth_le_advertisement_service_provider.h", | |
| 192 "dbus/bluetooth_le_advertising_manager_client.cc", | |
| 193 "dbus/bluetooth_le_advertising_manager_client.h", | |
| 194 "dbus/bluetooth_media_client.cc", | |
| 195 "dbus/bluetooth_media_client.h", | |
| 196 "dbus/bluetooth_media_endpoint_service_provider.cc", | |
| 197 "dbus/bluetooth_media_endpoint_service_provider.h", | |
| 198 "dbus/bluetooth_media_transport_client.cc", | |
| 199 "dbus/bluetooth_media_transport_client.h", | |
| 200 "dbus/bluetooth_profile_manager_client.cc", | |
| 201 "dbus/bluetooth_profile_manager_client.h", | |
| 202 "dbus/bluetooth_profile_service_provider.cc", | |
| 203 "dbus/bluetooth_profile_service_provider.h", | |
| 204 "dbus/bluez_dbus_client.h", | |
| 205 "dbus/bluez_dbus_manager.cc", | |
| 206 "dbus/bluez_dbus_manager.h", | |
| 207 "dbus/fake_bluetooth_adapter_client.cc", | |
| 208 "dbus/fake_bluetooth_adapter_client.h", | |
| 209 "dbus/fake_bluetooth_agent_manager_client.cc", | |
| 210 "dbus/fake_bluetooth_agent_manager_client.h", | |
| 211 "dbus/fake_bluetooth_agent_service_provider.cc", | |
| 212 "dbus/fake_bluetooth_agent_service_provider.h", | |
| 213 "dbus/fake_bluetooth_device_client.cc", | |
| 214 "dbus/fake_bluetooth_device_client.h", | |
| 215 "dbus/fake_bluetooth_gatt_characteristic_client.cc", | |
| 216 "dbus/fake_bluetooth_gatt_characteristic_client.h", | |
| 217 "dbus/fake_bluetooth_gatt_characteristic_service_provider.cc", | |
| 218 "dbus/fake_bluetooth_gatt_characteristic_service_provider.h", | |
| 219 "dbus/fake_bluetooth_gatt_descriptor_client.cc", | |
| 220 "dbus/fake_bluetooth_gatt_descriptor_client.h", | |
| 221 "dbus/fake_bluetooth_gatt_descriptor_service_provider.cc", | |
| 222 "dbus/fake_bluetooth_gatt_descriptor_service_provider.h", | |
| 223 "dbus/fake_bluetooth_gatt_manager_client.cc", | |
| 224 "dbus/fake_bluetooth_gatt_manager_client.h", | |
| 225 "dbus/fake_bluetooth_gatt_service_client.cc", | |
| 226 "dbus/fake_bluetooth_gatt_service_client.h", | |
| 227 "dbus/fake_bluetooth_gatt_service_service_provider.cc", | |
| 228 "dbus/fake_bluetooth_gatt_service_service_provider.h", | |
| 229 "dbus/fake_bluetooth_input_client.cc", | |
| 230 "dbus/fake_bluetooth_input_client.h", | |
| 231 "dbus/fake_bluetooth_le_advertisement_service_provider.cc", | |
| 232 "dbus/fake_bluetooth_le_advertisement_service_provider.h", | |
| 233 "dbus/fake_bluetooth_le_advertising_manager_client.cc", | |
| 234 "dbus/fake_bluetooth_le_advertising_manager_client.h", | |
| 235 "dbus/fake_bluetooth_media_client.cc", | |
| 236 "dbus/fake_bluetooth_media_client.h", | |
| 237 "dbus/fake_bluetooth_media_endpoint_service_provider.cc", | |
| 238 "dbus/fake_bluetooth_media_endpoint_service_provider.h", | |
| 239 "dbus/fake_bluetooth_media_transport_client.cc", | |
| 240 "dbus/fake_bluetooth_media_transport_client.h", | |
| 241 "dbus/fake_bluetooth_profile_manager_client.cc", | |
| 242 "dbus/fake_bluetooth_profile_manager_client.h", | |
| 243 "dbus/fake_bluetooth_profile_service_provider.cc", | |
| 244 "dbus/fake_bluetooth_profile_service_provider.h", | |
| 245 ] | |
| 246 } | |
| 160 } | 247 } |
| 161 | 248 |
| 162 static_library("mocks") { | 249 static_library("mocks") { |
| 163 testonly = true | 250 testonly = true |
| 164 sources = [ | 251 sources = [ |
| 165 "test/mock_bluetooth_adapter.cc", | 252 "test/mock_bluetooth_adapter.cc", |
| 166 "test/mock_bluetooth_adapter.h", | 253 "test/mock_bluetooth_adapter.h", |
| 167 "test/mock_bluetooth_advertisement.cc", | 254 "test/mock_bluetooth_advertisement.cc", |
| 168 "test/mock_bluetooth_advertisement.h", | 255 "test/mock_bluetooth_advertisement.h", |
| 169 "test/mock_bluetooth_central_manager_mac.h", | 256 "test/mock_bluetooth_central_manager_mac.h", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 jni_package = "bluetooth" | 293 jni_package = "bluetooth" |
| 207 } | 294 } |
| 208 | 295 |
| 209 android_library("java") { | 296 android_library("java") { |
| 210 java_files = java_sources_needing_jni | 297 java_files = java_sources_needing_jni |
| 211 deps = [ | 298 deps = [ |
| 212 "//base:base_java", | 299 "//base:base_java", |
| 213 ] | 300 ] |
| 214 } | 301 } |
| 215 } | 302 } |
| OLD | NEW |