| 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", | |
| 99 "_GNU_SOURCE=1", | 98 "_GNU_SOURCE=1", |
| 100 ] | 99 ] |
| 101 } | 100 } |
| 102 | 101 |
| 103 if (use_udev) { | 102 if (use_udev) { |
| 104 sources += [ "src/libusb/os/linux_udev.cc" ] | 103 sources += [ "src/libusb/os/linux_udev.cc" ] |
| 105 defines += [ | 104 defines += [ |
| 106 "HAVE_LIBUDEV=1", | 105 "HAVE_LIBUDEV=1", |
| 107 "USE_UDEV=1", | 106 "USE_UDEV=1", |
| 108 ] | 107 ] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 130 "src/libusb/os/threads_windows.h", | 129 "src/libusb/os/threads_windows.h", |
| 131 "src/libusb/os/windows_common.h", | 130 "src/libusb/os/windows_common.h", |
| 132 "src/libusb/os/windows_usb.c", | 131 "src/libusb/os/windows_usb.c", |
| 133 "src/libusb/os/windows_usb.h", | 132 "src/libusb/os/windows_usb.h", |
| 134 "src/msvc/config.h", | 133 "src/msvc/config.h", |
| 135 "src/msvc/inttypes.h", | 134 "src/msvc/inttypes.h", |
| 136 "src/msvc/stdint.h", | 135 "src/msvc/stdint.h", |
| 137 ] | 136 ] |
| 138 } | 137 } |
| 139 } | 138 } |
| OLD | NEW |