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',
22 'src/libusb/version.h',
23 'src/libusb/version_nano.h',
30 'direct_dependent_settings': {
36 [ 'OS == "linux" or OS == "android" or OS == "mac"', {
38 'src/libusb/os/poll_posix.c',
39 'src/libusb/os/poll_posix.h',
40 'src/libusb/os/threads_posix.c',
41 'src/libusb/os/threads_posix.h',
44 'DEFAULT_VISIBILITY=',
45 'HAVE_GETTIMEOFDAY=1',
48 'LIBUSB_DESCRIBE="1.0.16"',
49 'POLL_NFDS_TYPE=nfds_t',
53 [ 'OS == "linux" or OS == "android"', {
55 'src/libusb/os/linux_udev.c',
56 'src/libusb/os/linux_usbfs.c',
57 'src/libusb/os/linux_usbfs.h',
68 'src/libusb/os/darwin_usb.c',
69 'src/libusb/os/darwin_usb.h',
77 'src/libusb/os/poll_windows.c',
78 'src/libusb/os/poll_windows.h',
79 'src/libusb/os/threads_windows.c',
80 'src/libusb/os/threads_windows.h',
81 'src/libusb/os/windows_common.h',
82 'src/libusb/os/windows_usb.c',
83 'src/libusb/os/windows_usb.h',
85 'src/msvc/inttypes.h',
94 'msvs_disabled_warnings': [ 4267 ],