-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.bat
40 lines (35 loc) · 995 Bytes
/
make.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
@echo off
if not "x%WDKDIR%" == "x" goto SELECT_BINARY
echo The WDKDIR environment variable is not set
echo Set this variable to your WDK directory (without ending backslash)
echo Example: set WDKDIR C:\WinDDK\6001
pause
goto:eof
:SELECT_BINARY
set PROJECT_DIR=%~dp0
set SAVE_PATH=%PATH%
set BINARY_NAME=wcx_mpq
set LANGUAGE=En
:BUILD_BINARY_64
echo [*] Building %BINARY_NAME%.dll (64-bit) ...
set DDKBUILDENV=
call %WDKDIR%\bin\setenv.bat %WDKDIR%\ fre x64 wlh
cd %PROJECT_DIR%
build.exe -czgw
del buildfre_wlh_amd64.log
echo.
:BUILD_BINARY_32
echo [*] Building %BINARY_NAME%.dll (32-bit) ...
set DDKBUILDENV=
call %WDKDIR%\bin\setenv.bat %WDKDIR%\ fre w2k
cd %PROJECT_DIR%
build.exe -czgw
del buildfre_w2k_x86.log
echo.
:POST_BUILD_STEPS
PostBuild.exe %BINARY_NAME%.rc
call make-zip.bat .\objfre_wlh_amd64\amd64\%BINARY_NAME%.dll .\objfre_w2k_x86\i386\%BINARY_NAME%.dll
:CLEANUP
if exist %BINARY_NAME%_WDK.rc del %BINARY_NAME%_WDK.rc
if exist build.bat del build.bat
set PATH=%SAVE_PATH%