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
package/libusb/PORTING
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
PORTING LIBUSB TO OTHER PLATFORMS
|
|
2
|
-
|
|
3
|
-
Introduction
|
|
4
|
-
============
|
|
5
|
-
|
|
6
|
-
This document is aimed at developers wishing to port libusb to unsupported
|
|
7
|
-
platforms. I believe the libusb API is OS-independent, so by supporting
|
|
8
|
-
multiple operating systems we pave the way for cross-platform USB device
|
|
9
|
-
drivers.
|
|
10
|
-
|
|
11
|
-
Implementation-wise, the basic idea is that you provide an interface to
|
|
12
|
-
libusb's internal "backend" API, which performs the appropriate operations on
|
|
13
|
-
your target platform.
|
|
14
|
-
|
|
15
|
-
In terms of USB I/O, your backend provides functionality to submit
|
|
16
|
-
asynchronous transfers (synchronous transfers are implemented in the higher
|
|
17
|
-
layers, based on the async interface). Your backend must also provide
|
|
18
|
-
functionality to cancel those transfers.
|
|
19
|
-
|
|
20
|
-
Your backend must also provide an event handling function to "reap" ongoing
|
|
21
|
-
transfers and process their results.
|
|
22
|
-
|
|
23
|
-
The backend must also provide standard functions for other USB operations,
|
|
24
|
-
e.g. setting configuration, obtaining descriptors, etc.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
File descriptors for I/O polling
|
|
28
|
-
================================
|
|
29
|
-
|
|
30
|
-
For libusb to work, your event handling function obviously needs to be called
|
|
31
|
-
at various points in time. Your backend must provide a set of file descriptors
|
|
32
|
-
which libusb and its users can pass to poll() or select() to determine when
|
|
33
|
-
it is time to call the event handling function.
|
|
34
|
-
|
|
35
|
-
On Linux, this is easy: the usbfs kernel interface exposes a file descriptor
|
|
36
|
-
which can be passed to poll(). If something similar is not true for your
|
|
37
|
-
platform, you can emulate this using an internal library thread to reap I/O as
|
|
38
|
-
necessary, and a pipe() with the main library to raise events. The file
|
|
39
|
-
descriptor of the pipe can then be provided to libusb as an event source.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Interface semantics and documentation
|
|
43
|
-
=====================================
|
|
44
|
-
|
|
45
|
-
Documentation of the backend interface can be found in libusbi.h inside the
|
|
46
|
-
usbi_os_backend structure definition.
|
|
47
|
-
|
|
48
|
-
Your implementations of these functions will need to call various internal
|
|
49
|
-
libusb functions, prefixed with "usbi_". Documentation for these functions
|
|
50
|
-
can be found in the .c files where they are implemented.
|
|
51
|
-
|
|
52
|
-
You probably want to skim over *all* the documentation before starting your
|
|
53
|
-
implementation. For example, you probably need to allocate and store private
|
|
54
|
-
OS-specific data for device handles, but the documentation for the mechanism
|
|
55
|
-
for doing so is probably not the first thing you will see.
|
|
56
|
-
|
|
57
|
-
The Linux backend acts as a good example - view it as a reference
|
|
58
|
-
implementation which you should try to match the behaviour of.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Getting started
|
|
62
|
-
===============
|
|
63
|
-
|
|
64
|
-
1. Modify configure.ac to detect your platform appropriately (see the OS_LINUX
|
|
65
|
-
stuff for an example).
|
|
66
|
-
|
|
67
|
-
2. Implement your backend in the libusb/os/ directory, modifying
|
|
68
|
-
libusb/os/Makefile.am appropriately.
|
|
69
|
-
|
|
70
|
-
3. Add preprocessor logic to the top of libusb/core.c to statically assign the
|
|
71
|
-
right usbi_backend for your platform.
|
|
72
|
-
|
|
73
|
-
4. Produce and test your implementation.
|
|
74
|
-
|
|
75
|
-
5. Send your implementation to libusb-devel mailing list.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Implementation difficulties? Questions?
|
|
79
|
-
=======================================
|
|
80
|
-
|
|
81
|
-
If you encounter difficulties porting libusb to your platform, please raise
|
|
82
|
-
these issues on the libusb-devel mailing list. Where possible and sensible, I
|
|
83
|
-
am interested in solving problems preventing libusb from operating on other
|
|
84
|
-
platforms.
|
|
85
|
-
|
|
86
|
-
The libusb-devel mailing list is also a good place to ask questions and
|
|
87
|
-
make suggestions about the internal API. Hopefully we can produce some
|
|
88
|
-
better documentation based on your questions and other input.
|
|
89
|
-
|
|
90
|
-
You are encouraged to get involved in the process; if the library needs
|
|
91
|
-
some infrastructure additions/modifications to better support your platform,
|
|
92
|
-
you are encouraged to make such changes (in cleanly distinct patch
|
|
93
|
-
submissions). Even if you do not make such changes yourself, please do raise
|
|
94
|
-
the issues on the mailing list at the very minimum.
|
package/libusb/README
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# libusb
|
|
2
|
-
|
|
3
|
-
libusb is a library for USB device access from Linux, macOS,
|
|
4
|
-
Windows, OpenBSD/NetBSD, Haiku, Solaris userspace, and WebAssembly
|
|
5
|
-
via WebUSB.
|
|
6
|
-
It is written in C (Haiku backend in C++) and licensed under the GNU
|
|
7
|
-
Lesser General Public License version 2.1 or, at your option, any later
|
|
8
|
-
version (see [COPYING](COPYING)).
|
|
9
|
-
|
|
10
|
-
libusb is abstracted internally in such a way that it can hopefully
|
|
11
|
-
be ported to other operating systems. Please see the [PORTING](PORTING)
|
|
12
|
-
file for more information.
|
|
13
|
-
|
|
14
|
-
libusb homepage:
|
|
15
|
-
https://libusb.info/
|
|
16
|
-
|
|
17
|
-
Developers will wish to consult the API documentation:
|
|
18
|
-
http://api.libusb.info
|
|
19
|
-
|
|
20
|
-
Use the mailing list for questions, comments, etc:
|
|
21
|
-
http://mailing-list.libusb.info
|
|
22
|
-
|
|
23
|
-
- Hans de Goede <hdegoede@redhat.com>
|
|
24
|
-
- Xiaofan Chen <xiaofanc@gmail.com>
|
|
25
|
-
- Ludovic Rousseau <ludovic.rousseau@gmail.com>
|
|
26
|
-
- Nathan Hjelm <hjelmn@cs.unm.edu>
|
|
27
|
-
- Chris Dickens <christopher.a.dickens@gmail.com>
|
|
28
|
-
|
|
29
|
-
(Please use the mailing list rather than mailing developers directly)
|
package/libusb/README.git
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Notes related to git compilation:
|
|
2
|
-
--------------------------------
|
|
3
|
-
|
|
4
|
-
If you retrieved the libusb repository from git and are using a gcc based
|
|
5
|
-
toolchain, be mindful that you should have the autotools installed (autoconf,
|
|
6
|
-
automake) and will need to run either ./autogen.sh or ./bootstrap.sh to produce
|
|
7
|
-
the configure file.
|
|
8
|
-
|
|
9
|
-
The difference between autogen.sh and bootstrap.sh is that the former invokes
|
|
10
|
-
configure with a default set of options, and will therefore generate a Makefile,
|
|
11
|
-
whereas the latter does not invoke configure at all. If using autogen.sh, note
|
|
12
|
-
that you can also append options, that will be passed as is to configure.
|
|
13
|
-
|
|
14
|
-
macOS-specific notes:
|
|
15
|
-
-------------------
|
|
16
|
-
|
|
17
|
-
Starting with Xcode 4.3, neither Xcode.app nor the Xcode 'command line tools'
|
|
18
|
-
includes autotools and so running either autogen.sh or bootstrap.sh will result
|
|
19
|
-
in the message:
|
|
20
|
-
|
|
21
|
-
libtoolize or glibtoolize was not found! Please install libtool.
|
|
22
|
-
|
|
23
|
-
To proceed, you must find and install it from somewhere.
|
|
24
|
-
|
|
25
|
-
Alternatively, you can use the Xcode project at Xcode/libusb.xcodeproj.
|
|
26
|
-
|
|
27
|
-
Notes related to submitting new developments:
|
|
28
|
-
--------------------------------------------
|
|
29
|
-
|
|
30
|
-
If you submit a new development to libusb (eg: new backend), that is unlikely
|
|
31
|
-
to fit in a couple of small patches, we would kindly suggest that you create a
|
|
32
|
-
public account on github, if you don't have one already, and then fork a new
|
|
33
|
-
libusb repository under this account from https://github.com/libusb/libusb.
|
|
34
|
-
|
|
35
|
-
Then you can create a git branch for your work, that we will be able to better
|
|
36
|
-
reference and test.
|
|
37
|
-
|
|
38
|
-
We also suggest that, if you are planning to bring in a large development, you
|
|
39
|
-
try to involve the libusb community early by letting the mailing list know, as
|
|
40
|
-
you may find that other people might be eager to help you out.
|
|
41
|
-
See http://mailing-list.libusb.info for details on how to join the mailing list.
|
package/libusb/TODO
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// libusb Xcode configuration file
|
|
3
|
-
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <https://libusb.info>
|
|
5
|
-
//
|
|
6
|
-
// This library is free software; you can redistribute it and/or
|
|
7
|
-
// modify it under the terms of the GNU Lesser General Public
|
|
8
|
-
// License as published by the Free Software Foundation; either
|
|
9
|
-
// version 2.1 of the License, or (at your option) any later version.
|
|
10
|
-
//
|
|
11
|
-
// This library is distributed in the hope that it will be useful,
|
|
12
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
|
-
// Lesser General Public License for more details.
|
|
15
|
-
//
|
|
16
|
-
// You should have received a copy of the GNU Lesser General Public
|
|
17
|
-
// License along with this library; if not, write to the Free Software
|
|
18
|
-
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
|
-
|
|
20
|
-
// Use GNU11 dialect.
|
|
21
|
-
GCC_C_LANGUAGE_STANDARD = gnu11
|
|
22
|
-
|
|
23
|
-
// Don't search user paths with <> style #includes.
|
|
24
|
-
ALWAYS_SEARCH_USER_PATHS = NO
|
|
25
|
-
|
|
26
|
-
// Enable weak references for Objective-C
|
|
27
|
-
CLANG_ENABLE_OBJC_WEAK = YES
|
|
28
|
-
|
|
29
|
-
// Allocate even uninitialized global variables in the data section of the object file, rather than generating them as common blocks. This has the effect that if the same variable is declared (without 'extern') in two different compilations, you will get an error when you link them.
|
|
30
|
-
GCC_NO_COMMON_BLOCKS = YES
|
|
31
|
-
|
|
32
|
-
// Keep private symbols private. The first setting is -fvisibility=hidden, the second is -fvisibility-inlines-hidden.
|
|
33
|
-
GCC_SYMBOLS_PRIVATE_EXTERN = YES
|
|
34
|
-
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
|
|
35
|
-
|
|
36
|
-
// Compiler errors.
|
|
37
|
-
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
|
|
38
|
-
|
|
39
|
-
// Compiler warnings.
|
|
40
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
|
|
41
|
-
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
|
|
42
|
-
GCC_WARN_ABOUT_MISSING_NEWLINE = YES
|
|
43
|
-
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
|
|
44
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES
|
|
45
|
-
GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES
|
|
46
|
-
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
|
|
47
|
-
GCC_WARN_SHADOW = YES
|
|
48
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES
|
|
49
|
-
GCC_WARN_UNKNOWN_PRAGMAS = YES
|
|
50
|
-
GCC_WARN_UNUSED_FUNCTION = YES
|
|
51
|
-
GCC_WARN_UNUSED_LABEL = YES
|
|
52
|
-
GCC_WARN_UNUSED_PARAMETER = YES
|
|
53
|
-
GCC_WARN_UNUSED_VARIABLE = YES
|
|
54
|
-
CLANG_WARN_ASSIGN_ENUM = YES
|
|
55
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES
|
|
56
|
-
CLANG_WARN_BOOL_CONVERSION = YES
|
|
57
|
-
CLANG_WARN_COMMA = YES
|
|
58
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES
|
|
59
|
-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES
|
|
60
|
-
CLANG_WARN_EMPTY_BODY = YES
|
|
61
|
-
CLANG_WARN_ENUM_CONVERSION = YES
|
|
62
|
-
CLANG_WARN_FLOAT_CONVERSION = YES
|
|
63
|
-
CLANG_WARN_INFINITE_RECURSION = YES
|
|
64
|
-
CLANG_WARN_INT_CONVERSION = YES
|
|
65
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES
|
|
66
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES
|
|
67
|
-
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
|
|
68
|
-
CLANG_WARN_COMPLETION_HANDLER_MISUSE = YES
|
|
69
|
-
CLANG_WARN_IMPLICIT_FALLTHROUGH = YES
|
|
70
|
-
CLANG_WARN_FRAMEWORK_INCLUDE_PRIVATE_FROM_PUBLIC = YES
|
|
71
|
-
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
|
|
72
|
-
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES
|
|
73
|
-
GCC_WARN_SIGN_COMPARE = YES
|
|
74
|
-
CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES
|
|
75
|
-
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
|
|
76
|
-
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
|
|
77
|
-
CLANG_WARN_ATOMIC_IMPLICIT_SEQ_CST = YES
|
|
78
|
-
CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES
|
|
79
|
-
CLANG_WARN_OBJC_INTERFACE_IVARS = YES
|
|
80
|
-
GCC_WARN_STRICT_SELECTOR_MATCH = YES
|
|
81
|
-
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
|
|
82
|
-
CLANG_WARN_UNREACHABLE_CODE = YES
|
|
83
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
|
|
84
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES
|
|
85
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
|
|
86
|
-
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
|
|
87
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES
|
|
88
|
-
|
|
89
|
-
// Static analyzer warnings.
|
|
90
|
-
CLANG_ANALYZER_NONNULL = YES
|
|
91
|
-
CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES
|
|
92
|
-
CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES
|
package/libusb/Xcode/config.h
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* config.h. Manually generated for Xcode. */
|
|
2
|
-
|
|
3
|
-
#include <AvailabilityMacros.h>
|
|
4
|
-
|
|
5
|
-
/* Define to the attribute for default visibility. */
|
|
6
|
-
#define DEFAULT_VISIBILITY __attribute__ ((visibility ("default")))
|
|
7
|
-
|
|
8
|
-
/* Define to 1 to enable message logging. */
|
|
9
|
-
#define ENABLE_LOGGING 1
|
|
10
|
-
|
|
11
|
-
/* On 10.6 and later, use newly available pthread_threadid_np() function */
|
|
12
|
-
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
|
13
|
-
/* Define to 1 if you have the 'pthread_threadid_np' function. */
|
|
14
|
-
#define HAVE_PTHREAD_THREADID_NP 1
|
|
15
|
-
#endif
|
|
16
|
-
|
|
17
|
-
/* Define to 1 if the system has the type `nfds_t'. */
|
|
18
|
-
#define HAVE_NFDS_T 1
|
|
19
|
-
|
|
20
|
-
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
21
|
-
#define HAVE_SYS_TIME_H 1
|
|
22
|
-
|
|
23
|
-
/* Define to 1 if compiling for a POSIX platform. */
|
|
24
|
-
#define PLATFORM_POSIX 1
|
|
25
|
-
|
|
26
|
-
/* Define to the attribute for enabling parameter checks on printf-like
|
|
27
|
-
functions. */
|
|
28
|
-
#define PRINTF_FORMAT(a, b) __attribute__ ((__format__ (__printf__, a, b)))
|
|
29
|
-
|
|
30
|
-
/* Enable GNU extensions. */
|
|
31
|
-
#define _GNU_SOURCE 1
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// libusb Xcode configuration file
|
|
3
|
-
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <https://libusb.info>
|
|
5
|
-
//
|
|
6
|
-
// This library is free software; you can redistribute it and/or
|
|
7
|
-
// modify it under the terms of the GNU Lesser General Public
|
|
8
|
-
// License as published by the Free Software Foundation; either
|
|
9
|
-
// version 2.1 of the License, or (at your option) any later version.
|
|
10
|
-
//
|
|
11
|
-
// This library is distributed in the hope that it will be useful,
|
|
12
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
|
-
// Lesser General Public License for more details.
|
|
15
|
-
//
|
|
16
|
-
// You should have received a copy of the GNU Lesser General Public
|
|
17
|
-
// License along with this library; if not, write to the Free Software
|
|
18
|
-
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
|
-
|
|
20
|
-
#include "common.xcconfig"
|
|
21
|
-
|
|
22
|
-
// Embed debug symbols in binary itself.
|
|
23
|
-
DEBUG_INFORMATION_FORMAT = dwarf
|
|
24
|
-
|
|
25
|
-
// No optimizations in debug.
|
|
26
|
-
GCC_OPTIMIZATION_LEVEL = 0
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
|
|
30
|
-
|
|
31
|
-
// No need for Universal Binaries in debug.
|
|
32
|
-
ONLY_ACTIVE_ARCH = YES
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// libusb Xcode configuration file
|
|
3
|
-
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <https://libusb.info>
|
|
5
|
-
//
|
|
6
|
-
// This library is free software; you can redistribute it and/or
|
|
7
|
-
// modify it under the terms of the GNU Lesser General Public
|
|
8
|
-
// License as published by the Free Software Foundation; either
|
|
9
|
-
// version 2.1 of the License, or (at your option) any later version.
|
|
10
|
-
//
|
|
11
|
-
// This library is distributed in the hope that it will be useful,
|
|
12
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
|
-
// Lesser General Public License for more details.
|
|
15
|
-
//
|
|
16
|
-
// You should have received a copy of the GNU Lesser General Public
|
|
17
|
-
// License along with this library; if not, write to the Free Software
|
|
18
|
-
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
|
-
|
|
20
|
-
PRODUCT_NAME = libusb-1.0.0
|
|
21
|
-
LD_DYLIB_INSTALL_NAME = @rpath/libusb-1.0.0.dylib
|