From 8bdf2825f3a61ae48dd9c528737ccf68ec70d970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sun, 27 Sep 2020 01:24:41 +0200 Subject: [PATCH] Update build script --- make.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/make.sh b/make.sh index e7a8840..d63ec6e 100755 --- a/make.sh +++ b/make.sh @@ -4,7 +4,7 @@ #!/bin/bash if [ $# -ne 1 ]; then - echo "need a parameter (sdl, pokitto, gb, ...)" + echo "need a parameter (sdl, pokitto, gb, emscripten, ...)" exit 0 fi @@ -13,6 +13,7 @@ clear; clear; if [ $1 == "sdl" ]; then # PC SDL build, requires: + # - g++ # - SDL2 (dev) package g++ -x c -g -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra \ @@ -30,6 +31,12 @@ elif [ $1 == "pokitto" ]; then make ./PokittoEmu BUILD/firmware.bin +elif [ $1 == "emscripten" ]; then + + # emscripten (browser Javascript) build, requires: + # - emscripten + + emcc ./main_sdl.c -s USE_SDL=2 -O3 -lopenal --shell-file HTMLshell.html -o game.html else echo "unknown parameter: $1" fi