raiguard/tcom
git clone https://git.raiguard.me/raiguard/tcom
0071db6
trunk
1exe_name := "tcom" 2version := shell ( "./scripts/generate_version.sh" ) 3 4common_flags := '-error-pos-style:unix -collection:tcom=src -disallow-do -show-timings -define:VERSION=' + version 5 6alias b := build 7alias c := check 8alias d := debug 9alias r := run 10alias br := build-run 11 12[ arg( 'profile' , pattern= '(debug|fastdebug|release)' )] 13build profile = 'debug' * custom_flags : 14odin build src \ 15-out: {{ exe_name }} {{ common_flags }} {{ 16if profile == 'debug' { '-debug' } 17else if profile == 'fastdebug' { '-debug -o:speed' } 18else if profile == 'release' { '-o:speed' } 19else { '' } 20}} \ 21{{ custom_flags }} 22 23check * custom_flags : 24odin check src-debug {{ common_flags }} {{ custom_flags }} 25 26debug * args : 27raddbg ./{{ exe_name }} {{ args }} 28 29run * args = '' : 30./ {{ exe_name }} {{ args }} 31 32test * args = '' : 33odin test src{{ common_flags }} -debug {{ args }} 34 35build-run : build run