- Clone the repository to your project or add it as a submodule.
$ git clone https://github.com/spitulax/build.odin --depth 1 shared/build.odin- Create a build script.
build.odin:
package build
import b "shared/build.odin"
import "core:log"
start :: proc() -> (ok: bool) {
log.info("Hello, World!")
return true
}
main :: proc() {
b.start(start)
}- Run the build script.
$ odin build build.odin -file && ./build