.
This commit is contained in:
parent
d1a047b2a3
commit
72ea210de8
1 changed files with 4 additions and 1 deletions
5
justfile
5
justfile
|
|
@ -27,11 +27,14 @@ blocks_include := if os() == "macos" { "" } else { "-I" + blocks_dir / "BlocksRu
|
||||||
blocks_src := if os() == "macos" { "" } else { blocks_dir / "BlocksRuntime" / "runtime.c" + " " + blocks_dir / "BlocksRuntime" / "data.c" }
|
blocks_src := if os() == "macos" { "" } else { blocks_dir / "BlocksRuntime" / "runtime.c" + " " + blocks_dir / "BlocksRuntime" / "data.c" }
|
||||||
|
|
||||||
# cflags
|
# cflags
|
||||||
|
winflags := if os() == "windows" { "" } else { "" }
|
||||||
macflags := if os() == "macos" { "-x objective-c -lobjc -framework Foundation -framework Cocoa -framework CoreFoundation -framework CoreGraphics -framework QuartzCore -framework Metal -framework MetalKit"} else { "" }
|
macflags := if os() == "macos" { "-x objective-c -lobjc -framework Foundation -framework Cocoa -framework CoreFoundation -framework CoreGraphics -framework QuartzCore -framework Metal -framework MetalKit"} else { "" }
|
||||||
|
lnxflags := if os() == "linux" { "" } else { "" }
|
||||||
|
allflags := macflags + winflags + lnxflags
|
||||||
|
|
||||||
csrc := "src/main.c" + " " + blocks_src
|
csrc := "src/main.c" + " " + blocks_src
|
||||||
cinc := "-Isrc -Ithirdparty " + blocks_include
|
cinc := "-Isrc -Ithirdparty " + blocks_include
|
||||||
cflags := "-std=c23 -fblocks -g " + macflags + " " + cinc
|
cflags := "-std=c23 -fblocks -g " + allflags + " " + cinc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue