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

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

Issue 1368773005: Enable timerfd in libusb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't change OS X, udpate BUILD.gn as well. Created 5 years, 2 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 | third_party/libusb/libusb.gyp » ('j') | 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ] 88 ]
89 } 89 }
90 90
91 if (is_linux) { 91 if (is_linux) {
92 sources += [ 92 sources += [
93 "src/libusb/os/linux_usbfs.c", 93 "src/libusb/os/linux_usbfs.c",
94 "src/libusb/os/linux_usbfs.h", 94 "src/libusb/os/linux_usbfs.h",
95 ] 95 ]
96 defines += [ 96 defines += [
97 "OS_LINUX=1", 97 "OS_LINUX=1",
98 "USBI_TIMERFD_AVAILABLE",
98 "_GNU_SOURCE=1", 99 "_GNU_SOURCE=1",
99 ] 100 ]
100 } 101 }
101 102
102 if (use_udev) { 103 if (use_udev) {
103 sources += [ "src/libusb/os/linux_udev.cc" ] 104 sources += [ "src/libusb/os/linux_udev.cc" ]
104 defines += [ 105 defines += [
105 "HAVE_LIBUDEV=1", 106 "HAVE_LIBUDEV=1",
106 "USE_UDEV=1", 107 "USE_UDEV=1",
107 ] 108 ]
(...skipping 21 matching lines...) Expand all
129 "src/libusb/os/threads_windows.h", 130 "src/libusb/os/threads_windows.h",
130 "src/libusb/os/windows_common.h", 131 "src/libusb/os/windows_common.h",
131 "src/libusb/os/windows_usb.c", 132 "src/libusb/os/windows_usb.c",
132 "src/libusb/os/windows_usb.h", 133 "src/libusb/os/windows_usb.h",
133 "src/msvc/config.h", 134 "src/msvc/config.h",
134 "src/msvc/inttypes.h", 135 "src/msvc/inttypes.h",
135 "src/msvc/stdint.h", 136 "src/msvc/stdint.h",
136 ] 137 ]
137 } 138 }
138 } 139 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libusb/libusb.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698