| 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 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 # Previously, it was nested in IOBluetooth. In order for Chrome to run on | 173 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
| 174 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be | 174 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
| 175 # weakly linked. | 175 # weakly linked. |
| 176 if (mac_sdk_version == "10.10") { | 176 if (mac_sdk_version == "10.10") { |
| 177 ldflags += [ | 177 ldflags += [ |
| 178 "-weak_framework", | 178 "-weak_framework", |
| 179 "CoreBluetooth", | 179 "CoreBluetooth", |
| 180 ] | 180 ] |
| 181 } | 181 } |
| 182 } | 182 } |
| 183 |
| 184 if (is_win) { |
| 185 sources += [ |
| 186 "bluetooth/bluetooth_low_energy_win_fake.cc", |
| 187 "bluetooth/bluetooth_low_energy_win_fake.h", |
| 188 ] |
| 189 } |
| 183 } | 190 } |
| 184 | 191 |
| 185 if (is_android) { | 192 if (is_android) { |
| 186 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch
romium/device/bluetooth/Fakes.java" ] | 193 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch
romium/device/bluetooth/Fakes.java" ] |
| 187 | 194 |
| 188 generate_jni("bluetooth_test_jni_headers") { | 195 generate_jni("bluetooth_test_jni_headers") { |
| 189 sources = bluetooth_java_sources_needing_jni | 196 sources = bluetooth_java_sources_needing_jni |
| 190 jni_package = "bluetooth" | 197 jni_package = "bluetooth" |
| 191 } | 198 } |
| 192 | 199 |
| 193 android_library("bluetooth_test_java") { | 200 android_library("bluetooth_test_java") { |
| 194 java_files = bluetooth_java_sources_needing_jni | 201 java_files = bluetooth_java_sources_needing_jni |
| 195 deps = [ | 202 deps = [ |
| 196 "//base:base_java", | 203 "//base:base_java", |
| 197 "//device/bluetooth:java", | 204 "//device/bluetooth:java", |
| 198 ] | 205 ] |
| 199 } | 206 } |
| 200 } | 207 } |
| OLD | NEW |