generated from FourteenBrush/odin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.odin
39 lines (32 loc) · 1.28 KB
/
build.odin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package build
import "core:mem"
import "dependencies/loom"
main :: proc() {
build := loom.define_build(context.allocator)
defer loom.build(build)
// ensure no implicit allocations occur which use the contexts allocator
context.allocator = mem.panic_allocator()
build_config, build_step := loom.add_build_step(&build)
build_config.src_path = "dependencies/reader/src"
build_config.out_filepath = "out/reader"
build_config.print_odin_invocation = true
build_config.flags += {.ShowSystemCalls}
loom.step_depends_on(&build.root_step, build_step)
/*
loom.add_git_submodule("reader", "https://github.com/FourteenBrush/Classreader.git", {
//branch = "stable",
commit = "d8ea24a3f401a62151a42dd0889e406636a8e9f4",
})
*/
//loom.add_code_source("back", "dependencies/back")
// define a dependency, and where to obtain it from
//back := loom.dependency("duck")
// duck defines its source in src/, however we want to hook a different
// directory as the collection root
//loom.add_code_source("back", "dependencies/back")
//loom.add_dependency(&build, {"back", "https://github.com/laytan/back.git"})
//loom.odin_invocation(&{})
//}
//loom.add_dependency(&build, {"back", "https://github.com/laytan/back.git"})
//loom.odin_invocation(&{})
}