o
odinpkg.dev
packages / binding / first.odin

first.odin

v0.0.1binding

thin build wrapper

No license · updated 1 month ago

first.odin

Thin wrapper on top of odin's build system with inspiration taken from nob.h and jai's first.jai *in spirit.

I have never used jai, just from what I could piece from online

This is more of a template for my usecase, meant to live with your codebase. Since its just the language, it can take advantage of the entire language.

I have no idea how any of this will work on windows so, have that in mind

Usage

  1. Copy first/ into your project (preferebly at the root or not, its yours now)
.
├── first
│   └── main.odin
└── your_code.odin
...
  1. Build it once
$ odin build first/ -out:first.bin
  1. From now on just run
$ ./first.bin

It will rebuild itself if you change the source using Go Rebuild Urself™ Technology *borrowed from nob

Example:

https://github.com/musaubrian/smp

[Demo]

first_demo.mp4