-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ninja
49 lines (35 loc) · 976 Bytes
/
build.ninja
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
40
41
42
43
44
45
46
47
48
49
include ninja/build.llvm.ninja
platform = unix
ld = $cxx $cxxstdlib $cxxld
opt = 1
cflags = -std=c2x -I/opt/homebrew/include
cxxflags = $cxxstdlib -std=c++2b -Wno-nullability-completeness -I/opt/homebrew/include
glslc = glslc
glslflags =
debug =
debugc =
debugcxx =
libs =
owlprefix = owl
owl = vendor/owl/owl
python = python3
rule cc
command = $cc -c $in -o $out $cflags $cflags2 -O$opt $debug $debugc -MD -MF $out.d
depfile = $out.d
rule cxx
command = $cxx -c $in -o $out $cxxflags $cxxflags2 -O$opt $debug $debugcxx -MD -MF $out.d
depfile = $out.d
rule glslc
command = $glslc $in -o $out $glslflags -O $debug -MD -MF $out.d
depfile = $out.d
rule ld
command = $ld $in -o $out $libs $ldflags $ldflags2 $debugc
rule owl
command = $owl -c $in -p $owlprefix -o $out
rule python
command = $python $in $out
import-modname = giraffe
import-extern-root = giraffe
subninja ninja/import-extern.ninja
import-modname = pshine
subninja ninja/import.ninja