-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrol-server.asd
84 lines (80 loc) · 3.56 KB
/
rol-server.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
;;
;; RoL-server - Rails on Lisp application server
;;
;; Copyright 2012-2015 Thomas de Grivel <[email protected]>
;;
;; Permission to use, copy, modify, and distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
;;
(in-package #:cl-user)
(defpackage #:RoL-server.system
(:use #:cl #:asdf))
(in-package #:RoL-server.system)
#.(let* ((backend (if (boundp 'cl-user::*backend*)
(symbol-value 'cl-user::*backend*)
:hunchentoot))
(backend-file (concatenate 'string "backend-"
(string-downcase (symbol-name backend)))))
(pushnew backend *features*)
`(asdf:defsystem #:RoL-server
:name "RoL-server"
:author "Thomas de Grivel <[email protected]>"
:version "0.2"
:description "Application server / core module"
:depends-on ("3bmd"
"alexandria"
"babel"
"cfg"
"cl-base64"
"cl-debug"
"cl-smtp"
"ironclad"
"local-time"
"facts"
"flexi-streams"
"random-sequence"
"re"
"rol-assets"
"rol-files"
"rol-log"
"rol-template"
"rol-uri"
"str"
"trivial-backtrace"
"trivial-utf-8"
"cl-inflector"
,@(case backend
((:fastcgi) '("cl-fastcgi"))
((:hunchentoot) '("hunchentoot"))
((:thot) '("thot"))))
:components
((:file "package")
(:file "conditions" :depends-on ("package"))
(:file "json" :depends-on ("package"))
(:file "resource" :depends-on ("package"))
(:file "secret" :depends-on ("package"))
(:file "vars" :depends-on ("package"))
(:file "assets" :depends-on ("package" "routing" "vars"))
(:file ,backend-file :depends-on ("package" "headers" "vars"))
(:file "forms" :depends-on ("json" ,backend-file))
(:file "headers" :depends-on ("package" "vars"))
(:file "render" :depends-on ("templates" ,backend-file))
(:file "email" :depends-on ("render"))
(:file "reply" :depends-on ("render" ,backend-file))
(:file "templates" :depends-on ("headers"))
(:file "helpers" :depends-on ("templates"))
(:file "request" :depends-on ("forms" ,backend-file))
(:file "session" :depends-on ("request" "secret"))
(:file "routing" :depends-on ("reply" "request"
"templates" ,backend-file))
(:file "facts" :depends-on ("package"))
(:file "running" :depends-on ("routing" "facts" ,backend-file)))))