pull/220/merge
Swicegood 3 years ago committed by GitHub
commit 2d6675fc6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      WASM/pge2wasm.bat

@ -55,9 +55,9 @@ goto :error
:graball
echo Gathering *.cpp files from
echo %CD%
echo "%CD%"
set CPP=
for %%x in (%CD%\*.cpp) do set CPP=!CPP! %%x
for %%x in ("%CD%"\*.cpp) do set CPP=!CPP! %%x
set CPP=%CPP:~1%
:embuild
@ -65,10 +65,10 @@ goto :error
echo %CPP%
if exist "./assets" (
echo Starting Build with assets...
call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 %CPP% -o .\WASM\pge.html -I %OLCPGE% --preload-file .\assets
call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 "%CPP%" -o .\WASM\pge.html -I %OLCPGE% --preload-file .\assets
) else (
echo Starting Build without assets...
call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 %CPP% -o .\WASM\pge.html -I %OLCPGE%
call em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 "%CPP%" -o .\WASM\pge.html -I %OLCPGE%
)
echo Build Completed

Loading…
Cancel
Save