| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |