forked from UE4SS-RE/RE-UE4SS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_auto.bat
41 lines (33 loc) · 901 Bytes
/
build_auto.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
@echo off
set BuildMode=%1
set TargetName=%2
IF NOT DEFINED %BuildMode (
set BuildMode=Release
)
IF NOT DEFINED %TargetName (
set TargetName=ue4ss
)
set IsBuildConfigValid=1
IF NOT %BuildMode% == Release (
IF NOT %BuildMode% == Debug (
set IsBuildConfigValid=0
echo Build mode must be either Release or Debug, not %BuildMode%.
)
)
if NOT %TargetName% == ue4ss (
if NOT %TargetName% == xinput1_3 (
set IsBuildConfigValid=0
echo Target name must be either ue4ss or xinput1_3, not %TargetName%
)
)
IF %IsBuildConfigValid% == 1 (
echo Target Name: %TargetName%
echo Build Mode: %BuildMode%
call internal_generate_build_files.bat %BuildMode%
cd ....
MSBuild.exe /m "VS_Solution\%TargetName%.vcxproj" /property:Configuration=%BuildMode%
) else (
echo Could not build, the build configuration is invalid.
pause
exit /b
)