-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.ninja
164 lines (119 loc) · 15.1 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# this is the build file for project swallow
# it is autogenerated by the xmake build system.
# do not edit by hand.
ninja_required_version = 1.5.1
rule gen
command = xmake project -P . -k ninja
description = regenerating ninja files
# rules for compiler
rule cc
command = /usr/bin/x86_64-w64-mingw32-gcc $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = compiling.release $in
rule cxx
command = /usr/bin/x86_64-w64-mingw32-g++ $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = compiling.release $in
rule as
command = /usr/bin/x86_64-w64-mingw32-gcc $ARGS -MMD -MF $out.d -o $out -c $in
deps = gcc
depfile = $out.d
description = compiling.release $in
rule mrc
command = /usr/bin/x86_64-w64-mingw32-windres $ARGS $in $out
description = compiling.release $in
# rules for linker
rule ar
command = /usr/bin/x86_64-w64-mingw32-ar $ARGS $out $in
description = archiving.release $out
rule ld
command = /usr/bin/x86_64-w64-mingw32-g++ -o $out $in $ARGS
description = linking.release $out
rule sh
command = /usr/bin/x86_64-w64-mingw32-g++ -o $out $in $ARGS
description = linking.release $out
# build targets
# build build.ninja
build build.ninja: gen $
xmake.lua $
base/xmake.lua $
cli/xmake.lua $
compiler/xmake.lua $
repl/xmake.lua $
compiler/xmake.lua $
compiler/xmake.lua $
repl/xmake.lua $
compiler/xmake.lua
# build target: swi
build swi: phony build/linux/x86_64/release/libswi.a
build build/linux/x86_64/release/libswi.a: ar build/.objs/swi/linux/x86_64/release/repl/main.cpp.o || $
build/linux/x86_64/release/libswc.a
ARGS = -cr
build build/.objs/swi/linux/x86_64/release/repl/main.cpp.o: cxx repl/main.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -DNDEBUG
# build target: swa
build swa: phony build/linux/x86_64/release/swa
build build/linux/x86_64/release/swa: ld build/.objs/swa/linux/x86_64/release/cli/main.cpp.o || $
build/linux/x86_64/release/libswc.a build/linux/x86_64/release/libswi.a
ARGS = -m64 -Lbuild/linux/x86_64/release -s -lswi -lswc -lpthread
build build/.objs/swa/linux/x86_64/release/cli/main.cpp.o: cxx cli/main.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -DNDEBUG
# build target: swc
build swc: phony build/linux/x86_64/release/libswc.a
build build/linux/x86_64/release/libswc.a: ar build/.objs/swc/linux/x86_64/release/compiler/compiler.cpp.o build/.objs/swc/linux/x86_64/release/compiler/ast/ast.cpp.o build/.objs/swc/linux/x86_64/release/compiler/ast/dump.cpp.o build/.objs/swc/linux/x86_64/release/compiler/ast/gmachine.cpp.o build/.objs/swc/linux/x86_64/release/compiler/ast/type.cpp.o build/.objs/swc/linux/x86_64/release/compiler/diagnostics/diagnostics.cpp.o build/.objs/swc/linux/x86_64/release/compiler/diagnostics/utils.cpp.o build/.objs/swc/linux/x86_64/release/compiler/diagnostics/reporter.cpp.o build/.objs/swc/linux/x86_64/release/compiler/gmachine/binop.cpp.o build/.objs/swc/linux/x86_64/release/compiler/gmachine/environment.cpp.o build/.objs/swc/linux/x86_64/release/compiler/gmachine/instruction.cpp.o build/.objs/swc/linux/x86_64/release/compiler/ir/context.cpp.o build/.objs/swc/linux/x86_64/release/compiler/lexer/flex_lexer.cpp.o build/.objs/swc/linux/x86_64/release/compiler/lexer/lexer.cpp.o build/.objs/swc/linux/x86_64/release/compiler/parser/bison_parser.cpp.o build/.objs/swc/linux/x86_64/release/compiler/parser/parser.cpp.o build/.objs/swc/linux/x86_64/release/compiler/runtime/node.cpp.o build/.objs/swc/linux/x86_64/release/compiler/runtime/runtime.cpp.o build/.objs/swc/linux/x86_64/release/compiler/runtime/stack.cpp.o build/.objs/swc/linux/x86_64/release/compiler/type/dump.cpp.o build/.objs/swc/linux/x86_64/release/compiler/type/environment.cpp.o build/.objs/swc/linux/x86_64/release/compiler/type/type.cpp.o
ARGS = -cr
build build/.objs/swc/linux/x86_64/release/compiler/compiler.cpp.o: cxx compiler/compiler.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/ast/ast.cpp.o: cxx compiler/ast/ast.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/ast/dump.cpp.o: cxx compiler/ast/dump.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/ast/gmachine.cpp.o: cxx compiler/ast/gmachine.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/ast/type.cpp.o: cxx compiler/ast/type.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/diagnostics/diagnostics.cpp.o: cxx compiler/diagnostics/diagnostics.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/diagnostics/utils.cpp.o: cxx compiler/diagnostics/utils.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/diagnostics/reporter.cpp.o: cxx compiler/diagnostics/reporter.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/gmachine/binop.cpp.o: cxx compiler/gmachine/binop.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/gmachine/environment.cpp.o: cxx compiler/gmachine/environment.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/gmachine/instruction.cpp.o: cxx compiler/gmachine/instruction.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/ir/context.cpp.o: cxx compiler/ir/context.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/lexer/flex_lexer.cpp.o: cxx compiler/lexer/flex_lexer.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/lexer/lexer.cpp.o: cxx compiler/lexer/lexer.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/parser/bison_parser.cpp.o: cxx compiler/parser/bison_parser.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/parser/parser.cpp.o: cxx compiler/parser/parser.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/runtime/node.cpp.o: cxx compiler/runtime/node.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/runtime/runtime.cpp.o: cxx compiler/runtime/runtime.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/runtime/stack.cpp.o: cxx compiler/runtime/stack.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/type/dump.cpp.o: cxx compiler/type/dump.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/type/environment.cpp.o: cxx compiler/type/environment.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
build build/.objs/swc/linux/x86_64/release/compiler/type/type.cpp.o: cxx compiler/type/type.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -Icompiler -isystem /home/muqiu/.xmake/packages/t/tl_optional/v1.1.0/c98c96f6367f4230ab618e8e653468c7/include -isystem /home/muqiu/.xmake/packages/t/tl_expected/v1.1.0/57774aec28a24eb8b84e9c45d2905d73/include -isystem /home/muqiu/.xmake/packages/s/spdlog/v1.14.1/6a0109080d85439d985a75b8a212f96a/include -isystem -DNDEBUG
# build target: swallow_base
build swallow_base: phony build/linux/x86_64/release/libswallow_base.a
build build/linux/x86_64/release/libswallow_base.a: ar build/.objs/swallow_base/linux/x86_64/release/base/base.cpp.o
ARGS = -cr
build build/.objs/swallow_base/linux/x86_64/release/base/base.cpp.o: cxx base/base.cpp
ARGS = -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -DNDEBUG
build default: phony swi swa swc swallow_base
build all: phony swi swa swc swallow_base
default default