| Index: third_party/libusb/libusb.gyp
|
| diff --git a/third_party/libusb/libusb.gyp b/third_party/libusb/libusb.gyp
|
| index 9ea8af58968d35ffdd749b93b0d5a10fd2005e4d..02d319636d695d5780d7382e2583fe74362fafd9 100644
|
| --- a/third_party/libusb/libusb.gyp
|
| +++ b/third_party/libusb/libusb.gyp
|
| @@ -53,17 +53,38 @@
|
| }],
|
| [ 'OS == "linux" or OS == "android"', {
|
| 'sources': [
|
| - 'src/libusb/os/linux_udev.c',
|
| 'src/libusb/os/linux_usbfs.c',
|
| 'src/libusb/os/linux_usbfs.h',
|
| ],
|
| 'defines': [
|
| - 'HAVE_LIBUDEV=1',
|
| 'OS_LINUX=1',
|
| - 'USE_UDEV=1',
|
| '_GNU_SOURCE=1',
|
| ],
|
| }],
|
| + [ 'use_udev == 1 or OS == "android"', {
|
| + 'sources': [
|
| + 'src/libusb/os/linux_udev.c',
|
| + ],
|
| + 'defines': [
|
| + 'HAVE_LIBUDEV=1',
|
| + 'USE_UDEV=1',
|
| + ],
|
| + }],
|
| + [ 'OS == "linux" and use_udev == 0', {
|
| + 'sources': [
|
| + 'src/libusb/os/linux_netlink.c',
|
| + ],
|
| + 'defines': [
|
| + 'HAVE_LINUX_NETLINK_H',
|
| + ],
|
| + 'conditions': [
|
| + ['clang==1', {
|
| + 'cflags': [
|
| + '-Wno-pointer-sign',
|
| + ]
|
| + }]
|
| + ],
|
| + }],
|
| [ 'OS == "mac"', {
|
| 'sources': [
|
| 'src/libusb/os/darwin_usb.c',
|
|
|