From 0cb9fa1c023033c250fd0bf33c2cee49fc85f178 Mon Sep 17 00:00:00 2001 From: talha <-> Date: Mon, 12 Aug 2024 19:39:04 +0500 Subject: Added files to git tracking --- build_browser.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build_browser.sh (limited to 'build_browser.sh') 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 -- cgit v1.2.3