| 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) { | 8 if (is_mac) { |
| 9 import("//build/config/mac/mac_sdk.gni") | 9 import("//build/config/mac/mac_sdk.gni") |
| 10 } | 10 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 if (use_udev) { | 85 if (use_udev) { |
| 86 sources += [ "udev_linux/udev_unittest.cc" ] | 86 sources += [ "udev_linux/udev_unittest.cc" ] |
| 87 deps += [ "//device/udev_linux" ] | 87 deps += [ "//device/udev_linux" ] |
| 88 } | 88 } |
| 89 | 89 |
| 90 # USB does not compile on mobile platforms. | 90 # USB does not compile on mobile platforms. |
| 91 if (!is_android && !is_ios) { | 91 if (!is_android && !is_ios) { |
| 92 sources += [ | 92 sources += [ |
| 93 "test/usb_test_gadget_impl.cc", | 93 "test/usb_test_gadget_impl.cc", |
| 94 "usb/device_impl_unittest.cc", |
| 95 "usb/device_manager_impl_unittest.cc", |
| 94 "usb/usb_context_unittest.cc", | 96 "usb/usb_context_unittest.cc", |
| 95 "usb/usb_device_filter_unittest.cc", | 97 "usb/usb_device_filter_unittest.cc", |
| 96 "usb/usb_device_handle_unittest.cc", | 98 "usb/usb_device_handle_unittest.cc", |
| 97 "usb/usb_ids_unittest.cc", | 99 "usb/usb_ids_unittest.cc", |
| 98 "usb/usb_service_unittest.cc", | 100 "usb/usb_service_unittest.cc", |
| 99 ] | 101 ] |
| 100 deps += [ | 102 deps += [ |
| 101 "//device/usb", | 103 "//device/usb", |
| 102 "//device/usb:mocks", | 104 "//device/usb:mocks", |
| 103 "//third_party/libusb", | 105 "//third_party/libusb", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 124 | 126 |
| 125 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. | 127 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. |
| 126 # Previously, it was nested in IOBluetooth. In order for Chrome to run on | 128 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
| 127 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be | 129 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
| 128 # weakly linked. | 130 # weakly linked. |
| 129 if (mac_sdk_version == "10.10") { | 131 if (mac_sdk_version == "10.10") { |
| 130 ldflags = [ "-weak_framework CoreBluetooth" ] | 132 ldflags = [ "-weak_framework CoreBluetooth" ] |
| 131 } | 133 } |
| 132 } | 134 } |
| 133 } | 135 } |
| OLD | NEW |