diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-21 15:39:34 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-01-21 15:39:34 -0800 |
commit | 28630ad489bfc81ee683ddf569e9d9e0f4da95f7 (patch) | |
tree | 91aa6f65a84b73ea04e939aa148f750104859cf8 /msvc | |
parent | de4a59af87bf0b6df04d9f1c9439c957681f5e53 (diff) | |
download | libusb-28630ad489bfc81ee683ddf569e9d9e0f4da95f7.tar.gz |
Misc: Remove obsolete Windows DDK build files
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/.gitattributes | 2 | ||||
-rw-r--r-- | msvc/ddk_build.cmd | 219 | ||||
-rw-r--r-- | msvc/fxload_sources | 23 | ||||
-rw-r--r-- | msvc/getopt_sources | 23 | ||||
-rw-r--r-- | msvc/hotplugtest_sources | 20 | ||||
-rw-r--r-- | msvc/libusb_sources | 42 | ||||
-rw-r--r-- | msvc/listdevs_sources | 20 | ||||
-rw-r--r-- | msvc/stress_sources | 21 | ||||
-rw-r--r-- | msvc/testlibusb_sources | 20 | ||||
-rw-r--r-- | msvc/xusb_sources | 20 |
10 files changed, 0 insertions, 410 deletions
diff --git a/msvc/.gitattributes b/msvc/.gitattributes index 04c34fb..9a0d3f2 100644 --- a/msvc/.gitattributes +++ b/msvc/.gitattributes @@ -1,4 +1,2 @@ *.sln eol=crlf *.vcxproj eol=crlf -ddk_build.cmd eol=crlf -*_sources eol=crlf diff --git a/msvc/ddk_build.cmd b/msvc/ddk_build.cmd deleted file mode 100644 index 66331fb..0000000 --- a/msvc/ddk_build.cmd +++ /dev/null @@ -1,219 +0,0 @@ -@echo off -::# default builds static library. -::# you can pass the following arguments (case insensitive): -::# - "DLL" to build a DLL instead of a static library -::# - "/MT" to build a static library compatible with MSVC's /MT option (LIBCMT vs MSVCRT) - -if Test%BUILD_ALT_DIR%==Test goto usage - -::# process commandline parameters -set TARGET=LIBRARY -set STATIC_LIBC= -set version=1.0 -set PWD=%~dp0 -set BUILD_CMD=build /bcwgZ /M2 - -if "%1" == "" goto no_more_args -::# /I for case insensitive -if /I Test%1==TestDLL set TARGET=DYNLINK -if /I Test%1==Test/MT set STATIC_LIBC=1 - -:no_more_args - -cd ..\libusb\os -echo TARGETTYPE=%TARGET% > target -copy target+..\..\msvc\libusb_sources sources >NUL 2>&1 -del target -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set cpudir=i386 -set destType=Win32 -if %_BUILDARCH%==x86 goto isI386 -set cpudir=amd64 -set destType=x64 -:isI386 - -set srcPath=libusb\os\obj%BUILD_ALT_DIR%\%cpudir% - -set dstPath=%destType%\Debug -if %DDKBUILDENV%==chk goto isDebug -set dstPath=%destType%\Release -:isDebug - -if exist %destType% goto md2 -md %destType% -:md2 -if exist %dstPath% goto md3 -md %dstPath% -:md3 -if exist %dstPath%\dll goto md4 -md %dstPath%\dll -:md4 -if exist %dstPath%\lib goto md5 -md %dstPath%\lib -:md5 -if exist %dstPath%\examples goto md6 -md %dstPath%\examples -:md6 -if exist %dstPath%\tests goto md7 -md %dstPath%\tests -:md7 -@echo on - -if %TARGET%==LIBRARY goto copylib -copy %srcPath%\libusb-%version%.dll %dstPath%\dll -copy %srcPath%\libusb-%version%.pdb %dstPath%\dll -:copylib -copy %srcPath%\libusb-%version%.lib %dstPath%\lib - -@echo off - -if exist examples\getopt\getopt_ddkbuild goto md8 -md examples\getopt\getopt_ddkbuild -:md8 - -cd examples\getopt\getopt_ddkbuild -copy ..\..\..\msvc\getopt_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\..\.. - -if exist examples\fxload_ddkbuild goto md9 -md examples\fxload_ddkbuild -:md9 - -cd examples\fxload_ddkbuild -copy ..\..\msvc\fxload_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=examples\fxload_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\fxload.exe %dstPath%\examples -copy %srcPath%\fxload.pdb %dstPath%\examples - -@echo off - -if exist examples\hotplugtest_ddkbuild goto md10 -md examples\hotplugtest_ddkbuild -:md10 - -cd examples\hotplugtest_ddkbuild -copy ..\..\msvc\hotplugtest_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=examples\hotplugtest_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\hotplugtest.exe %dstPath%\examples -copy %srcPath%\hotplugtest.pdb %dstPath%\examples - -@echo off - -if exist examples\listdevs_ddkbuild goto md11 -md examples\listdevs_ddkbuild -:md11 - -cd examples\listdevs_ddkbuild -copy ..\..\msvc\listdevs_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=examples\listdevs_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\listdevs.exe %dstPath%\examples -copy %srcPath%\listdevs.pdb %dstPath%\examples - -@echo off - -if exist examples\testlibusb_ddkbuild goto md12 -md examples\testlibusb_ddkbuild -:md12 - -cd examples\testlibusb_ddkbuild -copy ..\..\msvc\testlibusb_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=examples\testlibusb_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\testlibusb.exe %dstPath%\examples -copy %srcPath%\testlibusb.pdb %dstPath%\examples - -@echo off - -if exist examples\xusb_ddkbuild goto md13 -md examples\xusb_ddkbuild -:md13 - -cd examples\xusb_ddkbuild -copy ..\..\msvc\xusb_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=examples\xusb_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\xusb.exe %dstPath%\examples -copy %srcPath%\xusb.pdb %dstPath%\examples - -@echo off - -if exist tests\stress_ddkbuild goto md14 -md tests\stress_ddkbuild -:md14 - -cd tests\stress_ddkbuild -copy ..\..\msvc\stress_sources sources >NUL 2>&1 -@echo on -%BUILD_CMD% -@echo off -if errorlevel 1 goto builderror -cd ..\.. - -set srcPath=tests\stress_ddkbuild\obj%BUILD_ALT_DIR%\%cpudir% -@echo on - -copy %srcPath%\stress.exe %dstPath%\tests -copy %srcPath%\stress.pdb %dstPath%\tests - -@echo off - -cd msvc -goto done - -:usage -echo ddk_build must be run in a WDK build environment -pause -goto done - -:builderror -echo Build failed - -:done -cd %PWD%
\ No newline at end of file diff --git a/msvc/fxload_sources b/msvc/fxload_sources deleted file mode 100644 index 172329d..0000000 --- a/msvc/fxload_sources +++ /dev/null @@ -1,23 +0,0 @@ -TARGETNAME=fxload -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\msvc;..\..\libusb;..\getopt;$(DDK_INC_PATH) -C_DEFINES=$(C_DEFINES) /D__GNU_LIBRARY__ -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib \ - ..\getopt\getopt_ddkbuild\obj$(BUILD_ALT_DIR)\*\getopt.lib -SOURCES=..\ezusb.c \ - ..\fxload.c
\ No newline at end of file diff --git a/msvc/getopt_sources b/msvc/getopt_sources deleted file mode 100644 index 516cb27..0000000 --- a/msvc/getopt_sources +++ /dev/null @@ -1,23 +0,0 @@ -TARGETTYPE=LIBRARY -TARGETNAME=getopt -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -INCLUDES=$(DDK_INC_PATH) -C_DEFINES=$(C_DEFINES) /DDDKBUILD /DHAVE_STRING_H - -TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib - -SOURCES=..\getopt1.c \ - ..\getopt.c
\ No newline at end of file diff --git a/msvc/hotplugtest_sources b/msvc/hotplugtest_sources deleted file mode 100644 index c2e0fc0..0000000 --- a/msvc/hotplugtest_sources +++ /dev/null @@ -1,20 +0,0 @@ -TARGETNAME=hotplugtest -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\msvc;..\..\libusb;$(DDK_INC_PATH) -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib -SOURCES=..\hotplugtest.c
\ No newline at end of file diff --git a/msvc/libusb_sources b/msvc/libusb_sources deleted file mode 100644 index f552422..0000000 --- a/msvc/libusb_sources +++ /dev/null @@ -1,42 +0,0 @@ -#TARGETTYPE is not defined, to allow selection between static lib or DLL with ddk_build -TARGETNAME=libusb-1.0 -DLLDEF=..\libusb-1.0.def - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -INCLUDES=..;..\..\msvc;$(DDK_INC_PATH) -C_DEFINES=$(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD - -# http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/ -# prevents the following error when using the 64 bit static lib with Visual Studio 2010: -# "fatal error C1001: An internal error has occurred in the compiler. -# (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)" -# and the following with Visual Studio 2010: -# "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with -# an older compiler than other objects; rebuild old objects and libraries" -USER_C_FLAGS=/GL- - -TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib - -SOURCES=..\core.c \ - ..\descriptor.c \ - ..\hotplug.c \ - ..\io.c \ - poll_windows.c \ - ..\strerror.c \ - ..\sync.c \ - threads_windows.c \ - windows_common.c \ - windows_usbdk.c \ - windows_winusb.c \ - ..\libusb-1.0.rc
\ No newline at end of file diff --git a/msvc/listdevs_sources b/msvc/listdevs_sources deleted file mode 100644 index 96f372e..0000000 --- a/msvc/listdevs_sources +++ /dev/null @@ -1,20 +0,0 @@ -TARGETNAME=listdevs -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\libusb;$(DDK_INC_PATH) -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib -SOURCES=..\listdevs.c
\ No newline at end of file diff --git a/msvc/stress_sources b/msvc/stress_sources deleted file mode 100644 index 0b4c6dc..0000000 --- a/msvc/stress_sources +++ /dev/null @@ -1,21 +0,0 @@ -TARGETNAME=stress -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\msvc;..\..\libusb;$(DDK_INC_PATH) -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib -SOURCES=..\stress.c \ - ..\testlib.c
\ No newline at end of file diff --git a/msvc/testlibusb_sources b/msvc/testlibusb_sources deleted file mode 100644 index e4bf8ae..0000000 --- a/msvc/testlibusb_sources +++ /dev/null @@ -1,20 +0,0 @@ -TARGETNAME=testlibusb -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\msvc;..\..\libusb;$(DDK_INC_PATH) -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib -SOURCES=..\testlibusb.c
\ No newline at end of file diff --git a/msvc/xusb_sources b/msvc/xusb_sources deleted file mode 100644 index c706c84..0000000 --- a/msvc/xusb_sources +++ /dev/null @@ -1,20 +0,0 @@ -TARGETNAME=xusb -TARGETTYPE=PROGRAM -386_STDCALL=0 - -_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP) - -!IFNDEF MSC_WARNING_LEVEL -MSC_WARNING_LEVEL=/W3 -!ENDIF - -!IFDEF STATIC_LIBC -USE_LIBCMT=1 -!ELSE -USE_MSVCRT=1 -!ENDIF - -UMTYPE=console -INCLUDES=..\..\msvc;..\..\libusb;$(DDK_INC_PATH) -UMLIBS=..\..\libusb\os\obj$(BUILD_ALT_DIR)\*\libusb-1.0.lib -SOURCES=..\xusb.c
\ No newline at end of file |