Skip to content

Commit

Permalink
Updated libusb for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
majenkotech committed Nov 14, 2020
1 parent 7299467 commit 237160c
Show file tree
Hide file tree
Showing 34 changed files with 3,324 additions and 345 deletions.
320 changes: 159 additions & 161 deletions INSTALL

Large diffs are not rendered by default.

29 changes: 19 additions & 10 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# Makefile.in generated by automake 1.16.2 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# Copyright (C) 1994-2020 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
Expand Down Expand Up @@ -114,7 +114,7 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
depcomp =
am__depfiles_maybe =
am__maybe_remake_depfiles =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
Expand All @@ -137,9 +137,9 @@ am__recursive_targets = \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
cscope distdir dist dist-all distcheck
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
$(LISP)config.h.in
cscope distdir distdir-am dist dist-all distcheck
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
config.h.in
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
Expand Down Expand Up @@ -348,8 +348,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
Expand Down Expand Up @@ -482,7 +482,10 @@ distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files

distdir: $(DISTFILES)
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am

distdir-am: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
Expand Down Expand Up @@ -562,6 +565,10 @@ dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)

dist-zstd: distdir
tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
$(am__post_remove_distdir)

dist-tarZ: distdir
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
Expand Down Expand Up @@ -604,6 +611,8 @@ distcheck: dist
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
*.tar.zst*) \
zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
Expand Down Expand Up @@ -780,7 +789,7 @@ uninstall-am:
am--refresh check check-am clean clean-cscope clean-generic \
cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
distcheck distclean distclean-generic distclean-hdr \
dist-zstd distcheck distclean distclean-generic distclean-hdr \
distclean-tags distcleancheck distdir distuninstallcheck dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
Expand Down
44 changes: 22 additions & 22 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2405,7 +2405,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_config_headers="$ac_config_headers config.h"

am__api_version='1.15'
am__api_version='1.16'

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Expand Down Expand Up @@ -2950,8 +2950,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# For better backward compatibility. To be removed once Automake 1.9.x
# dies out for good. For more background, see:
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver). The
Expand Down Expand Up @@ -3002,7 +3002,7 @@ END
Aborting the configuration process, to ensure you take notice of the issue.
You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <http://www.gnu.org/software/coreutils/>.
that behaves properly: <https://www.gnu.org/software/coreutils/>.
If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Expand Down Expand Up @@ -4239,8 +4239,8 @@ fi


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
$as_echo_n "checking for LIBUSB... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
$as_echo_n "checking for libusb-1.0... " >&6; }

if test -n "$LIBUSB_CFLAGS"; then
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
Expand Down Expand Up @@ -4280,7 +4280,7 @@ fi


if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Expand All @@ -4298,7 +4298,7 @@ fi

WANT_USB=-1; WANT_HID=0
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_USB=-1; WANT_HID=0
else
Expand Down Expand Up @@ -5336,8 +5336,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
$as_echo_n "checking for LIBUSB... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
$as_echo_n "checking for libusb-1.0... " >&6; }

if test -n "$LIBUSB_CFLAGS"; then
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
Expand Down Expand Up @@ -5377,7 +5377,7 @@ fi


if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Expand All @@ -5395,7 +5395,7 @@ fi

WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
else
Expand All @@ -5409,8 +5409,8 @@ $as_echo "yes" >&6; }
fi

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
$as_echo_n "checking for UDEV... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
$as_echo_n "checking for libudev... " >&6; }

if test -n "$UDEV_CFLAGS"; then
pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
Expand Down Expand Up @@ -5450,7 +5450,7 @@ fi


if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Expand All @@ -5468,7 +5468,7 @@ fi

WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
else
Expand Down Expand Up @@ -7186,8 +7186,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
$as_echo_n "checking for LIBUSB... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
$as_echo_n "checking for libusb-1.0... " >&6; }

if test -n "$LIBUSB_CFLAGS"; then
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
Expand Down Expand Up @@ -7227,7 +7227,7 @@ fi


if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Expand All @@ -7245,7 +7245,7 @@ fi

WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
WANT_USB=-1; WANT_HID=0; LIBUSB_STATIC=''
else
Expand Down Expand Up @@ -7316,8 +7316,8 @@ fi
fi
if test "x$WANT_USB" = "x1"; then :

LIBUSB_LIBS="-Llibusb-win32 -lusb-1.0 -lsetupapi"
LIBUSB_CFLAGS="-Ilibusb-win32/libusb-1.0"
LIBUSB_LIBS="-Llibusb-win32/MinGW64/static -lusb-1.0 -lsetupapi"
LIBUSB_CFLAGS="-Ilibusb-win32/include/libusb-1.0"

fi
if test "x$WANT_HID" = "x1"; then :
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ case $host_os in
HID_OBJ='hid/linux/hid.$(OBJEXT)'
])
AS_IF([test "x$WANT_USB" = "x1"], [
LIBUSB_LIBS="-Llibusb-win32 -lusb-1.0 -lsetupapi"
LIBUSB_CFLAGS="-Ilibusb-win32/libusb-1.0"
LIBUSB_LIBS="-Llibusb-win32/MinGW64/static -lusb-1.0 -lsetupapi"
LIBUSB_CFLAGS="-Ilibusb-win32/include/libusb-1.0"
])
AS_IF([test "x$WANT_HID" = "x1"], [
HID_SRC="hid/windows/hid.c"
Expand Down
15 changes: 9 additions & 6 deletions src/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# Makefile.in generated by automake 1.16.2 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# Copyright (C) 1994-2020 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
Expand Down Expand Up @@ -137,7 +137,7 @@ am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp =
am__depfiles_maybe =
am__maybe_remake_depfiles =
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
Expand Down Expand Up @@ -327,8 +327,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
Expand Down Expand Up @@ -621,7 +621,10 @@ cscopelist-am: $(am__tagged_files)
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am

distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
Expand Down
Binary file added src/libusb-win32/MS32/dll/libusb-1.0.dll
Binary file not shown.
Binary file added src/libusb-win32/MS32/dll/libusb-1.0.lib
Binary file not shown.
Binary file added src/libusb-win32/MS32/dll/libusb-1.0.pdb
Binary file not shown.
Binary file added src/libusb-win32/MS32/static/libusb-1.0.lib
Binary file not shown.
Binary file added src/libusb-win32/MS64/dll/libusb-1.0.dll
Binary file not shown.
Binary file added src/libusb-win32/MS64/dll/libusb-1.0.lib
Binary file not shown.
Binary file added src/libusb-win32/MS64/dll/libusb-1.0.pdb
Binary file not shown.
Binary file added src/libusb-win32/MS64/static/libusb-1.0.lib
Binary file not shown.
Binary file added src/libusb-win32/MinGW32/dll/libusb-1.0.dll
Binary file not shown.
Binary file added src/libusb-win32/MinGW32/dll/libusb-1.0.dll.a
Binary file not shown.
Binary file added src/libusb-win32/MinGW32/static/libusb-1.0.a
Binary file not shown.
Binary file added src/libusb-win32/MinGW64/dll/libusb-1.0.dll
Binary file not shown.
Binary file added src/libusb-win32/MinGW64/dll/libusb-1.0.dll.a
Binary file not shown.
Binary file added src/libusb-win32/MinGW64/static/libusb-1.0.a
Binary file not shown.
Binary file added src/libusb-win32/examples/bin32/fxload.exe
Binary file not shown.
Binary file added src/libusb-win32/examples/bin32/listdevs.exe
Binary file not shown.
Binary file added src/libusb-win32/examples/bin32/xusb.exe
Binary file not shown.
Binary file added src/libusb-win32/examples/bin64/fxload.exe
Binary file not shown.
Binary file added src/libusb-win32/examples/bin64/listdevs.exe
Binary file not shown.
Binary file added src/libusb-win32/examples/bin64/xusb.exe
Binary file not shown.
Loading

0 comments on commit 237160c

Please sign in to comment.