-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathserapeum.asd
182 lines (179 loc) · 6.77 KB
/
serapeum.asd
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
;;;; serapeum.asd
(defsystem "serapeum"
:description "Utilities beyond Alexandria."
:author "Paul M. Rodriguez <[email protected]>"
:license "MIT"
:in-order-to ((test-op (test-op "serapeum/tests")))
:depends-on (;; Support for extensible sequences on Lisps that
;; provide it.
(:feature :abcl (:require :extensible-sequences))
;; Existing utilities Serapeum builds on.
"alexandria"
"trivia"
"split-sequence"
"string-case"
"parse-number"
;;; Portability libraries.
"trivial-garbage"
"bordeaux-threads"
"parse-declarations-1.0"
"introspect-environment"
"trivial-cltl2"
"global-vars"
"trivial-file-size"
"trivial-macroexpand-all")
:serial t
:components ((:file "package")
;; The basics: these files can use CL and Alexandria.
(:file "portability") ;Anything not worth using a portability layer for.
(:file "macro-tools") ;Very early.
(:module "level0"
:serial nil
:pathname ""
:components
((:file "types")
(:file "definitions"
:depends-on ("iter" "defining-types"))
(:file "defining-types"
:depends-on ("iter"))
(:file "binding")
(:file "control-flow"
:depends-on ("definitions"))
(:file "threads")
(:file "iter")
(:file "conditions")
(:file "op")
(:file "functions"
:depends-on ("types" "iter"))
(:file "trees")
(:file "hash-tables"
:depends-on ("iter" "types" "control-flow" "binding"))
(:file "files"
:depends-on ("types"))
(:file "symbols")
(:file "arrays")
(:file "queue"
:depends-on ("types"))
(:file "box"
:depends-on ("types" "definitions"))
(:file "numbers"
:depends-on ("types" "op"))
(:file "octets"
:depends-on ("types"))
(:file "time")
(:file "clos"
:depends-on ("binding" "types"))
(:file "hooks"
:depends-on ("threads"))
(:file "fbind"
:depends-on ("binding" "control-flow" "op" "iter" "trees"))
(:file "static-let"
:depends-on ("fbind"))
(:file "reader"
:depends-on ("definitions"))
(:file "packages")
(:file "heap"
:depends-on ("types" "fbind"))))
;; Level 1 files can use CL, Alexandria, and any
;; Serapeum utilities defined at level 0. Intended for
;; functions on sequences.
(:module "level1"
:pathname ""
:serial nil
:components
((:file "lists")
(:file "sequences" :depends-on ("lists"))
(:file "strings" :depends-on ("sequences"))
(:file "vectors" :depends-on ("lists"))))
;; Level 2 files can use CL, Alexandria, and the rest
;; of Serapeum. Anything at this level could, in
;; principle, be its own separate library that depends
;; on Serapeum.
(:module "level2"
:pathname ""
:serial nil
:components
((:file "exporting")
(:file "vector=")
(:file "mop")
(:file "internal-definitions")
(:file "tree-case")
(:file "dispatch-case")
(:file "range" :depends-on ("dispatch-case"))
(:file "generalized-arrays" :depends-on ("range"))
(:file "units")))
(:module "contrib"
:components
((:file "hooks")))))
(defsystem "serapeum/tests"
:description "Test suite for Serapeum."
:author "Paul M. Rodriguez <[email protected]>"
:license "MIT"
:depends-on ("serapeum"
"fiveam"
"local-time"
"trivial-macroexpand-all"
(:feature
(:or :allegro :ccl :clasp :ecl :lispworks :mezzano :sbcl)
"atomics"))
:perform (test-op (o c) (symbol-call :serapeum.tests :run-tests))
:pathname "tests/"
:serial t
:components ((:file "package")
(:file "tests"
:depends-on ("package"))
(:module "test suites"
:pathname ""
:serial nil
:components
((:file "portability")
(:file "macro-tools")
(:file "types")
(:file "definitions")
(:file "defining-types-aux"
:if-feature (:not :abcl))
(:file "defining-types"
:if-feature (:not :abcl)
:depends-on ("defining-types-aux"))
(:file "internal-definitions")
(:file "binding")
(:file "control-flow")
(:file "threads")
(:file "iteration")
(:file "conditions")
(:file "op")
(:file "functions")
(:file "trees")
(:file "hash-tables")
(:file "files")
(:file "symbols")
(:file "arrays")
(:file "queue")
(:file "box")
(:file "vectors")
(:file "vector=")
(:file "numbers")
(:file "octets")
(:file "time")
(:file "clos")
(:file "mop")
(:file "hooks")
(:file "fbind")
(:file "static-let")
(:file "lists")
(:file "strings")
(:file "sequences")
(:file "tree-case")
(:file "dispatch-case")
(:file "range")
(:file "generalized-arrays")
(:file "units")
(:module "contrib"
:components ((:file "hooks")))))))
(defsystem "serapeum/docs"
:description "Serapeum's documentation generator."
:author "Paul M. Rodriguez <[email protected]>"
:license "MIT"
:depends-on ("serapeum" "cl-ppcre" "swank")
:serial t
:components ((:file "docs")))