Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: third_party/libusb/BUILD.gn

Issue 2253003002: Make libusb deprecation warning go away on OSX 10.12. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698