forked from djpnewton/vmulti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildme.bat
41 lines (31 loc) · 1.17 KB
/
buildme.bat
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
:: setup separate object root
set separate_object_root=TRUE
set _NTTREE=%CD%
set OBJECT_ROOT=%CD%\obj
set BINPLACE_EXCLUDE_FILE=%BASEDIR%\bin\symbad.txt
set BINPLACE_LOG=%_NTTREE%\build_logs\binplace.log
set BINPLACE_PDB_DLL=mspdb80.dll
set NO_BINPLACE=
set NTDBGFILES=1
set NTDBGFILES_PRIVATE=0
if Not Exist %_NTTREE% md %_NTTREE%
if Not Exist %_NTTREE%\build_logs md %_NTTREE%\build_logs
if Not Exist %OBJECT_ROOT% md %OBJECT_ROOT%
if Not Exist bin md bin
:: build files
build -wgc
:: extra copy coinstaller from redist
copy %BASEDIR%\redist\wdf\x86\WdfCoInstaller01009.dll bin\
echo off
:: create bat file for easier installation of driver
echo %BASEDIR%\tools\devcon\i386\devcon.exe install vmulti.inf djpnewton\vmulti > bin\install_driver.bat
:: create bat file for easier testing
echo %BASEDIR%\tools\devcon\i386\devcon.exe remove djpnewton\vmulti > bin\test.bat
echo cd .. >> bin\test.bat
echo cmd /c buildme.bat >> bin\test.bat
echo cd bin >> bin\test.bat
echo cmd /c install_driver.bat >> bin\test.bat
echo echo After keypress, launching testvmulti >> bin\test.bat
echo pause >> bin\test.bat
echo testvmulti /joystick >> bin\test.bat
echo on