You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
615 B
Batchfile
20 lines
615 B
Batchfile
2 years ago
|
call run_codegen.bat || goto :error
|
||
|
|
||
|
copy marketing_page\favicon.ico %OUTPUT_FOLDER%\favicon.ico
|
||
|
copy main.c %OUTPUT_FOLDER%\main.c || goto :error
|
||
|
|
||
|
@echo on
|
||
|
emcc ^
|
||
|
-sEXPORTED_FUNCTIONS=_main,_end_text_input,_stop_controlling_input,_start_controlling_input,_read_from_save_data,_dump_save_data,_is_receiving_text_input^
|
||
|
-sEXPORTED_RUNTIME_METHODS=ccall,cwrap^
|
||
|
-s ALLOW_MEMORY_GROWTH -s TOTAL_STACK=5242880^
|
||
|
%FLAGS%^
|
||
|
-Ithirdparty -Igen main.c -o %OUTPUT_FOLDER%\index.html --preload-file assets --shell-file web_template.html || goto :error
|
||
|
@echo off
|
||
|
|
||
|
goto :EOF
|
||
|
|
||
|
:error
|
||
|
echo Failed to build
|
||
|
exit /B %ERRORLEVEL%
|