mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
Update build_win.bat to handle new amalg script.
This commit is contained in:
parent
90c5d12613
commit
e2337b2ec4
@ -8,17 +8,17 @@
|
|||||||
@rem Ensure correct command prompt
|
@rem Ensure correct command prompt
|
||||||
@if not defined INCLUDE goto :BADCMD
|
@if not defined INCLUDE goto :BADCMD
|
||||||
|
|
||||||
|
@rem Set compile and link options here
|
||||||
|
@setlocal
|
||||||
|
@set JANET_COMPILE=cl /nologo /Isrc\include /c /O2 /W3 /LD /D_CRT_SECURE_NO_WARNINGS
|
||||||
|
@set JANET_LINK=link /nologo
|
||||||
|
|
||||||
@rem Sub commands
|
@rem Sub commands
|
||||||
@if "%1"=="help" goto HELP
|
@if "%1"=="help" goto HELP
|
||||||
@if "%1"=="clean" goto CLEAN
|
@if "%1"=="clean" goto CLEAN
|
||||||
@if "%1"=="test" goto TEST
|
@if "%1"=="test" goto TEST
|
||||||
@if "%1"=="dist" goto DIST
|
@if "%1"=="dist" goto DIST
|
||||||
|
|
||||||
@rem Set compile and link options here
|
|
||||||
@setlocal
|
|
||||||
@set JANET_COMPILE=cl /nologo /Isrc\include /c /O2 /W3 /LD /D_CRT_SECURE_NO_WARNINGS
|
|
||||||
@set JANET_LINK=link /nologo
|
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir build\core
|
mkdir build\core
|
||||||
mkdir build\mainclient
|
mkdir build\mainclient
|
||||||
@ -112,7 +112,14 @@ exit /b 0
|
|||||||
:DIST
|
:DIST
|
||||||
mkdir dist
|
mkdir dist
|
||||||
janet.exe tools\gendoc.janet > dist\doc.html
|
janet.exe tools\gendoc.janet > dist\doc.html
|
||||||
janet.exe tools\amalg.janet > dist\janet.c
|
|
||||||
|
@rem Gen amlag
|
||||||
|
setlocal enabledelayedexpansion
|
||||||
|
set "amalg_files="
|
||||||
|
for %%f in (src\core\*.c) do (
|
||||||
|
set "amalg_files=!amalg_files! %%f"
|
||||||
|
)
|
||||||
|
janet.exe tools\amalg.janet src\core\util.h src\core\state.h src\core\gc.h src\core\vector.h src\core\fiber.h src\core\regalloc.h src\core\compile.h src\core\emit.h src\core\symcache.h %amalg_files% build\core_image.c > dist\janet.c
|
||||||
copy janet.exe dist\janet.exe
|
copy janet.exe dist\janet.exe
|
||||||
copy LICENSE dist\LICENSE
|
copy LICENSE dist\LICENSE
|
||||||
copy README.md dist\README.md
|
copy README.md dist\README.md
|
||||||
|
Loading…
Reference in New Issue
Block a user