| 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', | |
| 68 '_GNU_SOURCE=1', | 67 '_GNU_SOURCE=1', |
| 69 ], | 68 ], |
| 70 }], | 69 }], |
| 71 ['use_udev==1', { | 70 ['use_udev==1', { |
| 72 'sources': [ | 71 'sources': [ |
| 73 'src/libusb/os/linux_udev.cc', | 72 'src/libusb/os/linux_udev.cc', |
| 74 ], | 73 ], |
| 75 'defines': [ | 74 'defines': [ |
| 76 'HAVE_LIBUDEV=1', | 75 'HAVE_LIBUDEV=1', |
| 77 'USE_UDEV=1', | 76 'USE_UDEV=1', |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 ], | 124 ], |
| 126 'include_dirs': [ | 125 'include_dirs': [ |
| 127 'src/msvc', | 126 'src/msvc', |
| 128 ], | 127 ], |
| 129 'msvs_disabled_warnings': [ 4267 ], | 128 'msvs_disabled_warnings': [ 4267 ], |
| 130 }], | 129 }], |
| 131 ], | 130 ], |
| 132 }, | 131 }, |
| 133 ], | 132 ], |
| 134 } | 133 } |
| OLD | NEW |