-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,744 changed files
with
1,837 additions
and
1,199,454 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "compiler/BlitzForge"] | ||
path = compiler/BlitzForge | ||
url = https://github.com/RydeTec/blitz-forge.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,117 @@ | ||
@echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
set TOOLCHAIN=0 | ||
set RCCETOOLS=1 | ||
set RCCE=1 | ||
set PLUS=0 | ||
|
||
set ROOTDIR=%CD% | ||
|
||
cd %ROOTDIR%\src | ||
:parse_args | ||
if "%1"=="" goto end_args | ||
if "%1"=="-b" ( | ||
set TOOLCHAIN=1 | ||
) else if "%1"=="--blitz" ( | ||
set TOOLCHAIN=1 | ||
) else if "%1"=="-p" ( | ||
set PLUS=1 | ||
) else if "%1"=="--plus" ( | ||
set PLUS=1 | ||
) else if "%1"=="-t" ( | ||
set RCCETOOLS=0 | ||
) else if "%1"=="--skip-tools" ( | ||
set RCCETOOLS=0 | ||
) else if "%1"=="-h" ( | ||
goto help_text | ||
) else if "%1"=="--help" ( | ||
goto help_text | ||
) else if "%1"=="-e" ( | ||
set RCCE=0 | ||
) else if "%1"=="--skip-engine" ( | ||
set RCCE=0 | ||
) else ( | ||
echo Unknown flag: %1 | ||
endlocal | ||
exit /b 1 | ||
) | ||
shift | ||
goto parse_args | ||
|
||
:help_text | ||
echo RCCE2 Compiler Script | ||
echo. | ||
echo -t ^| --skip-tools Skip compilation of the RCCE2 tool applications in \src\tools | ||
echo -b ^| --blitz Compile the BlitzForge toolchain | ||
echo -p ^| --plus Compile the BlitzRCPlus toolchain | ||
echo -e ^| --skip-engine Skip compilation of the RCCE2 engine itself in \src | ||
endlocal | ||
exit /b | ||
|
||
:end_args | ||
|
||
if %TOOLCHAIN%==1 ( | ||
echo Compiling BlitzForge Toolchain... | ||
call %ROOTDIR%\scripts\submodules_init.bat | ||
call %ROOTDIR%\compiler\BlitzForge\scripts\msbuild_init.bat | ||
|
||
cd %ROOTDIR% | ||
|
||
call %ROOTDIR%\compiler\BlitzForge\scripts\msbuild_blitzforge.bat | ||
) | ||
|
||
if %PLUS%==1 ( | ||
echo Compiling BlitzRCPlus Toolchain... | ||
call %ROOTDIR%\scripts\msbuild_init.bat | ||
|
||
set BLITZPATH=%ROOTDIR%\compiler\BlitzPlus | ||
cd %ROOTDIR% | ||
|
||
"%BLITZPATH%\bin\blitzcc.exe" -o "%ROOTDIR%\bin\Server.exe" "%ROOTDIR%\src\Server.bb" | ||
call %ROOTDIR%\scripts\msbuild_blitzrcplus.bat | ||
) | ||
|
||
if %RCCE%==1 ( | ||
IF NOT EXIST "%ROOTDIR%\compiler\BlitzForge\bin\blitzcc.exe" ( | ||
echo "%ROOTDIR%\compiler\BlitzForge\bin\blitzcc.exe not found!" | ||
echo "Compile source or download binaries from https://github.com/RydeTec/blitz-forge/releases" | ||
exit 1; | ||
) | ||
|
||
echo Compiling RealmCrafter CE Engine... | ||
|
||
cd %ROOTDIR%\src | ||
|
||
set BLITZPATH=%ROOTDIR%\compiler\BlitzPlus | ||
|
||
"!BLITZPATH!\bin\blitzcc.exe" -o "%ROOTDIR%\bin\Server.exe" "%ROOTDIR%\src\Server.bb" | ||
|
||
set BLITZPATH=%ROOTDIR%\compiler\BlitzForge | ||
|
||
"!BLITZPATH!\bin\blitzcc.exe" -o "%ROOTDIR%\Project Manager.exe" -n "%ROOTDIR%\res\Icon.ico" "%ROOTDIR%\src\Project Manager.bb" | ||
"!BLITZPATH!\bin\blitzcc.exe" -o "%ROOTDIR%\bin\GUE.exe" -n "%ROOTDIR%\res\Icon.ico" "%ROOTDIR%\src\GUE.bb" | ||
"!BLITZPATH!\bin\blitzcc.exe" -o "%ROOTDIR%\bin\Client.exe" -n "%ROOTDIR%\res\Icon.ico" "%ROOTDIR%\src\Client.bb" | ||
) | ||
|
||
set BLITZPATH=%ROOTDIR%\compiler\BlitzRC | ||
if %RCCETOOLS%==1 ( | ||
IF NOT EXIST "%ROOTDIR%\compiler\BlitzForge\bin\blitzcc.exe" ( | ||
echo "%ROOTDIR%\compiler\BlitzForge\bin\blitzcc.exe not found!" | ||
echo "Compile source or download binaries from https://github.com/RydeTec/blitz-forge/releases" | ||
exit 1; | ||
) | ||
|
||
echo Compiling RealmCrafter CE Tools... | ||
|
||
"%BLITZPATH%\bin\blitzcc.exe" -o "%ROOTDIR%\Project Manager.exe" "%ROOTDIR%\src\Project Manager.bb" | ||
"%BLITZPATH%\bin\blitzcc.exe" -o "%ROOTDIR%\bin\GUE.exe" "%ROOTDIR%\src\GUE.bb" | ||
"%BLITZPATH%\bin\blitzcc.exe" -o "%ROOTDIR%\bin\Client.exe" "%ROOTDIR%\src\Client.bb" | ||
if not exist "%ROOTDIR%\bin\tools" ( | ||
mkdir "%ROOTDIR%\bin\tools" | ||
) | ||
|
||
if not exist "%ROOTDIR%\bin\tools" mkdir "%ROOTDIR%\bin\tools" | ||
cd %ROOTDIR%\src\tools | ||
|
||
cd %ROOTDIR%\src\tools | ||
set "BLITZPATH=%ROOTDIR%\compiler\BlitzForge" | ||
|
||
for %%f in (*.bb) do ( | ||
"%BLITZPATH%\bin\blitzcc.exe" -o "%ROOTDIR%\bin\tools\%%~nf.exe" "%ROOTDIR%\src\tools\%%~nf.bb" | ||
for %%f in (*.bb) do ( | ||
"!BLITZPATH!\bin\blitzcc.exe" -o "%ROOTDIR%\bin\tools\%%~nf.exe" -n "%ROOTDIR%\res\Icon.ico" -w "%ROOTDIR%\src" "%ROOTDIR%\src\tools\%%~nf.bb" | ||
) | ||
) | ||
|
||
cd %ROOTDIR% | ||
endlocal |
Submodule BlitzForge
added at
f4f49b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.