usb 2.17.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -4
- package/README.md +25 -516
- package/dist/index.d.ts +67 -13
- package/dist/index.js +333 -64
- package/index.d.ts +89 -0
- package/index.js +583 -0
- package/package.json +53 -33
- package/CHANGELOG.md +0 -294
- package/binding.gyp +0 -128
- package/dist/index.js.map +0 -1
- package/dist/usb/bindings.d.ts +0 -266
- package/dist/usb/bindings.js +0 -10
- package/dist/usb/bindings.js.map +0 -1
- package/dist/usb/capability.d.ts +0 -13
- package/dist/usb/capability.js +0 -17
- package/dist/usb/capability.js.map +0 -1
- package/dist/usb/descriptors.d.ts +0 -128
- package/dist/usb/descriptors.js +0 -3
- package/dist/usb/descriptors.js.map +0 -1
- package/dist/usb/device.d.ts +0 -100
- package/dist/usb/device.js +0 -297
- package/dist/usb/device.js.map +0 -1
- package/dist/usb/endpoint.d.ts +0 -94
- package/dist/usb/endpoint.js +0 -219
- package/dist/usb/endpoint.js.map +0 -1
- package/dist/usb/index.d.ts +0 -31
- package/dist/usb/index.js +0 -116
- package/dist/usb/index.js.map +0 -1
- package/dist/usb/interface.d.ts +0 -80
- package/dist/usb/interface.js +0 -133
- package/dist/usb/interface.js.map +0 -1
- package/dist/webusb/index.d.ts +0 -64
- package/dist/webusb/index.js +0 -295
- package/dist/webusb/index.js.map +0 -1
- package/dist/webusb/webusb-device.d.ts +0 -54
- package/dist/webusb/webusb-device.js +0 -434
- package/dist/webusb/webusb-device.js.map +0 -1
- package/libusb/.clang-tidy +0 -34
- package/libusb/.codespellrc +0 -3
- package/libusb/.private/README.txt +0 -5
- package/libusb/.private/appveyor_build.sh +0 -26
- package/libusb/.private/bm.sh +0 -54
- package/libusb/.private/ci-build.sh +0 -92
- package/libusb/.private/ci-container-build.sh +0 -67
- package/libusb/.private/post-rewrite.sh +0 -32
- package/libusb/.private/pre-commit.sh +0 -52
- package/libusb/.private/wbs.txt +0 -43
- package/libusb/.travis.yml +0 -58
- package/libusb/AUTHORS +0 -231
- package/libusb/COPYING +0 -504
- package/libusb/ChangeLog +0 -365
- package/libusb/HACKING +0 -25
- package/libusb/INSTALL_WIN.txt +0 -52
- package/libusb/KEYS +0 -123
- package/libusb/Makefile.am +0 -50
- package/libusb/NEWS +0 -2
- package/libusb/PORTING +0 -94
- package/libusb/README +0 -29
- package/libusb/README.git +0 -41
- package/libusb/TODO +0 -2
- package/libusb/Xcode/common.xcconfig +0 -92
- package/libusb/Xcode/config.h +0 -31
- package/libusb/Xcode/debug.xcconfig +0 -32
- package/libusb/Xcode/libusb.xcconfig +0 -21
- package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +0 -1391
- package/libusb/Xcode/libusb_debug.xcconfig +0 -21
- package/libusb/Xcode/libusb_release.xcconfig +0 -21
- package/libusb/Xcode/release.xcconfig +0 -30
- package/libusb/android/README +0 -152
- package/libusb/android/config.h +0 -55
- package/libusb/android/examples/unrooted_android.c +0 -301
- package/libusb/android/examples/unrooted_android.h +0 -36
- package/libusb/android/jni/Android.mk +0 -23
- package/libusb/android/jni/Application.mk +0 -40
- package/libusb/android/jni/examples.mk +0 -168
- package/libusb/android/jni/libusb.mk +0 -60
- package/libusb/android/jni/tests.mk +0 -45
- package/libusb/appveyor.yml +0 -108
- package/libusb/autogen.sh +0 -10
- package/libusb/bootstrap.sh +0 -10
- package/libusb/configure.ac +0 -450
- package/libusb/doc/Makefile.in +0 -22
- package/libusb/doc/doxygen.cfg.in +0 -2571
- package/libusb/doc/libusb.png +0 -0
- package/libusb/examples/Makefile.am +0 -12
- package/libusb/examples/dpfp.c +0 -711
- package/libusb/examples/ezusb.c +0 -846
- package/libusb/examples/ezusb.h +0 -109
- package/libusb/examples/fxload.c +0 -310
- package/libusb/examples/hotplugtest.c +0 -147
- package/libusb/examples/listdevs.c +0 -73
- package/libusb/examples/sam3u_benchmark.c +0 -228
- package/libusb/examples/testlibusb.c +0 -312
- package/libusb/examples/xusb.c +0 -1254
- package/libusb/libusb/Makefile.am +0 -98
- package/libusb/libusb/Makefile.am.extra +0 -26
- package/libusb/libusb/core.c +0 -2925
- package/libusb/libusb/descriptor.c +0 -1558
- package/libusb/libusb/hotplug.c +0 -489
- package/libusb/libusb/io.c +0 -2865
- package/libusb/libusb/libusb-1.0.def +0 -199
- package/libusb/libusb/libusb-1.0.rc +0 -53
- package/libusb/libusb/libusb.h +0 -2421
- package/libusb/libusb/libusbi.h +0 -1535
- package/libusb/libusb/os/darwin_usb.c +0 -2977
- package/libusb/libusb/os/darwin_usb.h +0 -156
- package/libusb/libusb/os/emscripten_webusb.cpp +0 -875
- package/libusb/libusb/os/events_posix.c +0 -340
- package/libusb/libusb/os/events_posix.h +0 -62
- package/libusb/libusb/os/events_windows.c +0 -214
- package/libusb/libusb/os/events_windows.h +0 -46
- package/libusb/libusb/os/haiku_pollfs.cpp +0 -372
- package/libusb/libusb/os/haiku_usb.h +0 -113
- package/libusb/libusb/os/haiku_usb_backend.cpp +0 -532
- package/libusb/libusb/os/haiku_usb_raw.cpp +0 -231
- package/libusb/libusb/os/haiku_usb_raw.h +0 -188
- package/libusb/libusb/os/linux_netlink.c +0 -401
- package/libusb/libusb/os/linux_udev.c +0 -321
- package/libusb/libusb/os/linux_usbfs.c +0 -2829
- package/libusb/libusb/os/linux_usbfs.h +0 -221
- package/libusb/libusb/os/netbsd_usb.c +0 -617
- package/libusb/libusb/os/null_usb.c +0 -111
- package/libusb/libusb/os/openbsd_usb.c +0 -700
- package/libusb/libusb/os/sunos_usb.c +0 -1619
- package/libusb/libusb/os/sunos_usb.h +0 -79
- package/libusb/libusb/os/threads_posix.c +0 -126
- package/libusb/libusb/os/threads_posix.h +0 -98
- package/libusb/libusb/os/threads_windows.c +0 -40
- package/libusb/libusb/os/threads_windows.h +0 -113
- package/libusb/libusb/os/windows_common.c +0 -923
- package/libusb/libusb/os/windows_common.h +0 -424
- package/libusb/libusb/os/windows_usbdk.c +0 -724
- package/libusb/libusb/os/windows_usbdk.h +0 -106
- package/libusb/libusb/os/windows_winusb.c +0 -4766
- package/libusb/libusb/os/windows_winusb.h +0 -787
- package/libusb/libusb/strerror.c +0 -223
- package/libusb/libusb/sync.c +0 -342
- package/libusb/libusb/version.h +0 -18
- package/libusb/libusb/version_nano.h +0 -1
- package/libusb/libusb-1.0.pc.in +0 -11
- package/libusb/msvc/Base.props +0 -60
- package/libusb/msvc/Configuration.Application.props +0 -7
- package/libusb/msvc/Configuration.Base.props +0 -47
- package/libusb/msvc/Configuration.DynamicLibrary.props +0 -21
- package/libusb/msvc/Configuration.StaticLibrary.props +0 -7
- package/libusb/msvc/ProjectConfigurations.Base.props +0 -69
- package/libusb/msvc/build_all.ps1 +0 -17
- package/libusb/msvc/config.h +0 -58
- package/libusb/msvc/dpfp.vcxproj +0 -33
- package/libusb/msvc/dpfp_threaded.vcxproj +0 -38
- package/libusb/msvc/fxload.vcxproj +0 -46
- package/libusb/msvc/getopt/getopt.c +0 -1060
- package/libusb/msvc/getopt/getopt.h +0 -180
- package/libusb/msvc/getopt/getopt1.c +0 -188
- package/libusb/msvc/getopt.vcxproj +0 -33
- package/libusb/msvc/hotplugtest.vcxproj +0 -32
- package/libusb/msvc/init_context.vcxproj +0 -35
- package/libusb/msvc/libusb.sln +0 -542
- package/libusb/msvc/libusb_dll.vcxproj +0 -61
- package/libusb/msvc/libusb_static.vcxproj +0 -49
- package/libusb/msvc/listdevs.vcxproj +0 -32
- package/libusb/msvc/sam3u_benchmark.vcxproj +0 -33
- package/libusb/msvc/set_option.vcxproj +0 -35
- package/libusb/msvc/stress.vcxproj +0 -35
- package/libusb/msvc/stress_mt.vcxproj +0 -33
- package/libusb/msvc/testlibusb.vcxproj +0 -32
- package/libusb/msvc/xusb.vcxproj +0 -38
- package/libusb/tests/Makefile.am +0 -40
- package/libusb/tests/init_context.c +0 -153
- package/libusb/tests/libusb_testlib.h +0 -76
- package/libusb/tests/macos.c +0 -130
- package/libusb/tests/set_option.c +0 -253
- package/libusb/tests/stress.c +0 -172
- package/libusb/tests/stress_mt.c +0 -267
- package/libusb/tests/testlib.c +0 -184
- package/libusb/tests/umockdev.c +0 -1175
- package/libusb/tests/webusb-test-shim/index.js +0 -12
- package/libusb/tests/webusb-test-shim/package-lock.json +0 -50
- package/libusb/tests/webusb-test-shim/package.json +0 -10
- package/libusb.gypi +0 -154
- package/libusb_config/config.h +0 -1
- package/prebuilds/android-arm/node.napi.armv7.node +0 -0
- package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
- package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/linux-ia32/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/prebuilds/win32-arm64/node.napi.node +0 -0
- package/prebuilds/win32-ia32/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/device.cc +0 -439
- package/src/helpers.h +0 -64
- package/src/hotplug/hotplug.h +0 -22
- package/src/hotplug/libusb.cc +0 -90
- package/src/hotplug/windows.cc +0 -168
- package/src/node_usb.cc +0 -314
- package/src/node_usb.h +0 -131
- package/src/thread_name.cc +0 -79
- package/src/thread_name.h +0 -11
- package/src/transfer.cc +0 -143
- package/src/uv_async_queue.h +0 -41
- package/test/usb.coffee +0 -250
- package/test/webusb.coffee +0 -227
- package/test/worker.cjs +0 -13
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# Android build config for libusb examples
|
|
2
|
-
# Copyright © 2012-2013 RealVNC Ltd. <toby.gray@realvnc.com>
|
|
3
|
-
#
|
|
4
|
-
# This library is free software; you can redistribute it and/or
|
|
5
|
-
# modify it under the terms of the GNU Lesser General Public
|
|
6
|
-
# License as published by the Free Software Foundation; either
|
|
7
|
-
# version 2.1 of the License, or (at your option) any later version.
|
|
8
|
-
#
|
|
9
|
-
# This library is distributed in the hope that it will be useful,
|
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12
|
-
# Lesser General Public License for more details.
|
|
13
|
-
#
|
|
14
|
-
# You should have received a copy of the GNU Lesser General Public
|
|
15
|
-
# License along with this library; if not, write to the Free Software
|
|
16
|
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
LOCAL_PATH := $(call my-dir)
|
|
20
|
-
LIBUSB_ROOT_REL := ../..
|
|
21
|
-
LIBUSB_ROOT_ABS := $(LOCAL_PATH)/../..
|
|
22
|
-
|
|
23
|
-
ifeq ($(USE_PC_NAME),1)
|
|
24
|
-
LIBUSB_MODULE := usb-1.0
|
|
25
|
-
else
|
|
26
|
-
LIBUSB_MODULE := libusb1.0
|
|
27
|
-
endif
|
|
28
|
-
|
|
29
|
-
# dpfp
|
|
30
|
-
|
|
31
|
-
include $(CLEAR_VARS)
|
|
32
|
-
|
|
33
|
-
LOCAL_SRC_FILES := \
|
|
34
|
-
$(LIBUSB_ROOT_REL)/examples/dpfp.c
|
|
35
|
-
|
|
36
|
-
LOCAL_C_INCLUDES += \
|
|
37
|
-
$(LOCAL_PATH)/.. \
|
|
38
|
-
$(LIBUSB_ROOT_ABS)
|
|
39
|
-
|
|
40
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
41
|
-
|
|
42
|
-
LOCAL_MODULE := dpfp
|
|
43
|
-
|
|
44
|
-
include $(BUILD_EXECUTABLE)
|
|
45
|
-
|
|
46
|
-
# dpfp_threaded
|
|
47
|
-
|
|
48
|
-
include $(CLEAR_VARS)
|
|
49
|
-
|
|
50
|
-
LOCAL_SRC_FILES := \
|
|
51
|
-
$(LIBUSB_ROOT_REL)/examples/dpfp.c
|
|
52
|
-
|
|
53
|
-
LOCAL_C_INCLUDES += \
|
|
54
|
-
$(LOCAL_PATH)/.. \
|
|
55
|
-
$(LIBUSB_ROOT_ABS)
|
|
56
|
-
|
|
57
|
-
LOCAL_CFLAGS := -DDPFP_THREADED -pthread
|
|
58
|
-
|
|
59
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
60
|
-
|
|
61
|
-
LOCAL_MODULE := dpfp_threaded
|
|
62
|
-
|
|
63
|
-
include $(BUILD_EXECUTABLE)
|
|
64
|
-
|
|
65
|
-
# fxload
|
|
66
|
-
|
|
67
|
-
include $(CLEAR_VARS)
|
|
68
|
-
|
|
69
|
-
LOCAL_SRC_FILES := \
|
|
70
|
-
$(LIBUSB_ROOT_REL)/examples/ezusb.c \
|
|
71
|
-
$(LIBUSB_ROOT_REL)/examples/fxload.c
|
|
72
|
-
|
|
73
|
-
LOCAL_C_INCLUDES += \
|
|
74
|
-
$(LOCAL_PATH)/.. \
|
|
75
|
-
$(LIBUSB_ROOT_ABS)
|
|
76
|
-
|
|
77
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
78
|
-
|
|
79
|
-
LOCAL_MODULE := fxload
|
|
80
|
-
|
|
81
|
-
include $(BUILD_EXECUTABLE)
|
|
82
|
-
|
|
83
|
-
# hotplugtest
|
|
84
|
-
|
|
85
|
-
include $(CLEAR_VARS)
|
|
86
|
-
|
|
87
|
-
LOCAL_SRC_FILES := \
|
|
88
|
-
$(LIBUSB_ROOT_REL)/examples/hotplugtest.c
|
|
89
|
-
|
|
90
|
-
LOCAL_C_INCLUDES += \
|
|
91
|
-
$(LOCAL_PATH)/.. \
|
|
92
|
-
$(LIBUSB_ROOT_ABS)
|
|
93
|
-
|
|
94
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
95
|
-
|
|
96
|
-
LOCAL_MODULE := hotplugtest
|
|
97
|
-
|
|
98
|
-
include $(BUILD_EXECUTABLE)
|
|
99
|
-
|
|
100
|
-
# listdevs
|
|
101
|
-
|
|
102
|
-
include $(CLEAR_VARS)
|
|
103
|
-
|
|
104
|
-
LOCAL_SRC_FILES := \
|
|
105
|
-
$(LIBUSB_ROOT_REL)/examples/listdevs.c
|
|
106
|
-
|
|
107
|
-
LOCAL_C_INCLUDES += \
|
|
108
|
-
$(LOCAL_PATH)/.. \
|
|
109
|
-
$(LIBUSB_ROOT_ABS)
|
|
110
|
-
|
|
111
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
112
|
-
|
|
113
|
-
LOCAL_MODULE := listdevs
|
|
114
|
-
|
|
115
|
-
include $(BUILD_EXECUTABLE)
|
|
116
|
-
|
|
117
|
-
# sam3u_benchmark
|
|
118
|
-
|
|
119
|
-
include $(CLEAR_VARS)
|
|
120
|
-
|
|
121
|
-
LOCAL_SRC_FILES := \
|
|
122
|
-
$(LIBUSB_ROOT_REL)/examples/sam3u_benchmark.c
|
|
123
|
-
|
|
124
|
-
LOCAL_C_INCLUDES += \
|
|
125
|
-
$(LOCAL_PATH)/.. \
|
|
126
|
-
$(LIBUSB_ROOT_ABS)
|
|
127
|
-
|
|
128
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
129
|
-
|
|
130
|
-
LOCAL_MODULE := sam3u_benchmark
|
|
131
|
-
|
|
132
|
-
include $(BUILD_EXECUTABLE)
|
|
133
|
-
|
|
134
|
-
# xusb
|
|
135
|
-
|
|
136
|
-
include $(CLEAR_VARS)
|
|
137
|
-
|
|
138
|
-
LOCAL_SRC_FILES := \
|
|
139
|
-
$(LIBUSB_ROOT_REL)/examples/xusb.c
|
|
140
|
-
|
|
141
|
-
LOCAL_C_INCLUDES += \
|
|
142
|
-
$(LOCAL_PATH)/.. \
|
|
143
|
-
$(LIBUSB_ROOT_ABS)
|
|
144
|
-
|
|
145
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
146
|
-
|
|
147
|
-
LOCAL_MODULE := xusb
|
|
148
|
-
|
|
149
|
-
include $(BUILD_EXECUTABLE)
|
|
150
|
-
|
|
151
|
-
# unrooted_android
|
|
152
|
-
|
|
153
|
-
include $(CLEAR_VARS)
|
|
154
|
-
|
|
155
|
-
LOCAL_SRC_FILES := \
|
|
156
|
-
$(LIBUSB_ROOT_REL)/android/examples/unrooted_android.c
|
|
157
|
-
|
|
158
|
-
LOCAL_C_INCLUDES += \
|
|
159
|
-
$(LOCAL_PATH)/.. \
|
|
160
|
-
$(LIBUSB_ROOT_ABS)
|
|
161
|
-
|
|
162
|
-
LOCAL_SHARED_LIBRARIES += libusb1.0
|
|
163
|
-
|
|
164
|
-
LOCAL_LDLIBS += -llog
|
|
165
|
-
|
|
166
|
-
LOCAL_MODULE := unrooted_android
|
|
167
|
-
|
|
168
|
-
include $(BUILD_SHARED_LIBRARY)
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Android build config for libusb
|
|
2
|
-
# Copyright © 2012-2013 RealVNC Ltd. <toby.gray@realvnc.com>
|
|
3
|
-
#
|
|
4
|
-
# This library is free software; you can redistribute it and/or
|
|
5
|
-
# modify it under the terms of the GNU Lesser General Public
|
|
6
|
-
# License as published by the Free Software Foundation; either
|
|
7
|
-
# version 2.1 of the License, or (at your option) any later version.
|
|
8
|
-
#
|
|
9
|
-
# This library is distributed in the hope that it will be useful,
|
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12
|
-
# Lesser General Public License for more details.
|
|
13
|
-
#
|
|
14
|
-
# You should have received a copy of the GNU Lesser General Public
|
|
15
|
-
# License along with this library; if not, write to the Free Software
|
|
16
|
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
LOCAL_PATH := $(call my-dir)
|
|
20
|
-
LIBUSB_ROOT_REL := ../..
|
|
21
|
-
LIBUSB_ROOT_ABS := $(LOCAL_PATH)/../..
|
|
22
|
-
|
|
23
|
-
# libusb
|
|
24
|
-
|
|
25
|
-
include $(CLEAR_VARS)
|
|
26
|
-
|
|
27
|
-
LOCAL_SRC_FILES := \
|
|
28
|
-
$(LIBUSB_ROOT_REL)/libusb/core.c \
|
|
29
|
-
$(LIBUSB_ROOT_REL)/libusb/descriptor.c \
|
|
30
|
-
$(LIBUSB_ROOT_REL)/libusb/hotplug.c \
|
|
31
|
-
$(LIBUSB_ROOT_REL)/libusb/io.c \
|
|
32
|
-
$(LIBUSB_ROOT_REL)/libusb/sync.c \
|
|
33
|
-
$(LIBUSB_ROOT_REL)/libusb/strerror.c \
|
|
34
|
-
$(LIBUSB_ROOT_REL)/libusb/os/linux_usbfs.c \
|
|
35
|
-
$(LIBUSB_ROOT_REL)/libusb/os/events_posix.c \
|
|
36
|
-
$(LIBUSB_ROOT_REL)/libusb/os/threads_posix.c \
|
|
37
|
-
$(LIBUSB_ROOT_REL)/libusb/os/linux_netlink.c
|
|
38
|
-
|
|
39
|
-
LOCAL_C_INCLUDES += \
|
|
40
|
-
$(LOCAL_PATH)/.. \
|
|
41
|
-
$(LIBUSB_ROOT_ABS)/libusb \
|
|
42
|
-
$(LIBUSB_ROOT_ABS)/libusb/os
|
|
43
|
-
|
|
44
|
-
LOCAL_EXPORT_C_INCLUDES := \
|
|
45
|
-
$(LIBUSB_ROOT_ABS)/libusb
|
|
46
|
-
|
|
47
|
-
LOCAL_CFLAGS := -fvisibility=hidden -pthread
|
|
48
|
-
|
|
49
|
-
LOCAL_LDLIBS := -llog
|
|
50
|
-
|
|
51
|
-
ifeq ($(USE_PC_NAME),1)
|
|
52
|
-
LOCAL_MODULE := usb-1.0
|
|
53
|
-
else
|
|
54
|
-
LOCAL_MODULE := libusb1.0
|
|
55
|
-
$(warning Building to legacy library name libusb1.0, which differs from pkg-config.)
|
|
56
|
-
$(warning Use ndk-build USE_PC_NAME=1 to change the module name to the compatible usb-1.0.)
|
|
57
|
-
$(warning USE_PC_NAME=1 may be the default in the future.)
|
|
58
|
-
endif
|
|
59
|
-
|
|
60
|
-
include $(BUILD_SHARED_LIBRARY)
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Android build config for libusb tests
|
|
2
|
-
# Copyright © 2012-2013 RealVNC Ltd. <toby.gray@realvnc.com>
|
|
3
|
-
#
|
|
4
|
-
# This library is free software; you can redistribute it and/or
|
|
5
|
-
# modify it under the terms of the GNU Lesser General Public
|
|
6
|
-
# License as published by the Free Software Foundation; either
|
|
7
|
-
# version 2.1 of the License, or (at your option) any later version.
|
|
8
|
-
#
|
|
9
|
-
# This library is distributed in the hope that it will be useful,
|
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12
|
-
# Lesser General Public License for more details.
|
|
13
|
-
#
|
|
14
|
-
# You should have received a copy of the GNU Lesser General Public
|
|
15
|
-
# License along with this library; if not, write to the Free Software
|
|
16
|
-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
LOCAL_PATH := $(call my-dir)
|
|
20
|
-
LIBUSB_ROOT_REL := ../..
|
|
21
|
-
LIBUSB_ROOT_ABS := $(LOCAL_PATH)/../..
|
|
22
|
-
|
|
23
|
-
ifeq ($(USE_PC_NAME),1)
|
|
24
|
-
LIBUSB_MODULE := usb-1.0
|
|
25
|
-
else
|
|
26
|
-
LIBUSB_MODULE := libusb1.0
|
|
27
|
-
endif
|
|
28
|
-
|
|
29
|
-
# stress
|
|
30
|
-
|
|
31
|
-
include $(CLEAR_VARS)
|
|
32
|
-
|
|
33
|
-
LOCAL_SRC_FILES := \
|
|
34
|
-
$(LIBUSB_ROOT_REL)/tests/stress.c \
|
|
35
|
-
$(LIBUSB_ROOT_REL)/tests/testlib.c
|
|
36
|
-
|
|
37
|
-
LOCAL_C_INCLUDES += \
|
|
38
|
-
$(LOCAL_PATH)/.. \
|
|
39
|
-
$(LIBUSB_ROOT_ABS)
|
|
40
|
-
|
|
41
|
-
LOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
|
|
42
|
-
|
|
43
|
-
LOCAL_MODULE := stress
|
|
44
|
-
|
|
45
|
-
include $(BUILD_EXECUTABLE)
|
package/libusb/appveyor.yml
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
version: 1.0.{build}
|
|
2
|
-
image:
|
|
3
|
-
- Visual Studio 2013
|
|
4
|
-
- Visual Studio 2015
|
|
5
|
-
- Visual Studio 2017
|
|
6
|
-
- Visual Studio 2019
|
|
7
|
-
- Visual Studio 2022
|
|
8
|
-
platform:
|
|
9
|
-
- Win32
|
|
10
|
-
- x64
|
|
11
|
-
configuration:
|
|
12
|
-
- Debug
|
|
13
|
-
- Release
|
|
14
|
-
environment:
|
|
15
|
-
toolset: UNK
|
|
16
|
-
clone_depth: 1
|
|
17
|
-
build:
|
|
18
|
-
parallel: true
|
|
19
|
-
for:
|
|
20
|
-
-
|
|
21
|
-
matrix:
|
|
22
|
-
only:
|
|
23
|
-
- image: Visual Studio 2013
|
|
24
|
-
environment:
|
|
25
|
-
toolset: v120
|
|
26
|
-
build:
|
|
27
|
-
project: msvc\libusb.sln
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
matrix:
|
|
31
|
-
only:
|
|
32
|
-
- image: Visual Studio 2015
|
|
33
|
-
configuration: Debug
|
|
34
|
-
environment:
|
|
35
|
-
toolset: v140
|
|
36
|
-
build:
|
|
37
|
-
project: msvc\libusb.sln
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
matrix:
|
|
41
|
-
only:
|
|
42
|
-
- image: Visual Studio 2015
|
|
43
|
-
platform: Win32
|
|
44
|
-
configuration: Release
|
|
45
|
-
environment:
|
|
46
|
-
toolset: v140
|
|
47
|
-
install:
|
|
48
|
-
- cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\msys64\home\appveyor\libusb
|
|
49
|
-
- cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\cygwin\home\appveyor\libusb
|
|
50
|
-
build_script:
|
|
51
|
-
- cmd: msbuild "%APPVEYOR_BUILD_FOLDER%\msvc\libusb.sln" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
52
|
-
- cmd: C:\msys64\usr\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" MinGW
|
|
53
|
-
- cmd: C:\cygwin\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" cygwin
|
|
54
|
-
after_build:
|
|
55
|
-
- cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe C:\msys64\home\appveyor\libusb-MinGW-Win32 C:\cygwin\home\appveyor\libusb-cygwin-Win32
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
matrix:
|
|
59
|
-
only:
|
|
60
|
-
- image: Visual Studio 2015
|
|
61
|
-
platform: x64
|
|
62
|
-
configuration: Release
|
|
63
|
-
environment:
|
|
64
|
-
toolset: v140
|
|
65
|
-
install:
|
|
66
|
-
- cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\msys64\home\appveyor\libusb
|
|
67
|
-
- cmd: xcopy /S /I "%APPVEYOR_BUILD_FOLDER%" C:\cygwin64\home\appveyor\libusb
|
|
68
|
-
build_script:
|
|
69
|
-
- cmd: msbuild "%APPVEYOR_BUILD_FOLDER%\msvc\libusb.sln" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
70
|
-
- cmd: C:\msys64\usr\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" MinGW
|
|
71
|
-
- cmd: C:\cygwin64\bin\bash -l "%APPVEYOR_BUILD_FOLDER%\.private\appveyor_build.sh" cygwin
|
|
72
|
-
after_build:
|
|
73
|
-
- cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe C:\msys64\home\appveyor\libusb-MinGW-x64 C:\cygwin64\home\appveyor\libusb-cygwin-x64
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
matrix:
|
|
77
|
-
only:
|
|
78
|
-
- image: Visual Studio 2017
|
|
79
|
-
environment:
|
|
80
|
-
toolset: v141
|
|
81
|
-
build:
|
|
82
|
-
project: msvc\libusb.sln
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
matrix:
|
|
86
|
-
only:
|
|
87
|
-
- image: Visual Studio 2019
|
|
88
|
-
environment:
|
|
89
|
-
toolset: v142
|
|
90
|
-
build:
|
|
91
|
-
project: msvc\libusb.sln
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
matrix:
|
|
95
|
-
only:
|
|
96
|
-
- image: Visual Studio 2022
|
|
97
|
-
environment:
|
|
98
|
-
toolset: v143
|
|
99
|
-
build:
|
|
100
|
-
project: msvc\libusb.sln
|
|
101
|
-
|
|
102
|
-
after_build:
|
|
103
|
-
- cmd: ECHO This was built by %APPVEYOR_BUILD_WORKER_IMAGE% from %APPVEYOR_REPO_NAME% commit %APPVEYOR_REPO_COMMIT% > README-build.txt
|
|
104
|
-
- cmd: ECHO > tag_%APPVEYOR_REPO_TAG_NAME%_commit_%APPVEYOR_REPO_COMMIT%
|
|
105
|
-
- cmd: 7z a "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z" tag_* README-build.txt build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\dll build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\lib build\%TOOLSET%\%PLATFORM%\%CONFIGURATION%\*.exe
|
|
106
|
-
|
|
107
|
-
artifacts:
|
|
108
|
-
- path: "libusb-build_%APPVEYOR_BUILD_WORKER_IMAGE%_%PLATFORM%_%CONFIGURATION%.7z"
|
package/libusb/autogen.sh
DELETED