| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 "//chromeos:test_support_without_gmock", | 131 "//chromeos:test_support_without_gmock", |
| 132 "//dbus", | 132 "//dbus", |
| 133 ] | 133 ] |
| 134 } | 134 } |
| 135 | 135 |
| 136 if (is_posix && !is_android && !is_mac) { | 136 if (is_posix && !is_android && !is_mac) { |
| 137 libs = [ "rt" ] | 137 libs = [ "rt" ] |
| 138 } | 138 } |
| 139 | 139 |
| 140 if (is_mac) { | 140 if (is_mac) { |
| 141 deps += [ "//third_party/ocmock" ] |
| 142 ldflags = [ "-ObjC" ] |
| 141 libs = [ "IOBluetooth.framework" ] | 143 libs = [ "IOBluetooth.framework" ] |
| 142 | 144 |
| 143 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. | 145 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. |
| 144 # Previously, it was nested in IOBluetooth. In order for Chrome to run on | 146 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
| 145 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be | 147 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
| 146 # weakly linked. | 148 # weakly linked. |
| 147 if (mac_sdk_version == "10.10") { | 149 if (mac_sdk_version == "10.10") { |
| 148 ldflags = [ "-weak_framework CoreBluetooth" ] | 150 ldflags += [ "-weak_framework CoreBluetooth" ] |
| 149 } | 151 } |
| 150 } | 152 } |
| 151 } | 153 } |
| 152 | 154 |
| 153 if (is_android) { | 155 if (is_android) { |
| 154 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch
romium/device/bluetooth/Fakes.java" ] | 156 bluetooth_java_sources_needing_jni = [ "bluetooth/test/android/java/src/org/ch
romium/device/bluetooth/Fakes.java" ] |
| 155 | 157 |
| 156 generate_jni("bluetooth_test_jni_headers") { | 158 generate_jni("bluetooth_test_jni_headers") { |
| 157 sources = bluetooth_java_sources_needing_jni | 159 sources = bluetooth_java_sources_needing_jni |
| 158 jni_package = "bluetooth" | 160 jni_package = "bluetooth" |
| 159 } | 161 } |
| 160 | 162 |
| 161 android_library("bluetooth_test_java") { | 163 android_library("bluetooth_test_java") { |
| 162 java_files = bluetooth_java_sources_needing_jni | 164 java_files = bluetooth_java_sources_needing_jni |
| 163 deps = [ | 165 deps = [ |
| 164 "//base:base_java", | 166 "//base:base_java", |
| 165 "//device/bluetooth:java", | 167 "//device/bluetooth:java", |
| 166 ] | 168 ] |
| 167 } | 169 } |
| 168 } | 170 } |
| OLD | NEW |