-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.asd
60 lines (43 loc) · 1.74 KB
/
app.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
(defun cl-user::set-local-pathname-translations ()
(setf (logical-pathname-translations "app-local")
(list (list "app-local:**;*.*.*"
#P"/Users/art/projects/lisp/cloud-analyzer/**/*.*")))
(values))
(defun cl-user::change-pathnames-to-remote ()
(setf (logical-pathname-translations "app")
(list (list "app:**;*.*.*"
#P"/app/**/*.*")))
(values))
(let* ((current-file (or *compile-file-truename*
*load-truename*))
(current-path (uiop:pathname-directory-pathname current-file))
(target-pattern-path (progn
(format *error-output* "Current path:~%")
(describe current-path *error-output*)
(merge-pathnames #P"**/*.*" current-path)))
(source-pattern-path
"app:**;*.*.*"))
(format *error-output* "Source pattern:~%")
(describe source-pattern-path *error-output*)
(format *error-output* "Target pattern:~%")
(describe target-pattern-path *error-output*)
(setf (logical-pathname-translations "app")
(list (list source-pattern-path
target-pattern-path))))
(cl-user::set-local-pathname-translations)
(pushnew "~/projects/lisp/cffi/" asdf:*central-registry*
:test #'equal)
(pushnew "~/projects/lisp/cl-plus-ssl/" asdf:*central-registry*
:test #'equal)
(pushnew "~/projects/lisp/reblocks/" asdf:*central-registry*
:test #'equal)
(defsystem "app"
:class :package-inferred-system
:pathname #P"app:src;"
:depends-on ("app/widgets/analyzer"
"app/server"
;; We need to ensure that reblocks
;; if fully loaded because otherwise some important
;; parts of it such as jquery backend might be missing.
"reblocks"))
(asdf:register-system-packages "colored" '(#:org.shirakumo.alloy.colored))