diff options
author | Pete Batard <pete@akeo.ie> | 2012-04-12 23:52:49 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-04-12 23:52:49 +0100 |
commit | 9ee81db53e4367bbb90650ec6443f81429454971 (patch) | |
tree | 0693474aab002519d2b08ebbfab0d42650e922f0 /.private/bd.cmd | |
parent | b9e3a9b74cb78302b19652b44114f2e491dd24f2 (diff) | |
download | libusb-9ee81db53e4367bbb90650ec6443f81429454971.tar.gz |
Windows: add internal binary snapshot scripts
Diffstat (limited to '.private/bd.cmd')
-rw-r--r-- | .private/bd.cmd | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/.private/bd.cmd b/.private/bd.cmd new file mode 100644 index 0000000..e81aa94 --- /dev/null +++ b/.private/bd.cmd @@ -0,0 +1,83 @@ +@echo off +rem produce the DDK binary files for snapshots +rem !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!! + +if NOT x%DDK_TARGET_OS%==xWinXP goto usage + +set PWD=%~dp0 +cd .. +mkdir E:\dailies\%DATE% +for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A +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 examples\listdevs.c E:\dailies\%DATE%\examples\source +copy examples\xusb.c E:\dailies\%DATE%\examples\source +copy msvc\stdint.h E:\dailies\%DATE%\examples\source +copy .private\wbs.txt E:\dailies\%DATE%\README.txt + +set ORG_BUILD_ALT_DIR=%BUILD_ALT_DIR% +set ORG_BUILDARCH=%_BUILDARCH% +set ORG_PATH=%PATH% +set ORG_BUILD_DEFAULT_TARGETS=%BUILD_DEFAULT_TARGETS% + +set 386=1 +set AMD64= +set BUILD_DEFAULT_TARGETS=-386 +set _AMD64bit= +set _BUILDARCH=x86 +set PATH=%BASEDIR%\bin\x86;%BASEDIR%\bin\x86\x86 + +cd msvc +call ddk_build +cd .. + +@echo off +copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\static +copy Win32\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin32 +copy Win32\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin32 + +cd msvc +call ddk_build DLL +cd .. + +@echo off +copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\dll +copy Win32\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS32\dll + +set 386= +set AMD64=1 +set BUILD_DEFAULT_TARGETS=-amd64 +set _AMD64bit=true +set _BUILDARCH=AMD64 +set PATH=%BASEDIR%\bin\x86\amd64;%BASEDIR%\bin\x86 + +cd msvc +call ddk_build +cd .. + +@echo off +copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\static +copy x64\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin64 +copy x64\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin64 + +cd msvc +call ddk_build DLL +cd .. + +@echo off +copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\dll +copy x64\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS64\dll + +set BUILD_ALT_DIR=%ORG_BUILD_ALT_DIR% +set _BUILDARCH=%ORG_BUILDARCH% +set PATH=%ORG_PATH% +set BUILD_DEFAULT_TARGETS=%ORG_BUILD_DEFAULT_TARGETS% + +goto done + +:usage +echo must be run in a WXP build environment! + +:done +cd %PWD%
\ No newline at end of file |