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_mac) { |
| 9 import("//build/config/mac/mac_sdk.gni") |
| 10 } |
| 11 |
8 is_linux_without_udev = is_linux && !use_udev | 12 is_linux_without_udev = is_linux && !use_udev |
9 is_linux_without_dbus = is_linux && !use_dbus | 13 is_linux_without_dbus = is_linux && !use_dbus |
10 | 14 |
11 test("device_unittests") { | 15 test("device_unittests") { |
12 sources = [ | 16 sources = [ |
13 "battery/battery_status_manager_win_unittest.cc", | 17 "battery/battery_status_manager_win_unittest.cc", |
14 "battery/battery_status_service_unittest.cc", | 18 "battery/battery_status_service_unittest.cc", |
15 "bluetooth/bluetooth_adapter_mac_unittest.mm", | 19 "bluetooth/bluetooth_adapter_mac_unittest.mm", |
16 "bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc", | 20 "bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc", |
17 "bluetooth/bluetooth_adapter_unittest.cc", | 21 "bluetooth/bluetooth_adapter_unittest.cc", |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 "//dbus", | 109 "//dbus", |
106 ] | 110 ] |
107 } | 111 } |
108 | 112 |
109 if (is_posix && !is_android && !is_mac) { | 113 if (is_posix && !is_android && !is_mac) { |
110 libs = [ "rt" ] | 114 libs = [ "rt" ] |
111 } | 115 } |
112 | 116 |
113 if (is_mac) { | 117 if (is_mac) { |
114 libs = [ "IOBluetooth.framework" ] | 118 libs = [ "IOBluetooth.framework" ] |
| 119 |
| 120 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. |
| 121 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
| 122 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
| 123 # weakly linked. |
| 124 if (mac_sdk_version == "10.10") { |
| 125 ldflags = [ "-weak_framework CoreBluetooth" ] |
| 126 } |
115 } | 127 } |
116 } | 128 } |
OLD | NEW |