| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 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 "devices_app/usb/device_impl_unittest.cc", |
| 94 "devices_app/usb/device_manager_impl_unittest.cc", |
| 93 "test/usb_test_gadget_impl.cc", | 95 "test/usb_test_gadget_impl.cc", |
| 94 "usb/device_impl_unittest.cc", | |
| 95 "usb/device_manager_impl_unittest.cc", | |
| 96 "usb/usb_context_unittest.cc", | 96 "usb/usb_context_unittest.cc", |
| 97 "usb/usb_device_filter_unittest.cc", | 97 "usb/usb_device_filter_unittest.cc", |
| 98 "usb/usb_device_handle_unittest.cc", | 98 "usb/usb_device_handle_unittest.cc", |
| 99 "usb/usb_ids_unittest.cc", | 99 "usb/usb_ids_unittest.cc", |
| 100 "usb/usb_service_unittest.cc", | 100 "usb/usb_service_unittest.cc", |
| 101 ] | 101 ] |
| 102 deps += [ | 102 deps += [ |
| 103 "//device/core", | 103 "//device/core", |
| 104 "//device/usb/public/cpp", | 104 "//device/devices_app:lib", |
| 105 "//device/usb/public/interfaces", | 105 "//device/devices_app/usb/public/cpp", |
| 106 "//device/devices_app/usb/public/interfaces", |
| 106 "//device/usb", | 107 "//device/usb", |
| 107 "//device/usb:mocks", | 108 "//device/usb:mocks", |
| 108 "//third_party/libusb", | 109 "//third_party/libusb", |
| 109 ] | 110 ] |
| 110 } | 111 } |
| 111 | 112 |
| 112 if (is_chromeos) { | 113 if (is_chromeos) { |
| 113 configs += [ "//build/config/linux:dbus" ] | 114 configs += [ "//build/config/linux:dbus" ] |
| 114 | 115 |
| 115 deps += [ | 116 deps += [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 129 | 130 |
| 130 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. | 131 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. |
| 131 # Previously, it was nested in IOBluetooth. In order for Chrome to run on | 132 # Previously, it was nested in IOBluetooth. In order for Chrome to run on |
| 132 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be | 133 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
| 133 # weakly linked. | 134 # weakly linked. |
| 134 if (mac_sdk_version == "10.10") { | 135 if (mac_sdk_version == "10.10") { |
| 135 ldflags = [ "-weak_framework CoreBluetooth" ] | 136 ldflags = [ "-weak_framework CoreBluetooth" ] |
| 136 } | 137 } |
| 137 } | 138 } |
| 138 } | 139 } |
| OLD | NEW |