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

Unified Diff: device/BUILD.gn

Issue 1367663002: Add Linux support for the Bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_dbus
Patch Set: rebase Created 5 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: device/BUILD.gn
diff --git a/device/BUILD.gn b/device/BUILD.gn
index 4961292c55c9fca030f0cd129ed5c294fe44783c..c81e8dc39a72d9a8cb2a0d3d5ea75fa7516c14f8 100644
--- a/device/BUILD.gn
+++ b/device/BUILD.gn
@@ -30,20 +30,14 @@ test("device_unittests") {
"battery/battery_status_manager_win_unittest.cc",
"battery/battery_status_service_unittest.cc",
"bluetooth/bluetooth_adapter_mac_unittest.mm",
- "bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc",
"bluetooth/bluetooth_adapter_unittest.cc",
"bluetooth/bluetooth_adapter_win_unittest.cc",
- "bluetooth/bluetooth_advertisement_chromeos_unittest.cc",
"bluetooth/bluetooth_advertisement_unittest.cc",
- "bluetooth/bluetooth_audio_sink_chromeos_unittest.cc",
- "bluetooth/bluetooth_chromeos_unittest.cc",
"bluetooth/bluetooth_device_unittest.cc",
"bluetooth/bluetooth_device_win_unittest.cc",
"bluetooth/bluetooth_discovery_filter_unittest.cc",
- "bluetooth/bluetooth_gatt_chromeos_unittest.cc",
"bluetooth/bluetooth_low_energy_win_unittest.cc",
"bluetooth/bluetooth_service_record_win_unittest.cc",
- "bluetooth/bluetooth_socket_chromeos_unittest.cc",
"bluetooth/bluetooth_task_manager_win_unittest.cc",
"bluetooth/bluetooth_uuid_unittest.cc",
"bluetooth/test/bluetooth_test.cc",
@@ -141,16 +135,28 @@ test("device_unittests") {
}
if (is_chromeos) {
- configs += [ "//build/config/linux:dbus" ]
-
deps += [
"//chromeos",
"//chromeos:test_support",
"//chromeos:test_support_without_gmock",
- "//dbus",
]
}
+ if (is_chromeos || is_linux) {
+ configs += [ "//build/config/linux:dbus" ]
+
+ sources += [
+ "bluetooth/bluetooth_adapter_profile_bluez_unittest.cc",
+ "bluetooth/bluetooth_advertisement_bluez_unittest.cc",
+ "bluetooth/bluetooth_audio_sink_bluez_unittest.cc",
+ "bluetooth/bluetooth_bluez_unittest.cc",
+ "bluetooth/bluetooth_gatt_bluez_unittest.cc",
+ "bluetooth/bluetooth_socket_bluez_unittest.cc",
+ ]
+
+ deps += [ "//dbus" ]
+ }
+
if (is_posix && !is_android && !is_mac) {
libs = [ "rt" ]
}
« no previous file with comments | « chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698