diff options
Diffstat (limited to 'build_browser.sh')
-rwxr-xr-x | build_browser.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build_browser.sh b/build_browser.sh new file mode 100755 index 0000000..8e046cb --- /dev/null +++ b/build_browser.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +iraylib="thirdparty/raylib_browser/include" +include_opts="-I. -I $iraylib" + +lraylib="-L. -L thirdparty/raylib_browser/lib" +minishell="--shell-file $HOME/Documents/Personal/programming/raylib/src/minshell.html" +lib_opts="$lraylib -s USE_GLFW=3 $minishell -DPLATFORM_WEB --preload-file assets" + +src_dir="src" +src_files="$src_dir/game.c" +build_dir="build/web" +build_path="$build_dir/game.html" +emcc -Os -Wall ./thirdparty/raylib_browser/lib/libraylib.a $include_opts $src_files $lib_opts -o $build_path |