58 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| all: build test
 | |
| 
 | |
| reset:
 | |
| ifeq '$(OS)' 'Windows_NT'
 | |
| 	powershell -executionpolicy bypass .\scripts\reset_build.ps1
 | |
| else
 | |
| 	sh -x ./scripts/reset_build.sh
 | |
| endif
 | |
| 
 | |
| %.cpp : %.rl
 | |
| 	ragel -o $@ $<
 | |
| 
 | |
| build: src/guecs/lel_parser.cpp
 | |
| 	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
 | |
| 
 | |
| test: build
 | |
| 	./builddir/runtests
 | |
| 
 | |
| run: build test
 | |
| ifeq '$(OS)' 'Windows_NT'
 | |
| 	powershell "cp ./builddir/clicker_game.exe ."
 | |
| 	./clicker_game
 | |
| else
 | |
| 	./builddir/clicker_game
 | |
| endif
 | |
| 
 | |
| debug: build
 | |
| 	gdb --nx -x .gdbinit --ex run --args builddir/clicker_game
 | |
| 
 | |
| debug_run: build
 | |
| 	gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/clicker_game
 | |
| 
 | |
| debug_walk: build test
 | |
| 	gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/clicker_game t
 | |
| 
 | |
| 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'
 | 
