| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 if (is_chromeos) { | 102 if (is_chromeos) { |
| 103 defines += [ "USBI_TIMERFD_AVAILABLE" ] | 103 defines += [ "USBI_TIMERFD_AVAILABLE" ] |
| 104 } | 104 } |
| 105 | 105 |
| 106 if (use_udev) { | 106 if (use_udev) { |
| 107 sources += [ "src/libusb/os/linux_udev.cc" ] | 107 sources += [ "src/libusb/os/linux_udev.cc" ] |
| 108 defines += [ | 108 defines += [ |
| 109 "HAVE_LIBUDEV=1", | 109 "HAVE_LIBUDEV=1", |
| 110 "USE_UDEV=1", | 110 "USE_UDEV=1", |
| 111 ] | 111 ] |
| 112 deps += [ "//build/linux:udev" ] | 112 deps += [ "//build/linux/libudev" ] |
| 113 } | 113 } |
| 114 | 114 |
| 115 if (is_linux && !use_udev) { | 115 if (is_linux && !use_udev) { |
| 116 sources += [ "src/libusb/os/linux_netlink.c" ] | 116 sources += [ "src/libusb/os/linux_netlink.c" ] |
| 117 defines += [ "HAVE_LINUX_NETLINK_H" ] | 117 defines += [ "HAVE_LINUX_NETLINK_H" ] |
| 118 } | 118 } |
| 119 | 119 |
| 120 if (is_win) { | 120 if (is_win) { |
| 121 include_dirs += [ "src/msvc" ] | 121 include_dirs += [ "src/msvc" ] |
| 122 sources -= [ | 122 sources -= [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 133 "src/libusb/os/threads_windows.h", | 133 "src/libusb/os/threads_windows.h", |
| 134 "src/libusb/os/windows_common.h", | 134 "src/libusb/os/windows_common.h", |
| 135 "src/libusb/os/windows_usb.c", | 135 "src/libusb/os/windows_usb.c", |
| 136 "src/libusb/os/windows_usb.h", | 136 "src/libusb/os/windows_usb.h", |
| 137 "src/msvc/config.h", | 137 "src/msvc/config.h", |
| 138 "src/msvc/inttypes.h", | 138 "src/msvc/inttypes.h", |
| 139 "src/msvc/stdint.h", | 139 "src/msvc/stdint.h", |
| 140 ] | 140 ] |
| 141 } | 141 } |
| 142 } | 142 } |
| OLD | NEW |