diff options
| author | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
|---|---|---|
| committer | talha <talha@talhaamir.xyz> | 2025-11-27 13:18:57 +0500 |
| commit | 0b3d69976819219e71350b6a988d1704fd5f0746 (patch) | |
| tree | 3511564cb2cb3b10697dc997260479a14540d706 /build.sh | |
Current State:
- hot reloading
- math library (calcify)
- triangle rendering (unbatched)
- orthographic projection (no camera)
- layer isolation setup (platform vs game)
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..b42bcbd --- /dev/null +++ b/build.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +build_mode="debug" # temporary for now + +build_path="build" +mkdir -p $build_path + +include_path=include +include_opts="-I $include_path" + +build_opts="-g -O0 -rdynamic" +files="source/sdlmain.cpp" +link_opts="-L libs/SDL2 -lSDL2" + +build_command="g++ $build_opts $include_opts $files $link_opts -o $build_path/main" + + +printf "Building your sdl2 project.\n\nThis is the build command for posteritys' sake:\n\n" +printf "$build_command\n\n" +$build_command +printf "Build Complete!\n" + +sh build_game.sh |
