| OLD | NEW |
| 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 # TODO(GYP): Delete this after we've converted everything to GN. | |
| 20 # The _run targets exist only for compatibility w/ GYP. | |
| 21 group("device_unittests_run") { | |
| 22 testonly = true | |
| 23 deps = [ | |
| 24 ":device_unittests", | |
| 25 ] | |
| 26 } | |
| 27 | |
| 28 test("device_unittests") { | 19 test("device_unittests") { |
| 29 sources = [ | 20 sources = [ |
| 30 "battery/battery_status_manager_win_unittest.cc", | 21 "battery/battery_status_manager_win_unittest.cc", |
| 31 "battery/battery_status_service_unittest.cc", | 22 "battery/battery_status_service_unittest.cc", |
| 32 "bluetooth/bluetooth_adapter_mac_unittest.mm", | 23 "bluetooth/bluetooth_adapter_mac_unittest.mm", |
| 33 "bluetooth/bluetooth_adapter_unittest.cc", | 24 "bluetooth/bluetooth_adapter_unittest.cc", |
| 34 "bluetooth/bluetooth_adapter_win_unittest.cc", | 25 "bluetooth/bluetooth_adapter_win_unittest.cc", |
| 35 "bluetooth/bluetooth_advertisement_unittest.cc", | 26 "bluetooth/bluetooth_advertisement_unittest.cc", |
| 36 "bluetooth/bluetooth_device_unittest.cc", | 27 "bluetooth/bluetooth_device_unittest.cc", |
| 37 "bluetooth/bluetooth_device_win_unittest.cc", | 28 "bluetooth/bluetooth_device_win_unittest.cc", |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 } | 191 } |
| 201 | 192 |
| 202 android_library("bluetooth_test_java") { | 193 android_library("bluetooth_test_java") { |
| 203 java_files = bluetooth_java_sources_needing_jni | 194 java_files = bluetooth_java_sources_needing_jni |
| 204 deps = [ | 195 deps = [ |
| 205 "//base:base_java", | 196 "//base:base_java", |
| 206 "//device/bluetooth:java", | 197 "//device/bluetooth:java", |
| 207 ] | 198 ] |
| 208 } | 199 } |
| 209 } | 200 } |
| OLD | NEW |