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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 "bluetooth/bluetooth_advertisement_bluez_unittest.cc", | 163 "bluetooth/bluetooth_advertisement_bluez_unittest.cc", |
164 "bluetooth/bluetooth_audio_sink_bluez_unittest.cc", | 164 "bluetooth/bluetooth_audio_sink_bluez_unittest.cc", |
165 "bluetooth/bluetooth_bluez_unittest.cc", | 165 "bluetooth/bluetooth_bluez_unittest.cc", |
166 "bluetooth/bluetooth_gatt_bluez_unittest.cc", | 166 "bluetooth/bluetooth_gatt_bluez_unittest.cc", |
167 "bluetooth/bluetooth_socket_bluez_unittest.cc", | 167 "bluetooth/bluetooth_socket_bluez_unittest.cc", |
168 ] | 168 ] |
169 | 169 |
170 deps += [ "//dbus" ] | 170 deps += [ "//dbus" ] |
171 } | 171 } |
172 | 172 |
173 if (is_posix && !is_android && !is_mac) { | |
174 libs = [ "rt" ] | |
175 } | |
176 | |
177 if (is_mac) { | 173 if (is_mac) { |
178 deps += [ "//third_party/ocmock" ] | 174 deps += [ "//third_party/ocmock" ] |
179 ldflags = [ "-ObjC" ] | 175 ldflags = [ "-ObjC" ] |
180 libs = [ "IOBluetooth.framework" ] | 176 libs = [ "IOBluetooth.framework" ] |
181 | 177 |
182 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. | 178 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. |
183 # Previously, it was nested in IOBluetooth. In order for Chrome to run on | 179 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
184 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be | 180 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
185 # weakly linked. | 181 # weakly linked. |
186 if (mac_sdk_version == "10.10") { | 182 if (mac_sdk_version == "10.10") { |
(...skipping 14 matching lines...) Expand all Loading... |
201 } | 197 } |
202 | 198 |
203 android_library("bluetooth_test_java") { | 199 android_library("bluetooth_test_java") { |
204 java_files = bluetooth_java_sources_needing_jni | 200 java_files = bluetooth_java_sources_needing_jni |
205 deps = [ | 201 deps = [ |
206 "//base:base_java", | 202 "//base:base_java", |
207 "//device/bluetooth:java", | 203 "//device/bluetooth:java", |
208 ] | 204 ] |
209 } | 205 } |
210 } | 206 } |
OLD | NEW |