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

Side by Side Diff: device/BUILD.gn

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
10 } 10 }
11 11
12 if (is_mac) { 12 if (is_mac) {
13 import("//build/config/mac/mac_sdk.gni") 13 import("//build/config/mac/mac_sdk.gni")
14 } 14 }
15 15
16 is_linux_without_udev = is_linux && !use_udev 16 is_linux_without_udev = is_linux && !use_udev
17 is_linux_without_dbus = is_linux && !use_dbus 17 is_linux_without_dbus = is_linux && !use_dbus
18 18
19 test("device_unittests") { 19 test("device_unittests") {
20 sources = [ 20 sources = [
21 "battery/battery_status_manager_win_unittest.cc", 21 "battery/battery_status_manager_win_unittest.cc",
22 "battery/battery_status_service_unittest.cc", 22 "battery/battery_status_service_unittest.cc",
23 "bluetooth/bluetooth_adapter_mac_unittest.mm", 23 "bluetooth/bluetooth_adapter_mac_unittest.mm",
24 "bluetooth/bluetooth_adapter_unittest.cc", 24 "bluetooth/bluetooth_adapter_unittest.cc",
25 "bluetooth/bluetooth_adapter_win_unittest.cc", 25 "bluetooth/bluetooth_adapter_win_unittest.cc",
26 "bluetooth/bluetooth_advertisement_unittest.cc", 26 "bluetooth/bluetooth_advertisement_unittest.cc",
27 "bluetooth/bluetooth_device_unittest.cc", 27 "bluetooth/bluetooth_device_unittest.cc",
28 "bluetooth/bluetooth_device_win_unittest.cc", 28 "bluetooth/bluetooth_device_win_unittest.cc",
29 "bluetooth/bluetooth_discovery_filter_unittest.cc", 29 "bluetooth/bluetooth_discovery_filter_unittest.cc",
30 "bluetooth/bluetooth_gatt_characteristic_unittest.cc",
31 "bluetooth/bluetooth_gatt_descriptor_unittest.cc",
32 "bluetooth/bluetooth_gatt_service_unittest.cc",
33 "bluetooth/bluetooth_low_energy_win_unittest.cc", 30 "bluetooth/bluetooth_low_energy_win_unittest.cc",
31 "bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc",
32 "bluetooth/bluetooth_remote_gatt_descriptor_unittest.cc",
33 "bluetooth/bluetooth_remote_gatt_service_unittest.cc",
34 "bluetooth/bluetooth_service_record_win_unittest.cc", 34 "bluetooth/bluetooth_service_record_win_unittest.cc",
35 "bluetooth/bluetooth_task_manager_win_unittest.cc", 35 "bluetooth/bluetooth_task_manager_win_unittest.cc",
36 "bluetooth/bluetooth_uuid_unittest.cc", 36 "bluetooth/bluetooth_uuid_unittest.cc",
37 "bluetooth/test/bluetooth_test.cc", 37 "bluetooth/test/bluetooth_test.cc",
38 "bluetooth/test/bluetooth_test.h", 38 "bluetooth/test/bluetooth_test.h",
39 "bluetooth/test/bluetooth_test_android.cc", 39 "bluetooth/test/bluetooth_test_android.cc",
40 "bluetooth/test/bluetooth_test_android.h", 40 "bluetooth/test/bluetooth_test_android.h",
41 "bluetooth/test/bluetooth_test_mac.h", 41 "bluetooth/test/bluetooth_test_mac.h",
42 "bluetooth/test/bluetooth_test_mac.mm", 42 "bluetooth/test/bluetooth_test_mac.mm",
43 "bluetooth/test/bluetooth_test_win.cc", 43 "bluetooth/test/bluetooth_test_win.cc",
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 "//chromeos", 150 "//chromeos",
151 "//chromeos:test_support", 151 "//chromeos:test_support",
152 "//chromeos:test_support_without_gmock", 152 "//chromeos:test_support_without_gmock",
153 ] 153 ]
154 } 154 }
155 155
156 if ((is_chromeos || is_linux) && use_dbus) { 156 if ((is_chromeos || is_linux) && use_dbus) {
157 configs += [ "//build/config/linux:dbus" ] 157 configs += [ "//build/config/linux:dbus" ]
158 158
159 sources += [ 159 sources += [
160 "bluetooth/bluetooth_adapter_profile_bluez_unittest.cc", 160 "bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc",
161 "bluetooth/bluetooth_advertisement_bluez_unittest.cc", 161 "bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc",
162 "bluetooth/bluetooth_audio_sink_bluez_unittest.cc", 162 "bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc",
163 "bluetooth/bluetooth_bluez_unittest.cc", 163 "bluetooth/bluez/bluetooth_bluez_unittest.cc",
164 "bluetooth/bluetooth_gatt_bluez_unittest.cc", 164 "bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc",
165 "bluetooth/bluetooth_socket_bluez_unittest.cc", 165 "bluetooth/bluez/bluetooth_socket_bluez_unittest.cc",
166 "bluetooth/test/bluetooth_test_bluez.cc", 166 "bluetooth/test/bluetooth_test_bluez.cc",
167 "bluetooth/test/bluetooth_test_bluez.h", 167 "bluetooth/test/bluetooth_test_bluez.h",
168 ] 168 ]
169 169
170 deps += [ "//dbus" ] 170 deps += [ "//dbus" ]
171 } 171 }
172 172
173 if (is_mac) { 173 if (is_mac) {
174 deps += [ "//third_party/ocmock" ] 174 deps += [ "//third_party/ocmock" ]
175 ldflags = [ "-ObjC" ] 175 ldflags = [ "-ObjC" ]
(...skipping 30 matching lines...) Expand all
206 } 206 }
207 207
208 android_library("bluetooth_test_java") { 208 android_library("bluetooth_test_java") {
209 java_files = bluetooth_java_sources_needing_jni 209 java_files = bluetooth_java_sources_needing_jni
210 deps = [ 210 deps = [
211 "//base:base_java", 211 "//base:base_java",
212 "//device/bluetooth:java", 212 "//device/bluetooth:java",
213 ] 213 ]
214 } 214 }
215 } 215 }
OLDNEW
« no previous file with comments | « content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698