summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/BUILD.gn')
-rw-r--r--device/bluetooth/BUILD.gn64
1 files changed, 32 insertions, 32 deletions
diff --git a/device/bluetooth/BUILD.gn b/device/bluetooth/BUILD.gn
index b7bd5f8..69da108 100644
--- a/device/bluetooth/BUILD.gn
+++ b/device/bluetooth/BUILD.gn
@@ -29,16 +29,24 @@ component("bluetooth") {
"bluetooth_adapter.h",
"bluetooth_adapter_android.cc",
"bluetooth_adapter_android.h",
+ "bluetooth_adapter_chromeos.cc",
+ "bluetooth_adapter_chromeos.h",
"bluetooth_adapter_factory.cc",
"bluetooth_adapter_factory.h",
"bluetooth_adapter_mac.h",
"bluetooth_adapter_mac.mm",
+ "bluetooth_adapter_profile_chromeos.cc",
+ "bluetooth_adapter_profile_chromeos.h",
"bluetooth_adapter_win.cc",
"bluetooth_adapter_win.h",
"bluetooth_advertisement.cc",
"bluetooth_advertisement.h",
+ "bluetooth_advertisement_chromeos.cc",
+ "bluetooth_advertisement_chromeos.h",
"bluetooth_audio_sink.cc",
"bluetooth_audio_sink.h",
+ "bluetooth_audio_sink_chromeos.cc",
+ "bluetooth_audio_sink_chromeos.h",
"bluetooth_channel_mac.h",
"bluetooth_channel_mac.mm",
"bluetooth_classic_device_mac.h",
@@ -47,6 +55,8 @@ component("bluetooth") {
"bluetooth_device.h",
"bluetooth_device_android.cc",
"bluetooth_device_android.h",
+ "bluetooth_device_chromeos.cc",
+ "bluetooth_device_chromeos.h",
"bluetooth_device_mac.h",
"bluetooth_device_mac.mm",
"bluetooth_device_win.cc",
@@ -62,10 +72,14 @@ component("bluetooth") {
"bluetooth_gatt_characteristic.h",
"bluetooth_gatt_connection.cc",
"bluetooth_gatt_connection.h",
+ "bluetooth_gatt_connection_chromeos.cc",
+ "bluetooth_gatt_connection_chromeos.h",
"bluetooth_gatt_descriptor.cc",
"bluetooth_gatt_descriptor.h",
"bluetooth_gatt_notify_session.cc",
"bluetooth_gatt_notify_session.h",
+ "bluetooth_gatt_notify_session_chromeos.cc",
+ "bluetooth_gatt_notify_session_chromeos.h",
"bluetooth_gatt_service.cc",
"bluetooth_gatt_service.h",
"bluetooth_init_win.cc",
@@ -82,12 +96,22 @@ component("bluetooth") {
"bluetooth_low_energy_discovery_manager_mac.mm",
"bluetooth_low_energy_win.cc",
"bluetooth_low_energy_win.h",
+ "bluetooth_pairing_chromeos.cc",
+ "bluetooth_pairing_chromeos.h",
+ "bluetooth_remote_gatt_characteristic_chromeos.cc",
+ "bluetooth_remote_gatt_characteristic_chromeos.h",
+ "bluetooth_remote_gatt_descriptor_chromeos.cc",
+ "bluetooth_remote_gatt_descriptor_chromeos.h",
+ "bluetooth_remote_gatt_service_chromeos.cc",
+ "bluetooth_remote_gatt_service_chromeos.h",
"bluetooth_rfcomm_channel_mac.h",
"bluetooth_rfcomm_channel_mac.mm",
"bluetooth_service_record_win.cc",
"bluetooth_service_record_win.h",
"bluetooth_socket.cc",
"bluetooth_socket.h",
+ "bluetooth_socket_chromeos.cc",
+ "bluetooth_socket_chromeos.h",
"bluetooth_socket_mac.h",
"bluetooth_socket_mac.mm",
"bluetooth_socket_net.cc",
@@ -120,11 +144,10 @@ component("bluetooth") {
}
if (is_chromeos) {
- deps += [ "//chromeos" ]
- }
-
- if (is_chromeos || is_linux) {
- deps += [ "//dbus" ]
+ deps += [
+ "//chromeos",
+ "//dbus",
+ ]
}
if (is_mac) {
@@ -135,32 +158,11 @@ component("bluetooth") {
libs = [ "setupapi.lib" ]
}
- if (is_chromeos || is_linux) {
+ # This block will also build for Linux once we write the linux
+ # implementation of BluezDbusManager.
+ if (is_chromeos) {
+ defines += [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ]
sources += [
- "bluetooth_adapter_bluez.cc",
- "bluetooth_adapter_bluez.h",
- "bluetooth_adapter_profile_bluez.cc",
- "bluetooth_adapter_profile_bluez.h",
- "bluetooth_advertisement_bluez.cc",
- "bluetooth_advertisement_bluez.h",
- "bluetooth_audio_sink_bluez.cc",
- "bluetooth_audio_sink_bluez.h",
- "bluetooth_device_bluez.cc",
- "bluetooth_device_bluez.h",
- "bluetooth_gatt_connection_bluez.cc",
- "bluetooth_gatt_connection_bluez.h",
- "bluetooth_gatt_notify_session_bluez.cc",
- "bluetooth_gatt_notify_session_bluez.h",
- "bluetooth_pairing_bluez.cc",
- "bluetooth_pairing_bluez.h",
- "bluetooth_remote_gatt_characteristic_bluez.cc",
- "bluetooth_remote_gatt_characteristic_bluez.h",
- "bluetooth_remote_gatt_descriptor_bluez.cc",
- "bluetooth_remote_gatt_descriptor_bluez.h",
- "bluetooth_remote_gatt_service_bluez.cc",
- "bluetooth_remote_gatt_service_bluez.h",
- "bluetooth_socket_bluez.cc",
- "bluetooth_socket_bluez.h",
"dbus/bluetooth_adapter_client.cc",
"dbus/bluetooth_adapter_client.h",
"dbus/bluetooth_agent_manager_client.cc",
@@ -204,8 +206,6 @@ component("bluetooth") {
"dbus/bluez_dbus_client.h",
"dbus/bluez_dbus_manager.cc",
"dbus/bluez_dbus_manager.h",
- "dbus/dbus_thread_manager_linux.cc",
- "dbus/dbus_thread_manager_linux.h",
"dbus/fake_bluetooth_adapter_client.cc",
"dbus/fake_bluetooth_adapter_client.h",
"dbus/fake_bluetooth_agent_manager_client.cc",