1@echo off 2rem produce the DDK binary files for snapshots 3rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!! 4 5if NOT x%DDK_TARGET_OS%==xWinXP goto usage 6 7set IWD=%~dp0 8cd .. 9mkdir E:\dailies\%DATE% 10for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A 11for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\static 12for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\dll 13for %%A in (source bin32 bin64) do mkdir E:\dailies\%DATE%\examples\%%A 14copy examples\listdevs.c E:\dailies\%DATE%\examples\source 15copy examples\xusb.c E:\dailies\%DATE%\examples\source 16copy examples\ezusb.? E:\dailies\%DATE%\examples\source 17copy examples\fxload.c E:\dailies\%DATE%\examples\source 18copy msvc\stdint.h E:\dailies\%DATE%\examples\source 19copy .private\wbs.txt E:\dailies\%DATE%\README.txt 20 21set ORG_BUILD_ALT_DIR=%BUILD_ALT_DIR% 22set ORG_BUILDARCH=%_BUILDARCH% 23set ORG_PATH=%PATH% 24set ORG_BUILD_DEFAULT_TARGETS=%BUILD_DEFAULT_TARGETS% 25 26set 386=1 27set AMD64= 28set BUILD_DEFAULT_TARGETS=-386 29set _AMD64bit= 30set _BUILDARCH=x86 31set PATH=%BASEDIR%\bin\x86;%BASEDIR%\bin\x86\x86 32 33cd msvc 34call ddk_build 35cd .. 36 37@echo off 38copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\static 39copy Win32\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin32 40copy Win32\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin32 41copy Win32\Release\examples\fxload.exe E:\dailies\%DATE%\examples\bin32 42 43cd msvc 44call ddk_build DLL 45cd .. 46 47@echo off 48copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\dll 49copy Win32\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS32\dll 50copy Win32\Release\dll\libusb-1.0.pdb E:\dailies\%DATE%\MS32\dll 51 52set 386= 53set AMD64=1 54set BUILD_DEFAULT_TARGETS=-amd64 55set _AMD64bit=true 56set _BUILDARCH=AMD64 57set PATH=%BASEDIR%\bin\x86\amd64;%BASEDIR%\bin\x86 58 59cd msvc 60call ddk_build 61cd .. 62 63@echo off 64copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\static 65copy x64\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin64 66copy x64\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin64 67copy x64\Release\examples\fxload.exe E:\dailies\%DATE%\examples\bin64 68 69cd msvc 70call ddk_build DLL 71cd .. 72 73@echo off 74copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\dll 75copy x64\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS64\dll 76copy x64\Release\dll\libusb-1.0.pdb E:\dailies\%DATE%\MS64\dll 77 78set BUILD_ALT_DIR=%ORG_BUILD_ALT_DIR% 79set _BUILDARCH=%ORG_BUILDARCH% 80set PATH=%ORG_PATH% 81set BUILD_DEFAULT_TARGETS=%ORG_BUILD_DEFAULT_TARGETS% 82 83goto done 84 85:usage 86echo must be run in a WXP build environment! 87 88:done 89cd %IWD%