-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.pscm
151 lines (127 loc) · 4.05 KB
/
build.pscm
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
(cpp_library
(name "fmt")
(srcs "3rd/fmt.cppm")
(includes "3rd/fmt/include")
(copts "-I3rd/fmt/src" "-std=c++20"))
(cpp_library
(name "std")
(srcs "3rd/std.cppm")
(copts "-std=c++20"))
(cpp_library
(name "subprocess")
(srcs "3rd/subprocess.cppm"
(glob "3rd/subprocess/src/cpp/subprocess/*.cpp"))
(includes "3rd/subprocess/src/cpp")
(copts "-std=c++20"))
(cpp_library
(name "glob")
(srcs "3rd/glob.cppm" "3rd/glob/source/glob.cpp")
(includes "3rd/glob/include")
(copts "-std=c++20"))
(cpp_library
(name "linenoise")
(srcs "3rd/linenoise.cppm")
(includes "3rd/cpp-linenoise")
(copts "-std=c++20"))
(cpp_library
(name "pscm")
(srcs
(glob "src/icu/*.cpp" "src/logger/*.cpp" "src/misc/*.cpp" "src/*.cpp" "src/**/*.cppm")
"build/generate/src/version.cpp"
)
(hdrs
(glob "include/**/*.h"))
(includes "include" "3rd/UniversalStacktrace" "3rd/cpp-linenoise" "/usr/local/opt/icu4c/include" "3rd/mscharconv/include/msstl" "3rd/mscharconv/include")
(defines "PSCM_USE_CXX20_MODULES")
(copts "-std=c++20" "-I" "build/generate")
(deps ":fmt" ":std" ":glob" ":subprocess" ":linenoise"))
(cpp_binary
(name "pscm-main")
(srcs "main.cpp")
(copts "-std=c++20")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(deps ":pscm"))
(cpp_library
(name "doctest")
(hdrs "3rd/doctest/doctest/doctest.h")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(includes "3rd/doctest"))
(cpp_test
(name "apply_test")
(srcs "test/apply_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "cond_test")
(srcs "test/cond_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "map_test")
(srcs "test/map_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "do_test")
(srcs "test/do_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "number_test")
(srcs "test/number_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "callcc_test")
(srcs "test/callcc_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "for_each_test")
(srcs "test/for_each_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "parser_test")
(srcs "test/parser_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "cell_test")
(srcs "test/cell_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "list_test")
(srcs "test/list_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "port_test")
(srcs "test/port_tests.cpp")
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "r4rs_test")
(srcs (glob "test/r4rs/*.cpp"))
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))
(cpp_test
(name "sicp_test")
(srcs
(glob "test/sicp/*.cpp"))
(deps ":pscm" ":doctest")
(linkopts "-L/usr/local/opt/icu4c/lib" "-licudata" "-licui18n" "-licuuc" "-licuio")
(copts "-std=c++20"))