usb 1.7.2 → 1.8.0-libusb.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.
Files changed (188) hide show
  1. package/.gitmodules +1 -1
  2. package/Readme.md +2 -2
  3. package/binding.gyp +2 -2
  4. package/libusb/.private/pre-commit.sh +7 -1
  5. package/libusb/.travis.yml +49 -0
  6. package/libusb/AUTHORS +44 -3
  7. package/libusb/Brewfile +4 -0
  8. package/libusb/ChangeLog +74 -2
  9. package/libusb/README.md +32 -0
  10. package/libusb/TODO +1 -1
  11. package/libusb/Xcode/common.xcconfig +12 -0
  12. package/libusb/Xcode/config.h +25 -0
  13. package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +959 -1
  14. package/libusb/android/README +4 -2
  15. package/libusb/android/config.h +75 -0
  16. package/libusb/appveyor.yml +41 -0
  17. package/libusb/appveyor_cygwin.bat +11 -0
  18. package/libusb/appveyor_minGW.bat +19 -0
  19. package/libusb/autogen.sh +1 -1
  20. package/libusb/bootstrap.sh +3 -16
  21. package/libusb/configure.ac +108 -80
  22. package/libusb/doc/doxygen.cfg.in +1785 -739
  23. package/libusb/examples/Makefile.am +1 -1
  24. package/libusb/examples/dpfp.c +3 -1
  25. package/libusb/examples/dpfp_threaded.c +23 -10
  26. package/libusb/examples/ezusb.c +3 -3
  27. package/libusb/examples/ezusb.h +2 -2
  28. package/libusb/examples/fxload.c +31 -9
  29. package/libusb/examples/hotplugtest.c +35 -7
  30. package/libusb/examples/listdevs.c +3 -1
  31. package/libusb/examples/sam3u_benchmark.c +3 -3
  32. package/libusb/examples/testlibusb.c +277 -0
  33. package/libusb/examples/xusb.c +40 -34
  34. package/libusb/libusb/Makefile.am +49 -23
  35. package/libusb/libusb/core.c +855 -457
  36. package/libusb/libusb/descriptor.c +72 -78
  37. package/libusb/libusb/hotplug.c +122 -76
  38. package/libusb/libusb/hotplug.h +42 -25
  39. package/libusb/libusb/io.c +625 -390
  40. package/libusb/libusb/libusb-1.0.def +12 -0
  41. package/libusb/libusb/libusb.h +218 -150
  42. package/libusb/libusb/libusbi.h +346 -176
  43. package/libusb/libusb/os/darwin_usb.c +604 -319
  44. package/libusb/libusb/os/darwin_usb.h +61 -20
  45. package/libusb/libusb/os/haiku_pollfs.cpp +367 -0
  46. package/libusb/libusb/os/haiku_usb.h +113 -0
  47. package/libusb/libusb/os/haiku_usb_backend.cpp +533 -0
  48. package/libusb/libusb/os/haiku_usb_raw.cpp +267 -0
  49. package/libusb/libusb/os/haiku_usb_raw.h +188 -0
  50. package/libusb/libusb/os/linux_netlink.c +186 -146
  51. package/libusb/libusb/os/linux_udev.c +36 -14
  52. package/libusb/libusb/os/linux_usbfs.c +426 -225
  53. package/libusb/libusb/os/linux_usbfs.h +5 -3
  54. package/libusb/libusb/os/netbsd_usb.c +21 -77
  55. package/libusb/libusb/os/openbsd_usb.c +32 -115
  56. package/libusb/libusb/os/poll_posix.c +38 -5
  57. package/libusb/libusb/os/poll_posix.h +3 -0
  58. package/libusb/libusb/os/poll_windows.c +277 -626
  59. package/libusb/libusb/os/poll_windows.h +11 -44
  60. package/libusb/libusb/os/sunos_usb.c +1695 -0
  61. package/libusb/libusb/os/sunos_usb.h +80 -0
  62. package/libusb/libusb/os/threads_posix.c +24 -26
  63. package/libusb/libusb/os/threads_posix.h +73 -21
  64. package/libusb/libusb/os/threads_windows.c +71 -157
  65. package/libusb/libusb/os/threads_windows.h +68 -44
  66. package/libusb/libusb/os/wince_usb.c +276 -420
  67. package/libusb/libusb/os/wince_usb.h +23 -28
  68. package/libusb/libusb/os/windows_common.h +78 -58
  69. package/libusb/libusb/os/windows_nt_common.c +1010 -0
  70. package/libusb/libusb/os/windows_nt_common.h +110 -0
  71. package/libusb/libusb/os/windows_nt_shared_types.h +147 -0
  72. package/libusb/libusb/os/windows_usbdk.c +830 -0
  73. package/libusb/libusb/os/windows_usbdk.h +103 -0
  74. package/libusb/libusb/os/windows_winusb.c +4391 -0
  75. package/libusb/libusb/os/windows_winusb.h +783 -0
  76. package/libusb/libusb/strerror.c +41 -7
  77. package/libusb/libusb/sync.c +41 -13
  78. package/libusb/libusb/version.h +1 -1
  79. package/libusb/libusb/version_nano.h +1 -1
  80. package/libusb/libusb-1.0.pc.in +1 -1
  81. package/libusb/msvc/appveyor.bat +27 -0
  82. package/libusb/msvc/config.h +5 -4
  83. package/libusb/msvc/ddk_build.cmd +87 -43
  84. package/libusb/msvc/fxload_2010.vcxproj +24 -104
  85. package/libusb/msvc/fxload_2012.vcxproj +24 -107
  86. package/libusb/msvc/fxload_2013.vcxproj +24 -107
  87. package/libusb/msvc/fxload_2015.vcxproj +91 -0
  88. package/libusb/msvc/fxload_2017.vcxproj +114 -0
  89. package/libusb/msvc/fxload_sources +1 -1
  90. package/libusb/msvc/getopt_2010.vcxproj +16 -75
  91. package/libusb/msvc/getopt_2012.vcxproj +16 -79
  92. package/libusb/msvc/getopt_2013.vcxproj +16 -79
  93. package/libusb/msvc/getopt_2015.vcxproj +73 -0
  94. package/libusb/msvc/getopt_2017.vcxproj +98 -0
  95. package/libusb/msvc/getopt_sources +6 -2
  96. package/libusb/msvc/hotplugtest_2010.vcxproj +18 -99
  97. package/libusb/msvc/hotplugtest_2012.vcxproj +18 -102
  98. package/libusb/msvc/hotplugtest_2013.vcxproj +18 -102
  99. package/libusb/msvc/hotplugtest_2015.vcxproj +83 -0
  100. package/libusb/msvc/hotplugtest_2017.vcxproj +106 -0
  101. package/libusb/msvc/hotplugtest_sources +1 -1
  102. package/libusb/msvc/libusb_2005.sln +20 -20
  103. package/libusb/msvc/libusb_2010.sln +57 -46
  104. package/libusb/msvc/libusb_2012.sln +57 -46
  105. package/libusb/msvc/libusb_2013.sln +57 -50
  106. package/libusb/msvc/libusb_2015.sln +59 -52
  107. package/libusb/msvc/libusb_2017.sln +186 -0
  108. package/libusb/msvc/libusb_dll.dsp +2 -2
  109. package/libusb/msvc/libusb_dll_2005.vcproj +30 -2
  110. package/libusb/msvc/libusb_dll_2010.vcxproj +26 -90
  111. package/libusb/msvc/libusb_dll_2012.vcxproj +28 -96
  112. package/libusb/msvc/libusb_dll_2013.vcxproj +28 -96
  113. package/libusb/msvc/libusb_dll_2015.vcxproj +107 -0
  114. package/libusb/msvc/libusb_dll_2017.vcxproj +134 -0
  115. package/libusb/msvc/libusb_dll_wince.vcproj +9 -1
  116. package/libusb/msvc/libusb_sources +10 -5
  117. package/libusb/msvc/libusb_static.dsp +2 -2
  118. package/libusb/msvc/libusb_static_2005.vcproj +32 -4
  119. package/libusb/msvc/libusb_static_2010.vcxproj +24 -83
  120. package/libusb/msvc/libusb_static_2012.vcxproj +25 -87
  121. package/libusb/msvc/libusb_static_2013.vcxproj +25 -87
  122. package/libusb/msvc/libusb_static_2015.vcxproj +98 -0
  123. package/libusb/msvc/libusb_static_2017.vcxproj +117 -0
  124. package/libusb/msvc/libusb_static_wince.vcproj +20 -26
  125. package/libusb/msvc/libusb_wince.sln +88 -88
  126. package/libusb/msvc/listdevs_2010.vcxproj +16 -99
  127. package/libusb/msvc/listdevs_2012.vcxproj +16 -102
  128. package/libusb/msvc/listdevs_2013.vcxproj +16 -102
  129. package/libusb/msvc/listdevs_2015.vcxproj +83 -0
  130. package/libusb/msvc/listdevs_2017.vcxproj +106 -0
  131. package/libusb/msvc/listdevs_sources +2 -1
  132. package/libusb/msvc/stress_2010.vcxproj +20 -101
  133. package/libusb/msvc/stress_2012.vcxproj +20 -104
  134. package/libusb/msvc/stress_2013.vcxproj +20 -104
  135. package/libusb/msvc/stress_2015.vcxproj +87 -0
  136. package/libusb/msvc/stress_2017.vcxproj +110 -0
  137. package/libusb/msvc/stress_sources +21 -0
  138. package/libusb/msvc/testlibusb_2010.vcxproj +82 -0
  139. package/libusb/msvc/testlibusb_2012.vcxproj +83 -0
  140. package/libusb/msvc/testlibusb_2013.vcxproj +83 -0
  141. package/libusb/msvc/testlibusb_2015.vcxproj +83 -0
  142. package/libusb/msvc/testlibusb_2017.vcxproj +106 -0
  143. package/libusb/msvc/testlibusb_sources +20 -0
  144. package/libusb/msvc/xusb_2010.vcxproj +17 -98
  145. package/libusb/msvc/xusb_2012.vcxproj +17 -101
  146. package/libusb/msvc/xusb_2013.vcxproj +17 -101
  147. package/libusb/msvc/xusb_2015.vcxproj +83 -0
  148. package/libusb/msvc/xusb_2017.vcxproj +106 -0
  149. package/libusb/msvc/xusb_sources +1 -1
  150. package/libusb/tests/stress.c +2 -2
  151. package/libusb/tests/testlib.c +0 -4
  152. package/libusb/travis-autogen.sh +39 -0
  153. package/libusb.gypi +13 -2
  154. package/package.json +20 -11
  155. package/prebuilds/android-arm/node.napi.armv7.node +0 -0
  156. package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
  157. package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
  158. package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
  159. package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
  160. package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
  161. package/prebuilds/linux-ia32/node.napi.node +0 -0
  162. package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
  163. package/prebuilds/linux-x64/node.napi.musl.node +0 -0
  164. package/prebuilds/win32-ia32/node.napi.node +0 -0
  165. package/prebuilds/win32-x64/node.napi.node +0 -0
  166. package/src/device.cc +1 -1
  167. package/usb.js +1 -1
  168. package/.github/workflows/prebuild.yml +0 -49
  169. package/libusb/INSTALL +0 -234
  170. package/libusb/README +0 -28
  171. package/libusb/libusb/os/windows_usb.c +0 -5347
  172. package/libusb/libusb/os/windows_usb.h +0 -971
  173. package/libusb/msvc/fxload_2010.vcxproj.filters +0 -25
  174. package/libusb/msvc/fxload_2012.vcxproj.filters +0 -25
  175. package/libusb/msvc/getopt_2010.vcxproj.filters +0 -26
  176. package/libusb/msvc/getopt_2012.vcxproj.filters +0 -26
  177. package/libusb/msvc/hotplugtest_2010.vcxproj.filters +0 -14
  178. package/libusb/msvc/hotplugtest_2012.vcxproj.filters +0 -14
  179. package/libusb/msvc/libusb_dll_2010.vcxproj.filters +0 -81
  180. package/libusb/msvc/libusb_dll_2012.vcxproj.filters +0 -84
  181. package/libusb/msvc/libusb_static_2010.vcxproj.filters +0 -74
  182. package/libusb/msvc/libusb_static_2012.vcxproj.filters +0 -74
  183. package/libusb/msvc/listdevs_2010.vcxproj.filters +0 -14
  184. package/libusb/msvc/listdevs_2012.vcxproj.filters +0 -14
  185. package/libusb/msvc/stress_2010.vcxproj.filters +0 -25
  186. package/libusb/msvc/stress_2012.vcxproj.filters +0 -25
  187. package/libusb/msvc/xusb_2010.vcxproj.filters +0 -14
  188. package/libusb/msvc/xusb_2012.vcxproj.filters +0 -14
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "usb",
3
3
  "description": "Library to access USB devices",
4
- "version": "1.7.2",
4
+ "version": "1.8.0-libusb.2",
5
5
  "engines": {
6
- "node": ">=10"
6
+ "node": ">=10.16.0"
7
7
  },
8
8
  "keywords": [
9
9
  "usb",
@@ -32,25 +32,34 @@
32
32
  "main": "./usb",
33
33
  "repository": {
34
34
  "type": "git",
35
- "url": "https://github.com/tessel/node-usb.git"
35
+ "url": "https://github.com/node-usb/node-usb.git"
36
36
  },
37
37
  "scripts": {
38
- "install": "prebuild-install --runtime napi --target 4 --verbose || node-gyp rebuild",
39
- "prebuild": "prebuild --runtime napi --target 4 --force --strip --verbose",
38
+ "install": "node-gyp-build",
40
39
  "test": "mocha --require coffeescript/register --grep Module test/*",
41
40
  "full-test": "mocha --require coffeescript/register test/*",
42
- "valgrind": "coffee -c test/usb.coffee; valgrind --leak-check=full --show-possibly-lost=no node --expose-gc --trace-gc node_modules/mocha/bin/_mocha -R spec"
41
+ "valgrind": "coffee -c test/usb.coffee; valgrind --leak-check=full --show-possibly-lost=no node --expose-gc --trace-gc node_modules/mocha/bin/_mocha -R spec",
42
+ "prebuild": "prebuildify --napi --strip",
43
+ "prebuild-darwin": "prebuildify --napi --strip --arch x64+arm64",
44
+ "prebuild-win32-x86": "prebuildify --napi --strip",
45
+ "prebuild-win32-x64": "prebuildify --napi --strip",
46
+ "prebuild-linux-x86": "prebuildify-cross -i ghcr.io/node-usb/linux-x86 --napi --strip",
47
+ "prebuild-linux-x64": "prebuildify-cross -i ghcr.io/node-usb/centos7-devtoolset7 -i ghcr.io/node-usb/alpine --napi --strip --tag-libc",
48
+ "prebuild-linux-arm": "prebuildify-cross -i ghcr.io/node-usb/linux-arm64 -i ghcr.io/node-usb/linux-armv7 -i ghcr.io/node-usb/linux-armv6 --napi --strip --tag-armv",
49
+ "prebuild-android-arm": "prebuildify-cross -i ghcr.io/node-usb/android-arm64 -i ghcr.io/node-usb/android-armv7 --napi --strip --tag-armv",
50
+ "prebuild-download": "prebuildify-ci download"
43
51
  },
44
52
  "dependencies": {
45
- "bindings": "^1.4.0",
46
- "node-addon-api": "3.0.2",
47
- "prebuild-install": "^5.3.3"
53
+ "node-addon-api": "^4.2.0",
54
+ "node-gyp-build": "^4.3.0"
48
55
  },
49
56
  "devDependencies": {
50
57
  "coffeescript": "~2.4.1",
51
58
  "mocha": "^8.3.2",
52
- "node-abi": "^2.19.3",
53
- "prebuild": "^10.0.1"
59
+ "node-gyp": "^7.1.2",
60
+ "prebuildify": "^4.2.1",
61
+ "prebuildify-ci": "^1.0.5",
62
+ "prebuildify-cross": "^4.0.1"
54
63
  },
55
64
  "license": "MIT",
56
65
  "binary": {
package/src/device.cc CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  Napi::FunctionReference Device::constructor;
13
13
 
14
- Device::Device(const Napi::CallbackInfo & info) : Napi::ObjectWrap<Device>(info), device_handle(0), refs_(1)
14
+ Device::Device(const Napi::CallbackInfo & info) : Napi::ObjectWrap<Device>(info), device_handle(0), refs_(0)
15
15
  #ifndef USE_POLL
16
16
  , completionQueue(handleCompletion)
17
17
  #endif
package/usb.js CHANGED
@@ -1,4 +1,4 @@
1
- var usb = exports = module.exports = require('bindings')('usb_bindings');
1
+ var usb = exports = module.exports = require('node-gyp-build')(__dirname);
2
2
  var events = require('events')
3
3
  var util = require('util')
4
4
 
@@ -1,49 +0,0 @@
1
- name: prebuild
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- tags:
8
- - '*'
9
- pull_request:
10
- branches:
11
- - master
12
- workflow_dispatch:
13
-
14
- jobs:
15
- prebuild:
16
- strategy:
17
- matrix:
18
- config:
19
- - { os: macos-latest, arch: x64 }
20
- - { os: ubuntu-18.04, arch: x64 }
21
- - { os: windows-latest, arch: x64 }
22
- - { os: windows-latest, arch: ia32 }
23
- runs-on: ${{ matrix.config.os }}
24
- steps:
25
- - if: matrix.config.os == 'ubuntu-18.04'
26
- run: |
27
- sudo apt-get update
28
- sudo apt-get install libudev-dev
29
- - uses: actions/setup-node@v2
30
- with:
31
- node-version: 14.x
32
- - uses: actions/checkout@v2
33
- with:
34
- submodules: recursive
35
- - run: npm install
36
- # Supported Node versions: https://nodejs.org/en/about/releases/
37
- - run: npm run prebuild -- -a ${{ matrix.config.arch }}
38
- - if: startsWith(github.ref, 'refs/tags/')
39
- shell: bash
40
- env:
41
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
- run: |
43
- assets=()
44
- for asset in ./prebuilds/*; do
45
- assets+=("-a" "$asset")
46
- done
47
- tag_name="${GITHUB_REF##*/}"
48
- hub release create -m "$tag_name" "$tag_name" || true
49
- hub release edit "${assets[@]}" -m "" "$tag_name"
package/libusb/INSTALL DELETED
@@ -1,234 +0,0 @@
1
- Installation Instructions
2
- *************************
3
-
4
- Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5
- 2006 Free Software Foundation, Inc.
6
-
7
- This file is free documentation; the Free Software Foundation gives
8
- unlimited permission to copy, distribute and modify it.
9
-
10
- Basic Installation
11
- ==================
12
-
13
- Briefly, the shell commands `./configure; make; make install' should
14
- configure, build, and install this package. The following
15
- more-detailed instructions are generic; see the `README' file for
16
- instructions specific to this package.
17
-
18
- The `configure' shell script attempts to guess correct values for
19
- various system-dependent variables used during compilation. It uses
20
- those values to create a `Makefile' in each directory of the package.
21
- It may also create one or more `.h' files containing system-dependent
22
- definitions. Finally, it creates a shell script `config.status' that
23
- you can run in the future to recreate the current configuration, and a
24
- file `config.log' containing compiler output (useful mainly for
25
- debugging `configure').
26
-
27
- It can also use an optional file (typically called `config.cache'
28
- and enabled with `--cache-file=config.cache' or simply `-C') that saves
29
- the results of its tests to speed up reconfiguring. Caching is
30
- disabled by default to prevent problems with accidental use of stale
31
- cache files.
32
-
33
- If you need to do unusual things to compile the package, please try
34
- to figure out how `configure' could check whether to do them, and mail
35
- diffs or instructions to the address given in the `README' so they can
36
- be considered for the next release. If you are using the cache, and at
37
- some point `config.cache' contains results you don't want to keep, you
38
- may remove or edit it.
39
-
40
- The file `configure.ac' (or `configure.in') is used to create
41
- `configure' by a program called `autoconf'. You need `configure.ac' if
42
- you want to change it or regenerate `configure' using a newer version
43
- of `autoconf'.
44
-
45
- The simplest way to compile this package is:
46
-
47
- 1. `cd' to the directory containing the package's source code and type
48
- `./configure' to configure the package for your system.
49
-
50
- Running `configure' might take a while. While running, it prints
51
- some messages telling which features it is checking for.
52
-
53
- 2. Type `make' to compile the package.
54
-
55
- 3. Optionally, type `make check' to run any self-tests that come with
56
- the package.
57
-
58
- 4. Type `make install' to install the programs and any data files and
59
- documentation.
60
-
61
- 5. You can remove the program binaries and object files from the
62
- source code directory by typing `make clean'. To also remove the
63
- files that `configure' created (so you can compile the package for
64
- a different kind of computer), type `make distclean'. There is
65
- also a `make maintainer-clean' target, but that is intended mainly
66
- for the package's developers. If you use it, you may have to get
67
- all sorts of other programs in order to regenerate files that came
68
- with the distribution.
69
-
70
- Compilers and Options
71
- =====================
72
-
73
- Some systems require unusual options for compilation or linking that the
74
- `configure' script does not know about. Run `./configure --help' for
75
- details on some of the pertinent environment variables.
76
-
77
- You can give `configure' initial values for configuration parameters
78
- by setting variables in the command line or in the environment. Here
79
- is an example:
80
-
81
- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
82
-
83
- *Note Defining Variables::, for more details.
84
-
85
- Compiling For Multiple Architectures
86
- ====================================
87
-
88
- You can compile the package for more than one kind of computer at the
89
- same time, by placing the object files for each architecture in their
90
- own directory. To do this, you can use GNU `make'. `cd' to the
91
- directory where you want the object files and executables to go and run
92
- the `configure' script. `configure' automatically checks for the
93
- source code in the directory that `configure' is in and in `..'.
94
-
95
- With a non-GNU `make', it is safer to compile the package for one
96
- architecture at a time in the source code directory. After you have
97
- installed the package for one architecture, use `make distclean' before
98
- reconfiguring for another architecture.
99
-
100
- Installation Names
101
- ==================
102
-
103
- By default, `make install' installs the package's commands under
104
- `/usr/local/bin', include files under `/usr/local/include', etc. You
105
- can specify an installation prefix other than `/usr/local' by giving
106
- `configure' the option `--prefix=PREFIX'.
107
-
108
- You can specify separate installation prefixes for
109
- architecture-specific files and architecture-independent files. If you
110
- pass the option `--exec-prefix=PREFIX' to `configure', the package uses
111
- PREFIX as the prefix for installing programs and libraries.
112
- Documentation and other data files still use the regular prefix.
113
-
114
- In addition, if you use an unusual directory layout you can give
115
- options like `--bindir=DIR' to specify different values for particular
116
- kinds of files. Run `configure --help' for a list of the directories
117
- you can set and what kinds of files go in them.
118
-
119
- If the package supports it, you can cause programs to be installed
120
- with an extra prefix or suffix on their names by giving `configure' the
121
- option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
122
-
123
- Optional Features
124
- =================
125
-
126
- Some packages pay attention to `--enable-FEATURE' options to
127
- `configure', where FEATURE indicates an optional part of the package.
128
- They may also pay attention to `--with-PACKAGE' options, where PACKAGE
129
- is something like `gnu-as' or `x' (for the X Window System). The
130
- `README' should mention any `--enable-' and `--with-' options that the
131
- package recognizes.
132
-
133
- For packages that use the X Window System, `configure' can usually
134
- find the X include and library files automatically, but if it doesn't,
135
- you can use the `configure' options `--x-includes=DIR' and
136
- `--x-libraries=DIR' to specify their locations.
137
-
138
- Specifying the System Type
139
- ==========================
140
-
141
- There may be some features `configure' cannot figure out automatically,
142
- but needs to determine by the type of machine the package will run on.
143
- Usually, assuming the package is built to be run on the _same_
144
- architectures, `configure' can figure that out, but if it prints a
145
- message saying it cannot guess the machine type, give it the
146
- `--build=TYPE' option. TYPE can either be a short name for the system
147
- type, such as `sun4', or a canonical name which has the form:
148
-
149
- CPU-COMPANY-SYSTEM
150
-
151
- where SYSTEM can have one of these forms:
152
-
153
- OS KERNEL-OS
154
-
155
- See the file `config.sub' for the possible values of each field. If
156
- `config.sub' isn't included in this package, then this package doesn't
157
- need to know the machine type.
158
-
159
- If you are _building_ compiler tools for cross-compiling, you should
160
- use the option `--target=TYPE' to select the type of system they will
161
- produce code for.
162
-
163
- If you want to _use_ a cross compiler, that generates code for a
164
- platform different from the build platform, you should specify the
165
- "host" platform (i.e., that on which the generated programs will
166
- eventually be run) with `--host=TYPE'.
167
-
168
- Sharing Defaults
169
- ================
170
-
171
- If you want to set default values for `configure' scripts to share, you
172
- can create a site shell script called `config.site' that gives default
173
- values for variables like `CC', `cache_file', and `prefix'.
174
- `configure' looks for `PREFIX/share/config.site' if it exists, then
175
- `PREFIX/etc/config.site' if it exists. Or, you can set the
176
- `CONFIG_SITE' environment variable to the location of the site script.
177
- A warning: not all `configure' scripts look for a site script.
178
-
179
- Defining Variables
180
- ==================
181
-
182
- Variables not defined in a site shell script can be set in the
183
- environment passed to `configure'. However, some packages may run
184
- configure again during the build, and the customized values of these
185
- variables may be lost. In order to avoid this problem, you should set
186
- them in the `configure' command line, using `VAR=value'. For example:
187
-
188
- ./configure CC=/usr/local2/bin/gcc
189
-
190
- causes the specified `gcc' to be used as the C compiler (unless it is
191
- overridden in the site shell script).
192
-
193
- Unfortunately, this technique does not work for `CONFIG_SHELL' due to
194
- an Autoconf bug. Until the bug is fixed you can use this workaround:
195
-
196
- CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
197
-
198
- `configure' Invocation
199
- ======================
200
-
201
- `configure' recognizes the following options to control how it operates.
202
-
203
- `--help'
204
- `-h'
205
- Print a summary of the options to `configure', and exit.
206
-
207
- `--version'
208
- `-V'
209
- Print the version of Autoconf used to generate the `configure'
210
- script, and exit.
211
-
212
- `--cache-file=FILE'
213
- Enable the cache: use and save the results of the tests in FILE,
214
- traditionally `config.cache'. FILE defaults to `/dev/null' to
215
- disable caching.
216
-
217
- `--config-cache'
218
- `-C'
219
- Alias for `--cache-file=config.cache'.
220
-
221
- `--quiet'
222
- `--silent'
223
- `-q'
224
- Do not print messages saying which checks are being made. To
225
- suppress all normal output, redirect it to `/dev/null' (any error
226
- messages will still be shown).
227
-
228
- `--srcdir=DIR'
229
- Look for the package's source code in directory DIR. Usually
230
- `configure' can determine that directory automatically.
231
-
232
- `configure' also accepts some other, not widely useful, options. Run
233
- `configure --help' for more details.
234
-
package/libusb/README DELETED
@@ -1,28 +0,0 @@
1
- libusb
2
- ======
3
-
4
- libusb is a library for USB device access from Linux, Mac OS X,
5
- Windows and OpenBSD/NetBSD userspace.
6
- It is written in C and licensed under the GNU Lesser General Public
7
- License version 2.1 or, at your option, any later version (see COPYING).
8
-
9
- libusb is abstracted internally in such a way that it can hopefully
10
- be ported to other operating systems. Please see the PORTING file
11
- for more information.
12
-
13
- libusb homepage:
14
- http://libusb.info/
15
-
16
- Developers will wish to consult the API documentation:
17
- http://api.libusb.info
18
-
19
- Use the mailing list for questions, comments, etc:
20
- http://mailing-list.libusb.info
21
-
22
- - Pete Batard <pete@akeo.ie>
23
- - Hans de Goede <hdegoede@redhat.com>
24
- - Xiaofan Chen <xiaofanc@gmail.com>
25
- - Ludovic Rousseau <ludovic.rousseau@gmail.com>
26
- - Nathan Hjelm <hjelmn@users.sourceforge.net>
27
- - Chris Dickens <christopher.a.dickens@gmail.com>
28
- (Please use the mailing list rather than mailing developers directly)