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 :graball
echo Gathering *.cpp files from echo Gathering *.cpp files from
echo %CD% echo "%CD%"
set CPP= 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% set CPP=%CPP:~1%
:embuild :embuild
@ -65,10 +65,10 @@ goto :error
echo %CPP% echo %CPP%
if exist "./assets" ( if exist "./assets" (
echo Starting Build with 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 ( ) else (
echo Starting Build without assets... 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 echo Build Completed

Loading…
Cancel
Save