Samples: Fix no previous prototype warnings in xusb.c
[libusbx.git] / .private / bd.cmd
blobe81aa94a98b3a0210b7555daf0432cf70fb83cfe
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 PWD=%~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 msvc\stdint.h E:\dailies\%DATE%\examples\source
17 copy .private\wbs.txt E:\dailies\%DATE%\README.txt
19 set ORG_BUILD_ALT_DIR=%BUILD_ALT_DIR%
20 set ORG_BUILDARCH=%_BUILDARCH%
21 set ORG_PATH=%PATH%
22 set ORG_BUILD_DEFAULT_TARGETS=%BUILD_DEFAULT_TARGETS%
24 set 386=1
25 set AMD64=
26 set BUILD_DEFAULT_TARGETS=-386
27 set _AMD64bit=
28 set _BUILDARCH=x86
29 set PATH=%BASEDIR%\bin\x86;%BASEDIR%\bin\x86\x86
31 cd msvc
32 call ddk_build
33 cd ..
35 @echo off
36 copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\static
37 copy Win32\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin32
38 copy Win32\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin32
40 cd msvc
41 call ddk_build DLL
42 cd ..
44 @echo off
45 copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\dll
46 copy Win32\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS32\dll
48 set 386=
49 set AMD64=1
50 set BUILD_DEFAULT_TARGETS=-amd64
51 set _AMD64bit=true
52 set _BUILDARCH=AMD64
53 set PATH=%BASEDIR%\bin\x86\amd64;%BASEDIR%\bin\x86
55 cd msvc
56 call ddk_build
57 cd ..
59 @echo off
60 copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\static
61 copy x64\Release\examples\listdevs.exe E:\dailies\%DATE%\examples\bin64
62 copy x64\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin64
64 cd msvc
65 call ddk_build DLL
66 cd ..
68 @echo off
69 copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\dll
70 copy x64\Release\dll\libusb-1.0.dll E:\dailies\%DATE%\MS64\dll
72 set BUILD_ALT_DIR=%ORG_BUILD_ALT_DIR%
73 set _BUILDARCH=%ORG_BUILDARCH%
74 set PATH=%ORG_PATH%
75 set BUILD_DEFAULT_TARGETS=%ORG_BUILD_DEFAULT_TARGETS%
77 goto done
79 :usage
80 echo must be run in a WXP build environment!
82 :done
83 cd %PWD%