diff options
author | talha <sarcxd@gmail.com> | 2024-10-08 21:15:38 +0500 |
---|---|---|
committer | talha <sarcxd@gmail.com> | 2024-10-08 21:15:38 +0500 |
commit | 7c0ca92da0d2d0fd7e7f4da957ef7d1ea9f15e41 (patch) | |
tree | c5db10f770781a2a7bff76ef9330de4779416eb6 /build.sh |
Saving draft, added collision detection so far
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f7cc7fa --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +build_mode="debug" # temporary for now + +build_dir="build" +mkdir -p $build_dir + +include_path=include +include_opts="-I $include_path" + +files="source/main.cpp $include_path/glad/glad.c" +build_opts="$build_dir/main" + +lib_path="libs/SDL2 libs/freetype/libfreetype.so" +link_opts="-L $lib_path -lSDL2" + +build_command="clang++ -std=c++11 -g -O0 $include_opts $files $link_opts -o $build_opts" + +printf "Building Project...\n" +printf "$build_command\n\n" +$build_command +printf "\nBuild Complete!\n\n" |