OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 assert(!is_android && !is_ios) | 5 assert(!is_android && !is_ios) |
6 | 6 |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 | 8 |
9 config("libusb_config") { | 9 config("libusb_config") { |
10 include_dirs = [ "src/libusb" ] | 10 include_dirs = [ "src/libusb" ] |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 "HAVE_GETTIMEOFDAY=1", | 73 "HAVE_GETTIMEOFDAY=1", |
74 "HAVE_POLL_H=1", | 74 "HAVE_POLL_H=1", |
75 "HAVE_SYS_TIME_H=1", | 75 "HAVE_SYS_TIME_H=1", |
76 "LIBUSB_DESCRIBE=\"1.0.16\"", | 76 "LIBUSB_DESCRIBE=\"1.0.16\"", |
77 "POLL_NFDS_TYPE=nfds_t", | 77 "POLL_NFDS_TYPE=nfds_t", |
78 "THREADS_POSIX=1", | 78 "THREADS_POSIX=1", |
79 ] | 79 ] |
80 } | 80 } |
81 | 81 |
82 if (is_mac) { | 82 if (is_mac) { |
83 defines += [ "OS_DARWIN=1" ] | 83 defines += [ |
| 84 "OS_DARWIN=1", |
| 85 |
| 86 # Needed on OSX 10.12 to silence a deprecation warning. |
| 87 "OBJC_SILENCE_GC_DEPRECATIONS=1", |
| 88 ] |
84 } else { | 89 } else { |
85 sources -= [ | 90 sources -= [ |
86 "src/libusb/os/darwin_usb.c", | 91 "src/libusb/os/darwin_usb.c", |
87 "src/libusb/os/darwin_usb.h", | 92 "src/libusb/os/darwin_usb.h", |
88 ] | 93 ] |
89 } | 94 } |
90 | 95 |
91 if (is_linux) { | 96 if (is_linux) { |
92 sources += [ | 97 sources += [ |
93 "src/libusb/os/linux_usbfs.c", | 98 "src/libusb/os/linux_usbfs.c", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 "src/libusb/os/threads_windows.h", | 138 "src/libusb/os/threads_windows.h", |
134 "src/libusb/os/windows_common.h", | 139 "src/libusb/os/windows_common.h", |
135 "src/libusb/os/windows_usb.c", | 140 "src/libusb/os/windows_usb.c", |
136 "src/libusb/os/windows_usb.h", | 141 "src/libusb/os/windows_usb.h", |
137 "src/msvc/config.h", | 142 "src/msvc/config.h", |
138 "src/msvc/inttypes.h", | 143 "src/msvc/inttypes.h", |
139 "src/msvc/stdint.h", | 144 "src/msvc/stdint.h", |
140 ] | 145 ] |
141 } | 146 } |
142 } | 147 } |
OLD | NEW |