forked from fibjs/fibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
47 lines (38 loc) · 1.02 KB
/
build.cmd
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
@echo off
if "%1"=="Release" goto release
if "%1"=="Debug" goto debug
if "%1"=="Release32" goto release32
if "%1"=="Debug32" goto debug32
if "%1"=="clean" goto clean
echo build [Release ^| Release32 ^| Debug ^| Debug32 ^| clean]
goto out
:release
msbuild fibjs.sln /t:Build /p:Configuration=Release;Platform=x64 /m
cd bin\Windows_Release
fibjs ../../fibjs/gen_install.js
cd ..\..
cd installer
msbuild installer.sln /t:Build /p:Configuration=Release;Platform=x64 /m
cd ..
goto out
:debug
msbuild fibjs.sln /t:Build /p:Configuration=Debug;Platform=x64 /m
goto out
:release32
msbuild fibjs.sln /t:Build /p:Configuration=Release;Platform=Win32 /m
cd bin\Windows_Release32
fibjs ../../fibjs/gen_install.js
cd ..\..
cd installer
msbuild installer.sln /t:Build /p:Configuration=Release;Platform=Win32 /m
cd ..
goto out
:debug32
msbuild fibjs.sln /t:Build /p:Configuration=Debug;Platform=Win32 /m
goto out
:clean
rmdir /S/Q out\Windows_Debug
rmdir /S/Q out\Windows_Release
rmdir /S/Q out\Windows_Debug32
rmdir /S/Q out\Windows_Release32
:out