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

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

Issue 1071633003: GN Windows component build fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/test/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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 cflags += [ "-Wno-pointer-sign" ] 99 cflags += [ "-Wno-pointer-sign" ]
100 } 100 }
101 } 101 }
102 102
103 if (is_win) { 103 if (is_win) {
104 include_dirs += [ "src/msvc" ] 104 include_dirs += [ "src/msvc" ]
105 sources -= [ 105 sources -= [
106 "src/libusb/os/poll_posix.c", 106 "src/libusb/os/poll_posix.c",
107 "src/libusb/os/threads_posix.c", 107 "src/libusb/os/threads_posix.c",
108 ] 108 ]
109 libs = [ "setupapi.lib" ]
109 } else { 110 } else {
110 include_dirs += [ "src" ] 111 include_dirs += [ "src" ]
111 sources -= [ 112 sources -= [
112 "src/libusb/os/poll_windows.c", 113 "src/libusb/os/poll_windows.c",
113 "src/libusb/os/poll_windows.h", 114 "src/libusb/os/poll_windows.h",
114 "src/libusb/os/threads_windows.c", 115 "src/libusb/os/threads_windows.c",
115 "src/libusb/os/threads_windows.h", 116 "src/libusb/os/threads_windows.h",
116 "src/libusb/os/windows_common.h", 117 "src/libusb/os/windows_common.h",
117 "src/libusb/os/windows_usb.c", 118 "src/libusb/os/windows_usb.c",
118 "src/libusb/os/windows_usb.h", 119 "src/libusb/os/windows_usb.h",
119 "src/msvc/config.h", 120 "src/msvc/config.h",
120 "src/msvc/inttypes.h", 121 "src/msvc/inttypes.h",
121 "src/msvc/stdint.h", 122 "src/msvc/stdint.h",
122 ] 123 ]
123 } 124 }
124 } 125 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698