OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 assert(!is_android && !is_ios) | 5 assert(!is_android && !is_ios) |
6 | 6 |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 | 8 |
9 config("libusb_config") { | 9 config("libusb_config") { |
10 include_dirs = [ "src/libusb" ] | 10 include_dirs = [ "src/libusb" ] |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 ] | 88 ] |
89 } | 89 } |
90 | 90 |
91 if (is_linux) { | 91 if (is_linux) { |
92 sources += [ | 92 sources += [ |
93 "src/libusb/os/linux_usbfs.c", | 93 "src/libusb/os/linux_usbfs.c", |
94 "src/libusb/os/linux_usbfs.h", | 94 "src/libusb/os/linux_usbfs.h", |
95 ] | 95 ] |
96 defines += [ | 96 defines += [ |
97 "OS_LINUX=1", | 97 "OS_LINUX=1", |
| 98 "USBI_TIMERFD_AVAILABLE", |
98 "_GNU_SOURCE=1", | 99 "_GNU_SOURCE=1", |
99 ] | 100 ] |
100 } | 101 } |
101 | 102 |
102 if (use_udev) { | 103 if (use_udev) { |
103 sources += [ "src/libusb/os/linux_udev.cc" ] | 104 sources += [ "src/libusb/os/linux_udev.cc" ] |
104 defines += [ | 105 defines += [ |
105 "HAVE_LIBUDEV=1", | 106 "HAVE_LIBUDEV=1", |
106 "USE_UDEV=1", | 107 "USE_UDEV=1", |
107 ] | 108 ] |
(...skipping 21 matching lines...) Expand all Loading... |
129 "src/libusb/os/threads_windows.h", | 130 "src/libusb/os/threads_windows.h", |
130 "src/libusb/os/windows_common.h", | 131 "src/libusb/os/windows_common.h", |
131 "src/libusb/os/windows_usb.c", | 132 "src/libusb/os/windows_usb.c", |
132 "src/libusb/os/windows_usb.h", | 133 "src/libusb/os/windows_usb.h", |
133 "src/msvc/config.h", | 134 "src/msvc/config.h", |
134 "src/msvc/inttypes.h", | 135 "src/msvc/inttypes.h", |
135 "src/msvc/stdint.h", | 136 "src/msvc/stdint.h", |
136 ] | 137 ] |
137 } | 138 } |
138 } | 139 } |
OLD | NEW |