Browse Source

Got cakelisp and gamelib building on Windows

windows
Macoy Madson 1 year ago
parent
commit
77490c9b40
  1. 27
      Build.bat
  2. 2
      Dependencies/cakelisp
  3. 2
      Dependencies/gamelib

27
Build.bat

@ -1,25 +1,28 @@
echo off
rem TODO: Use Build.bat in cakelisp instead of copy-pasting
cd Dependencies/cakelisp
if not exist "bin" (
mkdir bin
)
rem TODO: Use Build.bat in cakelisp instead of copy-pasting
cd Dependencies/cakelisp
rem Set environment variables. The user may need to adjust this path
rem See https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160#developer_command_file_locations
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
) else (
echo This script builds using MSVC.
echo You must download and install MSVC before it will work. Download it here:
echo https://visualstudio.microsoft.com/downloads/
echo Select workloads for C++ projects. Ensure you install the C++ developer tools.
echo If you're still seeing this, you may need to edit Build.bat to your vcvars path
echo Please see the following link:
echo https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160
goto fail
)
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" (
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
) else (
echo This script builds using MSVC.
echo You must download and install MSVC before it will work. Download it here:
echo https://visualstudio.microsoft.com/downloads/
echo Select workloads for C++ projects. Ensure you install the C++ developer tools.
echo If you're still seeing this, you may need to edit Build.bat to your vcvars path
echo Please see the following link:
echo https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160
goto fail
))
if not exist "bin\cakelisp_bootstrap.exe" (
goto manualBuild
@ -44,7 +47,7 @@ CL.exe src/Tokenizer.cpp ^
src/Build.cpp ^
src/Main.cpp ^
/EHsc /MP /DWINDOWS /DCAKELISP_EXPORTING ^
/Fe"bin\cakelisp_bootstrap" /Zi /Fd"bin\cakelisp_bootstrap.pdb" /DEBUG:FASTLINK
/FS /Fe"bin\cakelisp_bootstrap" /Zi /Fd"bin\cakelisp_bootstrap.pdb" /DEBUG:FASTLINK
echo %ERRORLEVEL%
@if %ERRORLEVEL% == 0 (

2
Dependencies/cakelisp

@ -1 +1 @@
Subproject commit 908b91b667cb1c3509139b8b7b430e30d3b562c9
Subproject commit e1f8af06bf39b58f25cdd9a8c555fbe36401a022

2
Dependencies/gamelib

@ -1 +1 @@
Subproject commit 10e3cdb6bf9c840882c7afda6c3fda68b08816f4
Subproject commit 7d94d90307821f16c63c6ee28f5c8a68ab142421
Loading…
Cancel
Save