1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 'target_name': 'libusb',
9 'type': 'static_library',
13 'src/libusb/descriptor.c',
14 'src/libusb/hotplug.c',
15 'src/libusb/hotplug.h',
16 'src/libusb/interrupt.c',
17 'src/libusb/interrupt.h',
19 'src/libusb/libusb.h',
20 'src/libusb/libusbi.h',
21 'src/libusb/strerror.c',
23 'src/libusb/version.h',
24 'src/libusb/version_nano.h',
27 'clang_warning_flags': [
28 # guid_eq in windows_usb.c is unused.
29 '-Wno-unused-function',
37 'direct_dependent_settings': {
43 ['OS=="linux" or OS=="mac"', {
45 'src/libusb/os/poll_posix.c',
46 'src/libusb/os/poll_posix.h',
47 'src/libusb/os/threads_posix.c',
48 'src/libusb/os/threads_posix.h',
51 'DEFAULT_VISIBILITY=',
52 'HAVE_GETTIMEOFDAY=1',
55 'LIBUSB_DESCRIBE="1.0.16"',
56 'POLL_NFDS_TYPE=nfds_t',
62 'src/libusb/os/linux_usbfs.c',
63 'src/libusb/os/linux_usbfs.h',
72 'src/libusb/os/linux_udev.cc',
79 '../../device/udev_linux/udev.gyp:udev_linux',
85 ['OS=="linux" and use_udev==0', {
87 'src/libusb/os/linux_netlink.c',
90 'HAVE_LINUX_NETLINK_H',
102 'src/libusb/os/darwin_usb.c',
103 'src/libusb/os/darwin_usb.h',
111 'src/libusb/os/poll_windows.c',
112 'src/libusb/os/poll_windows.h',
113 'src/libusb/os/threads_windows.c',
114 'src/libusb/os/threads_windows.h',
115 'src/libusb/os/windows_common.h',
116 'src/libusb/os/windows_usb.c',
117 'src/libusb/os/windows_usb.h',
119 'src/msvc/inttypes.h',
128 'msvs_disabled_warnings': [ 4267 ],