-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathbuild.bat
More file actions
executable file
·63 lines (52 loc) · 2.48 KB
/
build.bat
File metadata and controls
executable file
·63 lines (52 loc) · 2.48 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@echo off
REM
REM Copyright (c) 2016-2017 Moddable Tech, Inc.
REM
REM This file is part of the Moddable SDK Tools.
REM
REM The Moddable SDK Tools is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM
REM The Moddable SDK Tools is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
REM
REM
IF "%MODDABLE%"=="" (
echo MODDABLE environment variable not set
EXIT /B 1
)
IF NOT EXIST %MODDABLE%\xs (
echo MODDABLE environment variable is set to an incorrect path: %MODDABLE%
EXIT /B 1
)
SET BUILD_DIR=%MODDABLE%\build
SET XS_DIR=%MODDABLE%\xs
IF "%1%"=="clean" (
echo Cleaning...
rmdir /S /Q %BUILD_DIR%\tmp
rmdir /S /Q %BUILD_DIR%\bin
echo Done.
EXIT /B 0
)
@echo on
nmake GOAL=debug BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsc.mak /s
nmake GOAL=debug BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsid.mak /s
nmake GOAL=debug BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsl.mak /s
nmake GOAL=debug BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f serial2xsbug.mak /s
nmake GOAL=debug BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f tools.mak /s
nmake GOAL=release BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsc.mak /s
nmake GOAL=release BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsid.mak /s
nmake GOAL=release BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f %XS_DIR%\makefiles\win\xsl.mak /s
nmake GOAL=release BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f serial2xsbug.mak /s
nmake GOAL=release BUILD_DIR=%BUILD_DIR% XS_DIR=%XS_DIR% /c /f tools.mak /s
call %MODDABLE%\build\bin\win\debug\mcconfig -d -m -p x-win %MODDABLE%\tools\xsbug\manifest.json
call %MODDABLE%\build\bin\win\debug\mcconfig -d -m -p x-win %MODDABLE%\tools\mcsim\manifest.json
call %MODDABLE%\build\bin\win\release\mcconfig -m -p x-win %MODDABLE%\tools\xsbug\manifest.json
call %MODDABLE%\build\bin\win\release\mcconfig -m -p x-win %MODDABLE%\tools\mcsim\manifest.json