OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'libusb', | 8 'target_name': 'libusb', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'sources': [ | 10 'sources': [ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 'THREADS_POSIX=1', | 57 'THREADS_POSIX=1', |
58 ], | 58 ], |
59 }], | 59 }], |
60 ['OS=="linux"', { | 60 ['OS=="linux"', { |
61 'sources': [ | 61 'sources': [ |
62 'src/libusb/os/linux_usbfs.c', | 62 'src/libusb/os/linux_usbfs.c', |
63 'src/libusb/os/linux_usbfs.h', | 63 'src/libusb/os/linux_usbfs.h', |
64 ], | 64 ], |
65 'defines': [ | 65 'defines': [ |
66 'OS_LINUX=1', | 66 'OS_LINUX=1', |
| 67 'USBI_TIMERFD_AVAILABLE', |
67 '_GNU_SOURCE=1', | 68 '_GNU_SOURCE=1', |
68 ], | 69 ], |
69 }], | 70 }], |
70 ['use_udev==1', { | 71 ['use_udev==1', { |
71 'sources': [ | 72 'sources': [ |
72 'src/libusb/os/linux_udev.cc', | 73 'src/libusb/os/linux_udev.cc', |
73 ], | 74 ], |
74 'defines': [ | 75 'defines': [ |
75 'HAVE_LIBUDEV=1', | 76 'HAVE_LIBUDEV=1', |
76 'USE_UDEV=1', | 77 'USE_UDEV=1', |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 ], | 125 ], |
125 'include_dirs': [ | 126 'include_dirs': [ |
126 'src/msvc', | 127 'src/msvc', |
127 ], | 128 ], |
128 'msvs_disabled_warnings': [ 4267 ], | 129 'msvs_disabled_warnings': [ 4267 ], |
129 }], | 130 }], |
130 ], | 131 ], |
131 }, | 132 }, |
132 ], | 133 ], |
133 } | 134 } |
OLD | NEW |