summaryrefslogtreecommitdiff
path: root/build_desktop.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_desktop.sh
Added files to git tracking
Diffstat (limited to 'build_desktop.sh')
-rwxr-xr-xbuild_desktop.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build_desktop.sh b/build_desktop.sh
new file mode 100755
index 0000000..d74c086
--- /dev/null
+++ b/build_desktop.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+iraylib="thirdparty/raylib_desktop/include"
+include_opts="-I $iraylib"
+
+lraylib="-L thirdparty/raylib_desktop/lib -lraylib"
+lib_opts="$lraylib -lGL -lm -lpthread -ldl -lrt -lX11"
+
+src_dir="src"
+src_files="$src_dir/game.c"
+build_dir="build/desktop"
+build_path="$build_dir/game.out"
+cc -g -O0 $include_opts $src_files $lib_opts -o $build_path