summaryrefslogtreecommitdiff
path: root/bd.cmd
blob: 4fe42bb697d2558d98f0e613220a4720d5def101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@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

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 libusb\libusb.h E:\dailies\%DATE%\
copy libusb\msvc\stdint.h E:\dailies\%DATE%\
copy libusb\libusb-1.0.def E:\dailies\%DATE%\
copy examples\*.c E:\dailies\%DATE%\examples\source

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

call ddk_build

@echo off
copy Win32\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS32\static
copy Win32\Release\examples\lsusb.exe E:\dailies\%DATE%\examples\bin32
copy Win32\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin32

call ddk_build DLL

@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

call ddk_build

@echo off
copy x64\Release\lib\libusb-1.0.lib E:\dailies\%DATE%\MS64\static
copy x64\Release\examples\lsusb.exe E:\dailies\%DATE%\examples\bin64
copy x64\Release\examples\xusb.exe E:\dailies\%DATE%\examples\bin64

call ddk_build DLL

@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