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

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

Issue 1314163005: Move loader stub libraries out of //build/config/linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix libbrl references Created 5 years, 3 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 "_GNU_SOURCE=1", 92 "_GNU_SOURCE=1",
93 ] 93 ]
94 } 94 }
95 95
96 if (use_udev) { 96 if (use_udev) {
97 sources += [ "src/libusb/os/linux_udev.cc" ] 97 sources += [ "src/libusb/os/linux_udev.cc" ]
98 defines += [ 98 defines += [
99 "HAVE_LIBUDEV=1", 99 "HAVE_LIBUDEV=1",
100 "USE_UDEV=1", 100 "USE_UDEV=1",
101 ] 101 ]
102 deps += [ "//build/config/linux:udev" ] 102 deps += [ "//build/linux:udev" ]
103 } 103 }
104 104
105 if (is_linux && !use_udev) { 105 if (is_linux && !use_udev) {
106 sources += [ "src/libusb/os/linux_netlink.c" ] 106 sources += [ "src/libusb/os/linux_netlink.c" ]
107 defines += [ "HAVE_LINUX_NETLINK_H" ] 107 defines += [ "HAVE_LINUX_NETLINK_H" ]
108 } 108 }
109 109
110 if (is_win) { 110 if (is_win) {
111 include_dirs += [ "src/msvc" ] 111 include_dirs += [ "src/msvc" ]
112 sources -= [ 112 sources -= [
(...skipping 10 matching lines...) Expand all
123 "src/libusb/os/threads_windows.h", 123 "src/libusb/os/threads_windows.h",
124 "src/libusb/os/windows_common.h", 124 "src/libusb/os/windows_common.h",
125 "src/libusb/os/windows_usb.c", 125 "src/libusb/os/windows_usb.c",
126 "src/libusb/os/windows_usb.h", 126 "src/libusb/os/windows_usb.h",
127 "src/msvc/config.h", 127 "src/msvc/config.h",
128 "src/msvc/inttypes.h", 128 "src/msvc/inttypes.h",
129 "src/msvc/stdint.h", 129 "src/msvc/stdint.h",
130 ] 130 ]
131 } 131 }
132 } 132 }
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