summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_README.txt61
-rw-r--r--_bd.cmd6
-rw-r--r--_bump.sh (renamed from bump.sh)0
-rw-r--r--configure.ac2
-rw-r--r--libusb/libusb_version.h2
5 files changed, 67 insertions, 4 deletions
diff --git a/_README.txt b/_README.txt
new file mode 100644
index 0000000..2420227
--- /dev/null
+++ b/_README.txt
@@ -0,0 +1,61 @@
+ libusb 1.0 Windows binary snapshot - README
+
+ *********************************************************************
+ * The latest version of this snapshot can always be downloaded at: *
+ * http://libusb.org/wiki/windows_backend#LatestBinarySnapshots *
+ *********************************************************************
+
+o Visual Studio:
+ - Open existing or create a new project for your application
+ - Copy the libusb.h and stdint.h files into your project and make sure that
+ the location where these files reside appears in the 'Additional Include
+ Directories' section (Configuration Properties -> C/C++ -> General)
+ - Copy the relevant .lib file from MS32\ or MS64\ and add 'libusb-1.0.lib' to
+ your 'Additional Dependencies' (Configuration Properties -> Linker -> Input)
+ Also make sure that the directory where libusb-1.0.lib resides is added to
+ 'Additional Library Directories' (Configuration Properties -> Linker
+ -> General)
+ - If you use the static version of the libusb-1.0 library, make sure that
+ 'Runtime Library' is set to 'Multi-threaded DLL (/MD)' (Configuration
+ Properties -> C/C++ -> Code Generation).
+ NB: If your application requires /MT (Multi-threaded/libCMT), you need to
+ recompile a static libusb 1.0 library from source.
+ - Compile and run your application. If you use the DLL version of libusb-1.0,
+ remember that you need to have a copy of the DLL either in the runtime
+ directory or in system32
+
+o WDK/DDK:
+ - The following is an example of a sources files that you can use to compile
+ a libusb 1.0 based console application. In this sample ..\libusb\ is the
+ directory where you would have copied libusb.h, stdint.h as well as the
+ relevant libusb-1.0.lib
+
+ TARGETNAME=your_app
+ TARGETTYPE=PROGRAM
+ USE_MSVCRT=1
+ UMTYPE=console
+ INCLUDES=..\libusb;$(DDK_INC_PATH)
+ TARGETLIBS=..\libusb\libusb-1.0.lib
+ SOURCES=your_app.c
+
+ - Note that if you plan to use libCMT instead of MSVCRT (USE_LIBCMT=1 instead
+ of USE_MSVCRT=1), you will need to recompile libusb to use libCMT. This can
+ easily be achieved, in the DDK environment, by running 'ddk_build /MT'
+
+o MinGW/cygwin
+ - Copy libusb.h to your default include directory and the relevant MinGW32\ or
+ MinGW64\ .a file to your default library directory. Or, if you don't want to
+ use the default locations, make sure that you feed the relevant -I and -L
+ options to the compiler.
+ - Add the '-lusb-1.0' linker option when compiling.
+
+o Additional information:
+ - The libusb 1.0 API documentation can be accessed at:
+ http://libusb.sourceforge.net/api-1.0/modules.html
+ - For some libusb samples (including source), please have a look in examples/
+ - For additional information on the libusb 1.0 Windows backend please visit:
+ http://libusb.org/wiki/windows_backend
+ - The MinGW and MS generated DLLs are fully interchangeable, provided that you
+ use the import libs provided or generate one from the .def also provided.
+ - If you find any issue, please visit http://libusb.org/ and follow the
+ instructions from the 'Support' & 'Bug and feature Requests'
diff --git a/_bd.cmd b/_bd.cmd
index 4fe42bb..c56db68 100644
--- a/_bd.cmd
+++ b/_bd.cmd
@@ -10,9 +10,11 @@ for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\static
for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\dll
for %%A in (source bin32 bin64) do mkdir E:\dailies\%DATE%\examples\%%A
copy libusb\libusb.h E:\dailies\%DATE%\
-copy libusb\msvc\stdint.h E:\dailies\%DATE%\
+copy msvc\stdint.h E:\dailies\%DATE%\
copy libusb\libusb-1.0.def E:\dailies\%DATE%\
-copy examples\*.c E:\dailies\%DATE%\examples\source
+copy examples\lsusb.c E:\dailies\%DATE%\examples\source
+copy examples\xusb.c E:\dailies\%DATE%\examples\source
+copy _README.txt E:\dailies\%DATE%\README.txt
set ORG_BUILD_ALT_DIR=%BUILD_ALT_DIR%
set ORG_BUILDARCH=%_BUILDARCH%
diff --git a/bump.sh b/_bump.sh
index 12c17d3..12c17d3 100644
--- a/bump.sh
+++ b/_bump.sh
diff --git a/configure.ac b/configure.ac
index d32ad9a..24c2625 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
m4_define(LIBUSB_MAJOR, [1])
m4_define(LIBUSB_MINOR, [0])
m4_define(LIBUSB_MICRO, [8])
-m4_define(LIBUSB_NANO, [10316])
+m4_define(LIBUSB_NANO, [10317])
AC_INIT([libusb], LIBUSB_MAJOR.LIBUSB_MINOR.LIBUSB_MICRO, [libusb-devel@lists.sourceforge.net], [libusb], [http://www.libusb.org/])
diff --git a/libusb/libusb_version.h b/libusb/libusb_version.h
index 671f6ab..357be45 100644
--- a/libusb/libusb_version.h
+++ b/libusb/libusb_version.h
@@ -24,6 +24,6 @@
#define LIBUSB_VERSION_MAJOR 1
#define LIBUSB_VERSION_MINOR 0
#define LIBUSB_VERSION_MICRO 8
-#define LIBUSB_VERSION_NANO 10316
+#define LIBUSB_VERSION_NANO 10317
#endif