summaryrefslogtreecommitdiff
path: root/build_browser.sh
diff options
context:
space:
mode:
authortalha <->2024-08-12 19:39:04 +0500
committertalha <->2024-08-12 19:39:04 +0500
commit0cb9fa1c023033c250fd0bf33c2cee49fc85f178 (patch)
tree73a5e945c55998b9dc7acb0eba5a5f40c8252ee6 /build_browser.sh
Added files to git tracking
Diffstat (limited to 'build_browser.sh')
-rwxr-xr-xbuild_browser.sh14
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