summaryrefslogtreecommitdiffstats
path: root/device/bluetooth
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 20:26:30 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 20:26:30 +0000
commitabd4b686e423705d305e68b29dc4b9822fb8417e (patch)
tree7f4240826cbd07fae1a498faf903d2d477054176 /device/bluetooth
parent0a513f2ae5eeb6f1a02f16d339b2c30c478ad4ca (diff)
downloadchromium_src-abd4b686e423705d305e68b29dc4b9822fb8417e.zip
chromium_src-abd4b686e423705d305e68b29dc4b9822fb8417e.tar.gz
chromium_src-abd4b686e423705d305e68b29dc4b9822fb8417e.tar.bz2
Add gcm, nfc and bluetooth to GN build.
TBR=jamesr Review URL: https://codereview.chromium.org/394033002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth')
-rw-r--r--device/bluetooth/BUILD.gn150
-rw-r--r--device/bluetooth/bluetooth.gyp4
2 files changed, 154 insertions, 0 deletions
diff --git a/device/bluetooth/BUILD.gn b/device/bluetooth/BUILD.gn
new file mode 100644
index 0000000..f291ada
--- /dev/null
+++ b/device/bluetooth/BUILD.gn
@@ -0,0 +1,150 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//tools/grit/grit_rule.gni")
+
+config("bluetooth_config") {
+ if (is_win) {
+ ldflags = [
+ # Despite MSDN stating that Bthprops.dll contains the
+ # symbols declared by bthprops.lib, they actually reside here:
+ "/DELAYLOAD:Bthprops.cpl",
+ "/DELAYLOAD:setupapi.dll",
+ ]
+ }
+}
+
+static_library("bluetooth") {
+ sources = [
+ "bluetooth_adapter.cc",
+ "bluetooth_adapter.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_win.cc",
+ "bluetooth_adapter_win.h",
+ "bluetooth_channel_mac.mm",
+ "bluetooth_channel_mac.h",
+ "bluetooth_device.cc",
+ "bluetooth_device.h",
+ "bluetooth_device_chromeos.cc",
+ "bluetooth_device_chromeos.h",
+ "bluetooth_device_mac.h",
+ "bluetooth_device_mac.mm",
+ "bluetooth_device_win.cc",
+ "bluetooth_device_win.h",
+ "bluetooth_discovery_manager_mac.mm",
+ "bluetooth_discovery_manager_mac.h",
+ "bluetooth_discovery_session.cc",
+ "bluetooth_discovery_session.h",
+ "bluetooth_gatt_characteristic.cc",
+ "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",
+ "bluetooth_init_win.h",
+ "bluetooth_l2cap_channel_mac.mm",
+ "bluetooth_l2cap_channel_mac.h",
+ "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.mm",
+ "bluetooth_rfcomm_channel_mac.h",
+ "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",
+ "bluetooth_socket_net.h",
+ "bluetooth_socket_thread.cc",
+ "bluetooth_socket_thread.h",
+ "bluetooth_socket_win.cc",
+ "bluetooth_socket_win.h",
+ "bluetooth_task_manager_win.cc",
+ "bluetooth_task_manager_win.h",
+ "bluetooth_uuid.cc",
+ "bluetooth_uuid.h",
+ ]
+
+ all_dependent_configs = [ ":bluetooth_config" ]
+
+ deps = [
+ ":strings",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//net",
+ "//third_party/libxml",
+ "//ui/base",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ ]
+
+ if (is_chromeos) {
+ deps += [
+ "//dbus",
+ #'../../chromeos/chromeos.gyp:chromeos', TODO(GYP)
+ ]
+ }
+
+ if (is_mac) {
+ libs = [ "IOBluetooth.framework" ]
+ }
+}
+
+grit("strings") {
+ visibility = ":*"
+ source = "bluetooth_strings.grd"
+}
+
+static_library("mocks") {
+ sources = [
+ "test/mock_bluetooth_adapter.cc",
+ "test/mock_bluetooth_adapter.h",
+ "test/mock_bluetooth_device.cc",
+ "test/mock_bluetooth_device.h",
+ "test/mock_bluetooth_discovery_session.cc",
+ "test/mock_bluetooth_discovery_session.h",
+ "test/mock_bluetooth_gatt_characteristic.cc",
+ "test/mock_bluetooth_gatt_characteristic.h",
+ "test/mock_bluetooth_gatt_connection.cc",
+ "test/mock_bluetooth_gatt_connection.h",
+ "test/mock_bluetooth_gatt_descriptor.cc",
+ "test/mock_bluetooth_gatt_descriptor.h",
+ "test/mock_bluetooth_gatt_notify_session.cc",
+ "test/mock_bluetooth_gatt_notify_session.h",
+ "test/mock_bluetooth_gatt_service.cc",
+ "test/mock_bluetooth_gatt_service.h",
+ "test/mock_bluetooth_socket.cc",
+ "test/mock_bluetooth_socket.h",
+ ]
+
+ deps = [
+ ":bluetooth",
+ "//testing/gmock",
+ ]
+}
diff --git a/device/bluetooth/bluetooth.gyp b/device/bluetooth/bluetooth.gyp
index bacdbfb..96dc9f3 100644
--- a/device/bluetooth/bluetooth.gyp
+++ b/device/bluetooth/bluetooth.gyp
@@ -8,6 +8,7 @@
},
'targets': [
{
+ # GN version: //device/bluetooth
'target_name': 'device_bluetooth',
'type': 'static_library',
'dependencies': [
@@ -21,6 +22,7 @@
'bluetooth_strings.gyp:device_bluetooth_strings',
],
'sources': [
+ # Note: file list duplicated in GN build.
'bluetooth_adapter.cc',
'bluetooth_adapter.h',
'bluetooth_adapter_chromeos.cc',
@@ -126,6 +128,7 @@
],
},
{
+ # GN version: //device/bluetooth:mocks
'target_name': 'device_bluetooth_mocks',
'type': 'static_library',
'dependencies': [
@@ -136,6 +139,7 @@
'../../',
],
'sources': [
+ # Note: file list duplicated in GN build.
'test/mock_bluetooth_adapter.cc',
'test/mock_bluetooth_adapter.h',
'test/mock_bluetooth_device.cc',