a handy-dandy builder script tool for odin!
|
movva
21ec07f157
Signed-off-by: movva <disruptivemovva@disroot.org> |
||
|---|---|---|
| colours.odin | (◕‿◕✿) more colour helpers, more fs helpers, go_rebuild_urself stolen from nob.h ;) | |
| dandy.odin | mend | |
| exec.odin | (◕‿◕✿) more colour helpers, more fs helpers, go_rebuild_urself stolen from nob.h ;) | |
| fs.odin | (◕‿◕✿) more colour helpers, more fs helpers, go_rebuild_urself stolen from nob.h ;) | |
| git.odin | (◕‿◕✿) more git commands! better logging >:3 | |
| LICENSE | (◕‿◕✿) initial commit! | |
| log.odin | (◕‿◕✿) allows to disable log padding | |
| README.md | (◕‿◕✿) initial commit! | |
| script.odin | (◕‿◕✿) more colour helpers, more fs helpers, go_rebuild_urself stolen from nob.h ;) | |
dandy - a handy-dandy builder script tool for odin
i like the idea of Tsoding's NoBuild idea with nob.h, so I made one for Odin!
no need for the Go Rebuild UrselfTM Technology as the odin run command is a thing!
example:
// build.odin
packagebuildimport"dandy"SRC::"./src/"BUILD::"./build/"BINARY::"my-wonderful-project"script::proc()->bool{dandy.mkdir_if_not_exists(BUILD)or_returnreturndandy.exec_sync("odin","build","-out:"+BUILD+BINARY,SRC)}// `script_main` will free the default allocators by itself so you're free to go! :>
main::proc(){dandy.script_main(script)}$ odin run build.odin -file
and you're set! (◕‿◕✿)