OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'libusb', |
| 9 'type': '<(library)', |
| 10 'sources': [ |
| 11 'libusb/core.c', |
| 12 'libusb/descriptor.c', |
| 13 'libusb/io.c', |
| 14 'libusb/sync.c', |
| 15 ], |
| 16 'include_dirs': [ |
| 17 '.', |
| 18 'libusb', |
| 19 'libusb/os', |
| 20 ], |
| 21 'conditions': [ |
| 22 [ 'OS == "linux"', { |
| 23 'sources': [ |
| 24 'libusb/os/linux_usbfs.c', |
| 25 'libusb/os/threads_posix.c', |
| 26 ], |
| 27 'defines': [ |
| 28 'DEFAULT_VISIBILITY=', |
| 29 'HAVE_POLL_H=1', |
| 30 'HAVE_SYS_TIME_H=1', |
| 31 'OS_LINUX=1', |
| 32 'POLL_NFDS_TYPE=nfds_t', |
| 33 'THREADS_POSIX=1', |
| 34 '_GNU_SOURCE=1', |
| 35 ], |
| 36 }], |
| 37 [ 'OS == "win"', { |
| 38 'sources': [ |
| 39 'libusb/os/windows_usb.c', |
| 40 'libusb/os/threads_windows.c', |
| 41 ], |
| 42 'include_dirs!': [ |
| 43 '.', |
| 44 ], |
| 45 'include_dirs': [ |
| 46 'msvc', |
| 47 ], |
| 48 }], |
| 49 [ 'OS == "mac"', { |
| 50 'sources': [ |
| 51 'libusb/os/darwin_usb.c', |
| 52 'libusb/os/threads_posix.c', |
| 53 ], |
| 54 'defines': [ |
| 55 'DEFAULT_VISIBILITY=', |
| 56 'HAVE_POLL_H=1', |
| 57 'HAVE_SYS_TIME_H=1', |
| 58 'OS_DARWIN=1', |
| 59 'POLL_NFDS_TYPE=nfds_t', |
| 60 'THREADS_POSIX=1', |
| 61 '_GNU_SOURCE=1', |
| 62 ], |
| 63 }], |
| 64 ], |
| 65 }, |
| 66 ], |
| 67 } |
OLD | NEW |