-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
49 lines (42 loc) · 1.14 KB
/
build.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
42
43
44
45
46
47
48
49
@echo off
::Go up a folder, so Hake is called from the right directory
cd ..\
echo ___________________________________
echo Hake builder
echo type q to quite.
echo ___________________________________
::Target input.
:platform_input
set /p target="Specify target:"
if %target%==q (
echo Quitting...
goto end_of_file
)
::Options input.
set /p options="Specify options:"
set "TRUE="
::Checks if the input matches any of the valid targets
IF %target%==windows set TRUE=1
IF %target%==linux set TRUE=1
IF %target%==android set TRUE=1
IF %target%==windowsrt set TRUE=1
IF %target%==osx set TRUE=1
IF %target%==ios set TRUE=1
IF %target%==html5 set TRUE=1
IF %target%==flash set TRUE=1
IF %target%==wpf set TRUE=1
IF %target%==xna set TRUE=1
IF %target%==java set TRUE=1
IF %target%==psm set TRUE=1
IF %target%==dalvik set TRUE=1
::If the input is valid call Hake
::If True is not defined ( no valid target ) jump back to the start
IF defined TRUE (
start /b /wait %opt% Kha\Tools\hake\hake %target% %options%
) else (
echo Unsupported platform...
goto platform_input
)
:end_of_file
echo ___________________________________
pause