forked from atlas-engineer/nyxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nyxt.asd
268 lines (248 loc) · 8.87 KB
/
nyxt.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
(asdf:defsystem :nyxt
:version "2" ; Pre-release 1
:author "Atlas Engineer LLC"
:license "BSD 3-Clause"
:serial t
:depends-on (:alexandria
:bordeaux-threads
:cl-css
:cl-json
:cl-markup
:cl-ppcre
:cl-ppcre-unicode
:cl-prevalence
:closer-mop
:cl-containers
:moptilities
:dexador
:enchant
:iolib
:local-time
:log4cl
:lparallel
:mk-string-metrics
#-darwin
:osicat
:parenscript
:quri
:serapeum
:str
:plump
:swank
:trivia
:trivial-clipboard
:trivial-features
:trivial-package-local-nicknames
:trivial-types
:unix-opts
;; Local systems:
:nyxt/text-buffer
:nyxt/text-analysis
:nyxt/download-manager
:nyxt/history-tree
:nyxt/password-manager
:nyxt/hooks
:nyxt/keymap)
:pathname "source/"
:components ((:file "package")
;; Independent utilities
(:file "tags")
(:file "time")
(:file "types")
(:file "conditions")
;; Core functionality
(:file "global")
(:file "data-storage")
(:file "configuration")
(:file "command")
(:file "renderer-script")
(:file "minibuffer-helper")
(:file "buffer")
(:file "window")
(:file "mode")
(:file "search-engine")
(:file "urls")
(:file "browser")
(:file "object-display")
(:file "notification")
(:file "clipboard")
(:file "fuzzy")
(:file "message")
(:file "input")
(:file "minibuffer")
(:file "minibuffer-mode")
(:file "command-commands")
(:file "recent-buffers")
(:file "password")
(:file "bookmark")
(:file "history")
(:file "autofill")
(:file "auto-mode")
(:file "external-editor")
(:file "url-group")
(:file "minibuffer-composite")
;; Core Modes
(:file "base-mode")
(:file "repl-mode")
(:file "help-mode")
(:file "application-mode")
(:file "web-mode")
(:file "reading-line-mode")
(:file "certificate-exception-mode")
(:file "emacs-mode")
(:file "vi-mode")
(:file "blocker-mode")
(:file "proxy-mode")
(:file "noimage-mode")
(:file "noscript-mode")
(:file "file-manager-mode")
(:file "download-mode")
(:file "vcs-mode")
(:file "force-https-mode")
;; Web-mode commands
(:file "input-edit")
(:file "element-hint")
(:file "jump-heading")
(:file "scroll")
(:file "search-buffer")
(:file "spell-check")
(:file "zoom")
;; Needs web-mode
(:file "help")
(:file "status")
;; Depends on everything else:
(:file "about")
(:file "session")
(:file "start")
(:file "tutorial")
(:file "manual"))
:in-order-to ((test-op (test-op "nyxt/tests"))))
(asdf:defsystem nyxt/tests
:depends-on (nyxt prove)
:perform (asdf:test-op (op c)
(funcall (read-from-string "prove:run")
(asdf:system-relative-pathname c "tests/"))))
(asdf:defsystem :nyxt/gtk
:depends-on (:nyxt
:cl-cffi-gtk
:cl-webkit2)
:pathname "source/"
:components ((:file "renderer-gtk")))
(asdf:defsystem :nyxt/qt
:depends-on (:nyxt
:cl-webengine
:trivial-main-thread)
:pathname "source/"
:components ((:file "renderer-qt")))
;; We should not set the build-pathname in systems that have a component.
;; Indeed, when an external program (like Guix) builds components, it needs to
;; know the name of the output. But ASDF/SYSTEM::COMPONENT-BUILD-PATHNAME is
;; non-exported so the only reliable way to know the build pathname is to use
;; the default.
;;
;; The workaround is to set a new dummy system of which the sole purpose is to
;; produce the desired binary.
(asdf:defsystem :nyxt/gtk-application
:depends-on (:nyxt/gtk)
:build-operation "program-op"
:build-pathname "nyxt"
:entry-point "nyxt:entry-point")
(asdf:defsystem :nyxt/build-rpm
:depends-on (:cffi-toolchain :cl-ppcre :nyxt)
:pathname "build-scripts/"
:components ((:file "build-rpm")))
(asdf:defsystem :nyxt/gtk-application-rpm
:depends-on (:nyxt/build-rpm :nyxt/gtk)
:build-operation "build-rpm"
:build-pathname "nyxt"
:entry-point "nyxt:entry-point")
(asdf:defsystem :nyxt/qt-application
:depends-on (:nyxt/qt)
:build-operation "program-op"
:build-pathname "nyxt-qt"
:entry-point "nyxt:entry-point")
#+sb-core-compression
(defmethod asdf:perform ((o asdf:image-op) (c asdf:system))
(uiop:dump-image (asdf:output-file o c)
:executable t
:compression (not (null (uiop:getenv "NYXT_COMPRESS")))))
(asdf:defsystem nyxt/download-manager
:depends-on (cl-ppcre
dexador
log4cl
lparallel
quri
str)
:pathname "libraries/download-manager/"
:components ((:file "package")
(:file "engine")
(:file "native"))
:in-order-to ((test-op (test-op "nyxt/download-manager/tests"))))
(asdf:defsystem nyxt/download-manager/tests
:depends-on (nyxt/download-manager prove)
:perform (asdf:test-op (op c)
(funcall (read-from-string "prove:run")
(asdf:system-relative-pathname c "libraries/download-manager/tests/"))))
(asdf:defsystem nyxt/text-analysis
:depends-on (:str
:cl-ppcre)
:pathname "libraries/text-analysis/"
:components ((:file "package")
(:file "data")
(:file "stem")
(:file "analysis")
(:file "text-rank")))
(asdf:defsystem nyxt/text-buffer
:depends-on (:cluffer)
:pathname "libraries/text-buffer/"
:components ((:file "package")
(:file "text-buffer")))
(asdf:defsystem nyxt/history-tree
:pathname "libraries/history-tree/"
:components ((:file "package")
(:file "history-tree"))
:in-order-to ((test-op (test-op "nyxt/history-tree/tests"))))
(asdf:defsystem nyxt/history-tree/tests
:depends-on (nyxt/history-tree prove)
:perform (asdf:test-op (op c)
(funcall (read-from-string "prove:run")
(asdf:system-relative-pathname c "libraries/history-tree/tests/"))))
(asdf:defsystem nyxt/password-manager
:depends-on (bordeaux-threads
cl-ppcre
str
trivial-clipboard
uiop)
:pathname "libraries/password-manager/"
:components ((:file "package")
(:file "password")
(:file "password-keepassxc")
(:file "password-security")
;; Keep password-store last so that it has higher priority.
(:file "password-pass")))
(asdf:defsystem nyxt/hooks
:depends-on (alexandria serapeum)
:pathname "libraries/hooks/"
:components ((:file "package")
(:file "hooks"))
:in-order-to ((test-op (test-op "nyxt/hooks/tests"))))
(asdf:defsystem nyxt/hooks/tests
:depends-on (nyxt/hooks prove)
:perform (asdf:test-op (op c)
(funcall (read-from-string "prove:run")
(asdf:system-relative-pathname c "libraries/hooks/tests/"))))
(asdf:defsystem nyxt/keymap
:depends-on (alexandria fset str)
:pathname "libraries/keymap/"
:components ((:file "package")
(:file "types")
(:file "conditions")
(:file "keymap")
(:file "scheme")
(:file "scheme-names"))
:in-order-to ((test-op (test-op "nyxt/keymap/tests"))))
(asdf:defsystem nyxt/keymap/tests
:depends-on (alexandria fset nyxt/keymap prove)
:perform (asdf:test-op (op c)
(funcall (read-from-string "prove:run")
(asdf:system-relative-pathname c "libraries/keymap/tests/"))))