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 += [ |
| 103 "//device/core", |
| 104 "//device/usb/public/cpp", |
| 105 "//device/usb/public/interfaces", |
101 "//device/usb", | 106 "//device/usb", |
102 "//device/usb:mocks", | 107 "//device/usb:mocks", |
103 "//third_party/libusb", | 108 "//third_party/libusb", |
104 ] | 109 ] |
105 } | 110 } |
106 | 111 |
107 if (is_chromeos) { | 112 if (is_chromeos) { |
108 configs += [ "//build/config/linux:dbus" ] | 113 configs += [ "//build/config/linux:dbus" ] |
109 | 114 |
110 deps += [ | 115 deps += [ |
(...skipping 13 matching lines...) Expand all Loading... |
124 | 129 |
125 # In the OSX 10.10 SDK, CoreBluetooth became a top level framework. | 130 # 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 | 131 # 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 | 132 # OSes older than OSX 10.10, the top level CoreBluetooth framework must be |
128 # weakly linked. | 133 # weakly linked. |
129 if (mac_sdk_version == "10.10") { | 134 if (mac_sdk_version == "10.10") { |
130 ldflags = [ "-weak_framework CoreBluetooth" ] | 135 ldflags = [ "-weak_framework CoreBluetooth" ] |
131 } | 136 } |
132 } | 137 } |
133 } | 138 } |
OLD | NEW |