| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 "_GNU_SOURCE=1", | 92 "_GNU_SOURCE=1", |
| 93 ] | 93 ] |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (use_udev) { | 96 if (use_udev) { |
| 97 sources += [ "src/libusb/os/linux_udev.cc" ] | 97 sources += [ "src/libusb/os/linux_udev.cc" ] |
| 98 defines += [ | 98 defines += [ |
| 99 "HAVE_LIBUDEV=1", | 99 "HAVE_LIBUDEV=1", |
| 100 "USE_UDEV=1", | 100 "USE_UDEV=1", |
| 101 ] | 101 ] |
| 102 deps += [ "//build/config/linux:udev" ] | 102 deps += [ "//build/linux:udev" ] |
| 103 } | 103 } |
| 104 | 104 |
| 105 if (is_linux && !use_udev) { | 105 if (is_linux && !use_udev) { |
| 106 sources += [ "src/libusb/os/linux_netlink.c" ] | 106 sources += [ "src/libusb/os/linux_netlink.c" ] |
| 107 defines += [ "HAVE_LINUX_NETLINK_H" ] | 107 defines += [ "HAVE_LINUX_NETLINK_H" ] |
| 108 } | 108 } |
| 109 | 109 |
| 110 if (is_win) { | 110 if (is_win) { |
| 111 include_dirs += [ "src/msvc" ] | 111 include_dirs += [ "src/msvc" ] |
| 112 sources -= [ | 112 sources -= [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 123 "src/libusb/os/threads_windows.h", | 123 "src/libusb/os/threads_windows.h", |
| 124 "src/libusb/os/windows_common.h", | 124 "src/libusb/os/windows_common.h", |
| 125 "src/libusb/os/windows_usb.c", | 125 "src/libusb/os/windows_usb.c", |
| 126 "src/libusb/os/windows_usb.h", | 126 "src/libusb/os/windows_usb.h", |
| 127 "src/msvc/config.h", | 127 "src/msvc/config.h", |
| 128 "src/msvc/inttypes.h", | 128 "src/msvc/inttypes.h", |
| 129 "src/msvc/stdint.h", | 129 "src/msvc/stdint.h", |
| 130 ] | 130 ] |
| 131 } | 131 } |
| 132 } | 132 } |
| OLD | NEW |