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