| 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 11 matching lines...) Expand all Loading... |
| 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_chromeos.cc", | |
| 82 "bluetooth_gatt_notify_session_chromeos.h", | |
| 83 "bluetooth_gatt_service.cc", | 69 "bluetooth_gatt_service.cc", |
| 84 "bluetooth_gatt_service.h", | 70 "bluetooth_gatt_service.h", |
| 85 "bluetooth_init_win.cc", | 71 "bluetooth_init_win.cc", |
| 86 "bluetooth_init_win.h", | 72 "bluetooth_init_win.h", |
| 87 "bluetooth_l2cap_channel_mac.h", | 73 "bluetooth_l2cap_channel_mac.h", |
| 88 "bluetooth_l2cap_channel_mac.mm", | 74 "bluetooth_l2cap_channel_mac.mm", |
| 89 "bluetooth_low_energy_central_manager_delegate.h", | 75 "bluetooth_low_energy_central_manager_delegate.h", |
| 90 "bluetooth_low_energy_central_manager_delegate.mm", | 76 "bluetooth_low_energy_central_manager_delegate.mm", |
| 91 "bluetooth_low_energy_defs_win.cc", | 77 "bluetooth_low_energy_defs_win.cc", |
| 92 "bluetooth_low_energy_defs_win.h", | 78 "bluetooth_low_energy_defs_win.h", |
| 93 "bluetooth_low_energy_device_mac.h", | 79 "bluetooth_low_energy_device_mac.h", |
| 94 "bluetooth_low_energy_device_mac.mm", | 80 "bluetooth_low_energy_device_mac.mm", |
| 95 "bluetooth_low_energy_discovery_manager_mac.h", | 81 "bluetooth_low_energy_discovery_manager_mac.h", |
| 96 "bluetooth_low_energy_discovery_manager_mac.mm", | 82 "bluetooth_low_energy_discovery_manager_mac.mm", |
| 97 "bluetooth_low_energy_win.cc", | 83 "bluetooth_low_energy_win.cc", |
| 98 "bluetooth_low_energy_win.h", | 84 "bluetooth_low_energy_win.h", |
| 99 "bluetooth_pairing_chromeos.cc", | |
| 100 "bluetooth_pairing_chromeos.h", | |
| 101 "bluetooth_remote_gatt_characteristic_chromeos.cc", | |
| 102 "bluetooth_remote_gatt_characteristic_chromeos.h", | |
| 103 "bluetooth_remote_gatt_descriptor_chromeos.cc", | |
| 104 "bluetooth_remote_gatt_descriptor_chromeos.h", | |
| 105 "bluetooth_remote_gatt_service_chromeos.cc", | |
| 106 "bluetooth_remote_gatt_service_chromeos.h", | |
| 107 "bluetooth_rfcomm_channel_mac.h", | 85 "bluetooth_rfcomm_channel_mac.h", |
| 108 "bluetooth_rfcomm_channel_mac.mm", | 86 "bluetooth_rfcomm_channel_mac.mm", |
| 109 "bluetooth_service_record_win.cc", | 87 "bluetooth_service_record_win.cc", |
| 110 "bluetooth_service_record_win.h", | 88 "bluetooth_service_record_win.h", |
| 111 "bluetooth_socket.cc", | 89 "bluetooth_socket.cc", |
| 112 "bluetooth_socket.h", | 90 "bluetooth_socket.h", |
| 113 "bluetooth_socket_chromeos.cc", | |
| 114 "bluetooth_socket_chromeos.h", | |
| 115 "bluetooth_socket_mac.h", | 91 "bluetooth_socket_mac.h", |
| 116 "bluetooth_socket_mac.mm", | 92 "bluetooth_socket_mac.mm", |
| 117 "bluetooth_socket_net.cc", | 93 "bluetooth_socket_net.cc", |
| 118 "bluetooth_socket_net.h", | 94 "bluetooth_socket_net.h", |
| 119 "bluetooth_socket_thread.cc", | 95 "bluetooth_socket_thread.cc", |
| 120 "bluetooth_socket_thread.h", | 96 "bluetooth_socket_thread.h", |
| 121 "bluetooth_socket_win.cc", | 97 "bluetooth_socket_win.cc", |
| 122 "bluetooth_socket_win.h", | 98 "bluetooth_socket_win.h", |
| 123 "bluetooth_task_manager_win.cc", | 99 "bluetooth_task_manager_win.cc", |
| 124 "bluetooth_task_manager_win.h", | 100 "bluetooth_task_manager_win.h", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 137 "//crypto", | 113 "//crypto", |
| 138 "//net", | 114 "//net", |
| 139 "//ui/base", | 115 "//ui/base", |
| 140 ] | 116 ] |
| 141 | 117 |
| 142 if (is_android) { | 118 if (is_android) { |
| 143 deps += [ ":jni_headers" ] | 119 deps += [ ":jni_headers" ] |
| 144 } | 120 } |
| 145 | 121 |
| 146 if (is_chromeos) { | 122 if (is_chromeos) { |
| 147 deps += [ | 123 deps += [ "//chromeos" ] |
| 148 "//chromeos", | 124 } |
| 149 "//dbus", | 125 |
| 150 ] | 126 if (is_chromeos || is_linux) { |
| 127 deps += [ "//dbus" ] |
| 151 } | 128 } |
| 152 | 129 |
| 153 if (is_mac) { | 130 if (is_mac) { |
| 154 libs = [ "IOBluetooth.framework" ] | 131 libs = [ "IOBluetooth.framework" ] |
| 155 } | 132 } |
| 156 | 133 |
| 157 if (is_win) { | 134 if (is_win) { |
| 158 libs = [ "setupapi.lib" ] | 135 libs = [ "setupapi.lib" ] |
| 159 } | 136 } |
| 160 | 137 |
| 161 # This block will also build for Linux once we write the linux | 138 if (is_chromeos || is_linux) { |
| 162 # implementation of BluezDbusManager. | |
| 163 if (is_chromeos) { | |
| 164 defines += [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ] | |
| 165 sources += [ | 139 sources += [ |
| 140 "bluetooth_adapter_bluez.cc", |
| 141 "bluetooth_adapter_bluez.h", |
| 142 "bluetooth_adapter_profile_bluez.cc", |
| 143 "bluetooth_adapter_profile_bluez.h", |
| 144 "bluetooth_advertisement_bluez.cc", |
| 145 "bluetooth_advertisement_bluez.h", |
| 146 "bluetooth_audio_sink_bluez.cc", |
| 147 "bluetooth_audio_sink_bluez.h", |
| 148 "bluetooth_device_bluez.cc", |
| 149 "bluetooth_device_bluez.h", |
| 150 "bluetooth_gatt_connection_bluez.cc", |
| 151 "bluetooth_gatt_connection_bluez.h", |
| 152 "bluetooth_gatt_notify_session_bluez.cc", |
| 153 "bluetooth_gatt_notify_session_bluez.h", |
| 154 "bluetooth_pairing_bluez.cc", |
| 155 "bluetooth_pairing_bluez.h", |
| 156 "bluetooth_remote_gatt_characteristic_bluez.cc", |
| 157 "bluetooth_remote_gatt_characteristic_bluez.h", |
| 158 "bluetooth_remote_gatt_descriptor_bluez.cc", |
| 159 "bluetooth_remote_gatt_descriptor_bluez.h", |
| 160 "bluetooth_remote_gatt_service_bluez.cc", |
| 161 "bluetooth_remote_gatt_service_bluez.h", |
| 162 "bluetooth_socket_bluez.cc", |
| 163 "bluetooth_socket_bluez.h", |
| 166 "dbus/bluetooth_adapter_client.cc", | 164 "dbus/bluetooth_adapter_client.cc", |
| 167 "dbus/bluetooth_adapter_client.h", | 165 "dbus/bluetooth_adapter_client.h", |
| 168 "dbus/bluetooth_agent_manager_client.cc", | 166 "dbus/bluetooth_agent_manager_client.cc", |
| 169 "dbus/bluetooth_agent_manager_client.h", | 167 "dbus/bluetooth_agent_manager_client.h", |
| 170 "dbus/bluetooth_agent_service_provider.cc", | 168 "dbus/bluetooth_agent_service_provider.cc", |
| 171 "dbus/bluetooth_agent_service_provider.h", | 169 "dbus/bluetooth_agent_service_provider.h", |
| 172 "dbus/bluetooth_dbus_client_bundle.cc", | 170 "dbus/bluetooth_dbus_client_bundle.cc", |
| 173 "dbus/bluetooth_dbus_client_bundle.h", | 171 "dbus/bluetooth_dbus_client_bundle.h", |
| 174 "dbus/bluetooth_device_client.cc", | 172 "dbus/bluetooth_device_client.cc", |
| 175 "dbus/bluetooth_device_client.h", | 173 "dbus/bluetooth_device_client.h", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 199 "dbus/bluetooth_media_endpoint_service_provider.h", | 197 "dbus/bluetooth_media_endpoint_service_provider.h", |
| 200 "dbus/bluetooth_media_transport_client.cc", | 198 "dbus/bluetooth_media_transport_client.cc", |
| 201 "dbus/bluetooth_media_transport_client.h", | 199 "dbus/bluetooth_media_transport_client.h", |
| 202 "dbus/bluetooth_profile_manager_client.cc", | 200 "dbus/bluetooth_profile_manager_client.cc", |
| 203 "dbus/bluetooth_profile_manager_client.h", | 201 "dbus/bluetooth_profile_manager_client.h", |
| 204 "dbus/bluetooth_profile_service_provider.cc", | 202 "dbus/bluetooth_profile_service_provider.cc", |
| 205 "dbus/bluetooth_profile_service_provider.h", | 203 "dbus/bluetooth_profile_service_provider.h", |
| 206 "dbus/bluez_dbus_client.h", | 204 "dbus/bluez_dbus_client.h", |
| 207 "dbus/bluez_dbus_manager.cc", | 205 "dbus/bluez_dbus_manager.cc", |
| 208 "dbus/bluez_dbus_manager.h", | 206 "dbus/bluez_dbus_manager.h", |
| 207 "dbus/dbus_thread_manager_linux.cc", |
| 208 "dbus/dbus_thread_manager_linux.h", |
| 209 "dbus/fake_bluetooth_adapter_client.cc", | 209 "dbus/fake_bluetooth_adapter_client.cc", |
| 210 "dbus/fake_bluetooth_adapter_client.h", | 210 "dbus/fake_bluetooth_adapter_client.h", |
| 211 "dbus/fake_bluetooth_agent_manager_client.cc", | 211 "dbus/fake_bluetooth_agent_manager_client.cc", |
| 212 "dbus/fake_bluetooth_agent_manager_client.h", | 212 "dbus/fake_bluetooth_agent_manager_client.h", |
| 213 "dbus/fake_bluetooth_agent_service_provider.cc", | 213 "dbus/fake_bluetooth_agent_service_provider.cc", |
| 214 "dbus/fake_bluetooth_agent_service_provider.h", | 214 "dbus/fake_bluetooth_agent_service_provider.h", |
| 215 "dbus/fake_bluetooth_device_client.cc", | 215 "dbus/fake_bluetooth_device_client.cc", |
| 216 "dbus/fake_bluetooth_device_client.h", | 216 "dbus/fake_bluetooth_device_client.h", |
| 217 "dbus/fake_bluetooth_gatt_characteristic_client.cc", | 217 "dbus/fake_bluetooth_gatt_characteristic_client.cc", |
| 218 "dbus/fake_bluetooth_gatt_characteristic_client.h", | 218 "dbus/fake_bluetooth_gatt_characteristic_client.h", |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 jni_package = "bluetooth" | 295 jni_package = "bluetooth" |
| 296 } | 296 } |
| 297 | 297 |
| 298 android_library("java") { | 298 android_library("java") { |
| 299 java_files = java_sources_needing_jni | 299 java_files = java_sources_needing_jni |
| 300 deps = [ | 300 deps = [ |
| 301 "//base:base_java", | 301 "//base:base_java", |
| 302 ] | 302 ] |
| 303 } | 303 } |
| 304 } | 304 } |
| OLD | NEW |