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

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

Issue 1945893002: Split generated libraries out of //build/linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « net/BUILD.gn ('k') | 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 if (is_chromeos) { 102 if (is_chromeos) {
103 defines += [ "USBI_TIMERFD_AVAILABLE" ] 103 defines += [ "USBI_TIMERFD_AVAILABLE" ]
104 } 104 }
105 105
106 if (use_udev) { 106 if (use_udev) {
107 sources += [ "src/libusb/os/linux_udev.cc" ] 107 sources += [ "src/libusb/os/linux_udev.cc" ]
108 defines += [ 108 defines += [
109 "HAVE_LIBUDEV=1", 109 "HAVE_LIBUDEV=1",
110 "USE_UDEV=1", 110 "USE_UDEV=1",
111 ] 111 ]
112 deps += [ "//build/linux:udev" ] 112 deps += [ "//build/linux/libudev" ]
113 } 113 }
114 114
115 if (is_linux && !use_udev) { 115 if (is_linux && !use_udev) {
116 sources += [ "src/libusb/os/linux_netlink.c" ] 116 sources += [ "src/libusb/os/linux_netlink.c" ]
117 defines += [ "HAVE_LINUX_NETLINK_H" ] 117 defines += [ "HAVE_LINUX_NETLINK_H" ]
118 } 118 }
119 119
120 if (is_win) { 120 if (is_win) {
121 include_dirs += [ "src/msvc" ] 121 include_dirs += [ "src/msvc" ]
122 sources -= [ 122 sources -= [
(...skipping 10 matching lines...) Expand all
133 "src/libusb/os/threads_windows.h", 133 "src/libusb/os/threads_windows.h",
134 "src/libusb/os/windows_common.h", 134 "src/libusb/os/windows_common.h",
135 "src/libusb/os/windows_usb.c", 135 "src/libusb/os/windows_usb.c",
136 "src/libusb/os/windows_usb.h", 136 "src/libusb/os/windows_usb.h",
137 "src/msvc/config.h", 137 "src/msvc/config.h",
138 "src/msvc/inttypes.h", 138 "src/msvc/inttypes.h",
139 "src/msvc/stdint.h", 139 "src/msvc/stdint.h",
140 ] 140 ]
141 } 141 }
142 } 142 }
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698