Initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
# editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*.sh text eol=lf
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Files
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
/hello-world
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
|
||||||
|
*.dSYM/
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PROJECT="hello-world"
|
||||||
|
VERSION="dev-$(date -u '+%Y-%m-%d')-$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
if [[ $1 == "debug" ]]
|
||||||
|
then
|
||||||
|
shift
|
||||||
|
|
||||||
|
odin build src/ -show-timings -collection:src=src -out:$PROJECT -microarch:native -use-separate-modules -define:VERSION=$VERSION-debug -debug $@
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
odin build src/ -show-timings -collection:src=src -out:$PROJECT -microarch:native -o:speed -define:VERSION=$VERSION $@
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/odinfmt.schema.json",
|
||||||
|
"character_width": 80,
|
||||||
|
"tabs": true,
|
||||||
|
"tabs_width": 4
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
|
|
||||||
|
VERSION :: #config(VERSION, "dev")
|
||||||
|
|
||||||
|
main :: proc() {
|
||||||
|
fmt.println("Hellope!")
|
||||||
|
fmt.println(VERSION)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user