First commit of the basic game ready to work on.

This commit is contained in:
Zed A. Shaw 2025-05-16 11:06:16 -04:00
parent 801a05d1ab
commit a68cce5cbb
41 changed files with 1815 additions and 0 deletions

49
Makefile Normal file
View file

@ -0,0 +1,49 @@
all: build
reset:
ifeq '$(OS)' 'Windows_NT'
powershell -executionpolicy bypass .\scripts\reset_build.ps1
else
sh -x ./scripts/reset_build.sh
endif
build:
meson compile -j 10 -C builddir
release_build:
meson --wipe builddir -Db_ndebug=true --buildtype release
meson compile -j 10 -C builddir
debug_build:
meson setup --wipe builddir -Db_ndebug=true --buildtype debugoptimized
meson compile -j 10 -C builddir
tracy_build:
meson setup --wipe builddir --buildtype debugoptimized -Dtracy_enable=true -Dtracy:on_demand=true
meson compile -j 10 -C builddir
run: build
ifeq '$(OS)' 'Windows_NT'
powershell "cp ./builddir/clicker.exe ."
./clicker
else
./builddir/clicker
endif
debug: build
gdb --nx -x .gdbinit --ex run --args builddir/clicker
debug_run: build
gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/clicker
clean:
meson compile --clean -C builddir
debug_test: build
gdb --nx -x .gdbinit --ex run --args builddir/runtests -e
win_installer:
powershell 'start "C:\Program Files (x86)\solicus\InstallForge\bin\ifbuilderenvx86.exe" scripts\win_installer.ifp'
coverage_report:
powershell 'scripts/coverage_report.ps1'