summaryrefslogtreecommitdiff
path: root/.private
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-01-20 18:02:19 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-01-20 18:02:19 -0800
commitf90d07613c7a86eca85df9f8209ce586ce70ecf6 (patch)
tree68cd745d255c85b86418d4cb64fc6a47547d1b6b /.private
parent9eda802d947d9c4212eb3f821fa51956029dade0 (diff)
downloadlibusb-f90d07613c7a86eca85df9f8209ce586ce70ecf6.tar.gz
Windows: Remove support for WinCE and Visual Studio older than 2013
There appears to be no need for the WinCE backend anymore, and it is increasingly difficult to keep healthy as the rest of the library changes. Require at least Visual Studio 2013 to compile. This simplifies matters as there is some semblance of C99 support there. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to '.private')
-rw-r--r--.private/.gitattributes2
-rw-r--r--.private/bm.sh2
-rwxr-xr-x.private/bwince.cmd57
-rw-r--r--.private/wbs.txt4
-rwxr-xr-x.private/wbs_wince.txt42
5 files changed, 5 insertions, 102 deletions
diff --git a/.private/.gitattributes b/.private/.gitattributes
new file mode 100644
index 0000000..47dacb3
--- /dev/null
+++ b/.private/.gitattributes
@@ -0,0 +1,2 @@
+bd.cmd eol=crlf
+wbs.txt eol=crlf
diff --git a/.private/bm.sh b/.private/bm.sh
index 520c3a5..0f45a98 100644
--- a/.private/bm.sh
+++ b/.private/bm.sh
@@ -51,4 +51,4 @@ mkdir -p $target/dll
cp -v libusb/.libs/libusb-1.0.a $target/static
cp -v libusb/.libs/libusb-1.0.dll $target/dll
cp -v libusb/.libs/libusb-1.0.dll.a $target/dll
-cd $PWD \ No newline at end of file
+cd $PWD
diff --git a/.private/bwince.cmd b/.private/bwince.cmd
deleted file mode 100755
index 0cc7477..0000000
--- a/.private/bwince.cmd
+++ /dev/null
@@ -1,57 +0,0 @@
-@echo off
-rem produce the Win CE binary files for snapshots
-rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
-
-if "x%VSINSTALLDIR%"=="x" goto usage
-
-if "x%WINCE_TARGET_DIR_BASE%"=="x" set WINCE_TARGET_DIR_BASE=E:\dailies
-if "x%WINCE_TARGET_ARCHES%"=="x" set WINCE_TARGET_ARCHES=ARMV4I MIPSII MIPSII_FP MIPSIV MIPSIV_FP SH4 x86
-
-
-set WINCE_TARGET_DIR=%WINCE_TARGET_DIR_BASE%\%DATE:/=-%
-set MSBUILD_CMD=msbuild.exe
-set MSBUILD_TARGET=Rebuild
-set MSBUILD_CONFIGURATION=Release
-set WINCE_SLN=msvc\libusb_wince.sln
-set PLATFORM_PREFIX=STANDARDSDK_500 (
-set PLATFORM_POSTFIX=)
-
-
-set PWD=%~dp0
-cd ..
-
-mkdir %WINCE_TARGET_DIR%
-mkdir %WINCE_TARGET_DIR%\include\libusb-1.0
-copy libusb\libusb-1.0.def %WINCE_TARGET_DIR%
-copy libusb\libusb.h %WINCE_TARGET_DIR%\include\libusb-1.0
-for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A
-for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\static
-for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\%%A\dll
-for %%A in (%WINCE_TARGET_ARCHES%) do mkdir %WINCE_TARGET_DIR%\examples\%%A
-mkdir %WINCE_TARGET_DIR%\examples\source
-copy examples\listdevs.c %WINCE_TARGET_DIR%\examples\source
-copy examples\xusb.c %WINCE_TARGET_DIR%\examples\source
-copy msvc\stdint.h %WINCE_TARGET_DIR%\examples\source
-copy .private\wbs_wince.txt %WINCE_TARGET_DIR%\README.txt
-copy COPYING %WINCE_TARGET_DIR%\COPYING
-
-rem Perform the rebuild
-for %%A in (%WINCE_TARGET_ARCHES%) do %MSBUILD_CMD% %WINCE_SLN% /property:Platform="%PLATFORM_PREFIX%%%A%PLATFORM_POSTFIX%" /property:Configuration=%MSBUILD_CONFIGURATION% /target:%MSBUILD_TARGET%"
-
-
-rem Copy across the binaries
-for %%A in (%WINCE_TARGET_ARCHES%) do (
- copy %%A\%MSBUILD_CONFIGURATION%\lib\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\static
- copy %%A\%MSBUILD_CONFIGURATION%\examples\listdevs.exe %WINCE_TARGET_DIR%\examples\%%A
- copy %%A\%MSBUILD_CONFIGURATION%\examples\xusb.exe %WINCE_TARGET_DIR%\examples\%%A
- copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.lib %WINCE_TARGET_DIR%\%%A\dll
- copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.dll %WINCE_TARGET_DIR%\%%A\dll
- copy %%A\%MSBUILD_CONFIGURATION%\dll\libusb-1.0.pdb %WINCE_TARGET_DIR%\%%A\dll )
-
-goto done
-
-:usage
-echo must be run in a Visual Studio 2005 build environment!
-
-:done
-cd %PWD% \ No newline at end of file
diff --git a/.private/wbs.txt b/.private/wbs.txt
index 2ad8395..7a12424 100644
--- a/.private/wbs.txt
+++ b/.private/wbs.txt
@@ -27,7 +27,7 @@ o Visual Studio:
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 as well as the relevant
+ directory where you would have copied libusb.h as well as the relevant
libusb-1.0.lib
TARGETNAME=your_app
@@ -58,4 +58,4 @@ o Additional information:
- 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.info/ and check the
- Support section
+ Support section \ No newline at end of file
diff --git a/.private/wbs_wince.txt b/.private/wbs_wince.txt
deleted file mode 100755
index 5b5e3cb..0000000
--- a/.private/wbs_wince.txt
+++ /dev/null
@@ -1,42 +0,0 @@
- libusb 1.0 Windows CE binary snapshot - README
-
- *********************************************************************
- * The latest version of this snapshot can always be downloaded at: *
- * https://sourceforge.net/projects/libusb/files/ *
- *********************************************************************
-
-The binaries contained in this snapshot are licensed under the
-GNU Lesser General Public License version 2.1 or, at your option, any later
-version (see COPYING for further details). The source code for these binaries
-is available for download at the same location as this binary snapshot.
-
-o Visual Studio:
- - Open existing or create a new project for your application
- - Copy libusb.h, from the include\libusb-1.0\ directory, into your project and
- make sure that the location where the file reside appears in the 'Additional
- Include Directories' section (Configuration Properties -> C/C++ -> General).
- - Copy the relevant .lib file from ARMV4I, MIPSII, MIPSII_FP, MIPSIV, MIPSIV_FP,
- SH4 or x86 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 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 Additional information:
- - The libusb 1.0 API documentation can be accessed at:
- http://api.libusb.info
- - 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://windows.libusb.info
- - It is necessary to install the CE USB Kernel Wrapper driver for libusb to
- function on a device. This is obtainable from:
- https://github.com/RealVNC/CEUSBKWrapper
- - If you find any issue, please visit http://libusb.info/ and check the
- Support section