| 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 config("libusb_config") { | 7 config("libusb_config") { |
| 8 include_dirs = [ | 8 include_dirs = [ "src/libusb" ] |
| 9 "src/libusb", | |
| 10 ] | |
| 11 } | 9 } |
| 12 | 10 |
| 13 static_library("libusb") { | 11 static_library("libusb") { |
| 14 sources = [ | 12 sources = [ |
| 15 "src/config.h", | 13 "src/config.h", |
| 16 "src/libusb/core.c", | 14 "src/libusb/core.c", |
| 17 "src/libusb/descriptor.c", | 15 "src/libusb/descriptor.c", |
| 18 "src/libusb/hotplug.c", | 16 "src/libusb/hotplug.c", |
| 19 "src/libusb/hotplug.h", | 17 "src/libusb/hotplug.h", |
| 20 "src/libusb/interrupt.c", | 18 "src/libusb/interrupt.c", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 "src/libusb/os/windows_usb.h", | 38 "src/libusb/os/windows_usb.h", |
| 41 "src/libusb/strerror.c", | 39 "src/libusb/strerror.c", |
| 42 "src/libusb/sync.c", | 40 "src/libusb/sync.c", |
| 43 "src/libusb/version.h", | 41 "src/libusb/version.h", |
| 44 "src/libusb/version_nano.h", | 42 "src/libusb/version_nano.h", |
| 45 "src/msvc/config.h", | 43 "src/msvc/config.h", |
| 46 "src/msvc/inttypes.h", | 44 "src/msvc/inttypes.h", |
| 47 "src/msvc/stdint.h", | 45 "src/msvc/stdint.h", |
| 48 ] | 46 ] |
| 49 deps = [] | 47 deps = [] |
| 50 include_dirs = [ | 48 include_dirs = [ "src/libusb/os" ] |
| 51 "src/libusb/os", | |
| 52 ] | |
| 53 | 49 |
| 54 configs -= [ "//build/config/compiler:chromium_code" ] | 50 configs -= [ "//build/config/compiler:chromium_code" ] |
| 55 configs += [ "//build/config/compiler:no_chromium_code" ] | 51 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 56 | 52 |
| 57 public_configs = [ ":libusb_config" ] | 53 public_configs = [ ":libusb_config" ] |
| 58 | 54 |
| 59 if (is_posix) { | 55 if (is_posix) { |
| 60 defines = [ | 56 defines = [ |
| 61 "DEFAULT_VISIBILITY=", | 57 "DEFAULT_VISIBILITY=", |
| 62 "HAVE_GETTIMEOFDAY=1", | 58 "HAVE_GETTIMEOFDAY=1", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 "src/libusb/os/threads_windows.h", | 104 "src/libusb/os/threads_windows.h", |
| 109 "src/libusb/os/windows_common.h", | 105 "src/libusb/os/windows_common.h", |
| 110 "src/libusb/os/windows_usb.c", | 106 "src/libusb/os/windows_usb.c", |
| 111 "src/libusb/os/windows_usb.h", | 107 "src/libusb/os/windows_usb.h", |
| 112 "src/msvc/config.h", | 108 "src/msvc/config.h", |
| 113 "src/msvc/inttypes.h", | 109 "src/msvc/inttypes.h", |
| 114 "src/msvc/stdint.h", | 110 "src/msvc/stdint.h", |
| 115 ] | 111 ] |
| 116 } | 112 } |
| 117 } | 113 } |
| OLD | NEW |