-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclosure.asd
226 lines (180 loc) · 5.64 KB
/
closure.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
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: CL-USER; Encoding: utf-8; -*-
;; commit test
(defpackage :closure-system (:use #:asdf #:cl))
(in-package :closure-system)
;;; Random early Lisp Implementation-specific fix ups:
;(eval-when (compile eval load)
; (pushnew :DEBUG-CLOSURE *features*))
;;;;
;;;; Optimization levels:
;;;;
;; FIXME: This is not exactly the right place!
;; We choose to make them constants for read-time evaluation, since we
;; want the presence of the :DEBUG-CLOSURE feature to override any
;; (saftey 0) declaration.
(defparameter +optimize-very-fast+
'(optimize (safety #.(or #+:DEBUG-CLOSURE 3 0)) (speed 3) #+:DEBUG-CLOSURE (debug 3)))
(defparameter +optimize-very-fast-trusted+
'(optimize (safety #.(or #+:DEBUG-CLOSURE 3 0)) (speed 3) #+:DEBUG-CLOSURE (debug 3)))
(defparameter +optimize-fast+
'(optimize (safety #.(or #+:DEBUG-CLOSURE 3 1)) (speed 3) #+:DEBUG-CLOSURE (debug 3)))
(defparameter +optimize-normal+
'(optimize (safety #.(or #+:DEBUG-CLOSURE 3 2)) (speed 1) #+:DEBUG-CLOSURE (debug 3)))
(export '+optimize-very-fast-trusted+)
(export '+optimize-very-fast+)
(export '+optimize-fast+)
(export '+optimize-normal+)
;; Finally declaim normal optimization level
(declaim #.+optimize-normal+)
(defclass closure-source-file (cl-source-file) ())
#+sbcl
(defmethod perform :around ((o compile-op) (s closure-source-file))
;; shut up already. Correctness first.
(handler-bind ((sb-ext:compiler-note #'muffle-warning))
(call-next-method)))
;;; Convenience feature: will stop it from breaking into the debugger
;;; under sbcl for full WARNINGs (better to fix the warnings :-).
#+sbcl
(defmethod perform :around ((o compile-op) s)
(setf (operation-on-failure o) :warn)
(call-next-method o s))
(defpackage :glisp (:use))
(asdf:defsystem glisp
:pathname "src/glisp/"
:default-component-class closure-source-file
:depends-on (:cxml
:closure-html
;; uncomment this if we actually need gray streams:
;; :trivial-gray-streams
#+sbcl :sb-bsd-sockets)
:components
((:file dependent
:pathname
#+CLISP "dep-clisp"
#+(AND :CMU (NOT SCL)) "dep-cmucl"
#+sbcl "dep-sbcl"
#+SCL "dep-scl"
#+ALLEGRO "dep-acl"
#+GCL "dep-gcl"
#+OPENMCL "dep-openmcl"
#-(OR sbcl CLISP CMU ALLEGRO GCL OPENMCL) #.(error "Configure!"))
(:file "package"
:depends-on (dependent))
(:file "util"
:depends-on ("package" dependent))
(:file "match"
:depends-on ("package" dependent "util"))))
(asdf:defsystem closure
:depends-on (:mcclim
:glisp
:bordeaux-threads
:drakma
;;:iolib
;;:iolib/trivial-sockets
:zip
:flexi-streams
:skippy)
:default-component-class closure-source-file
:components
((:module src
:serial t
:components
(;;; Patches
(:module patches
:components
((:file "clx-patch")))
;; Images
(:module imagelib
:serial t
:components
((:file "package")
(:file "basic")
(:file "deflate")
(:file "png")
(:file "gif")
(:file "jpeg")))
;; Early package definitions
(:file "defpack")
;; Closure Protocol Declarations first
(:module protocols
:serial t
:components
((:file "package")
(:file "element")
(:file "css-support")))
;; Libraries
;; Networking stuff
(:module net
:components
((:file "package" :depends-on ("url"))
;;(:file "common-parse" :depends-on ("package"))
(:file "url" :depends-on ())
(:file "http" :depends-on ("package" "url"))
;; (:file "ftp" :depends-on ("package" "url")) ))
))
;; More Random Utilities
(:module util
:components
((:file "character-set")
(:file "xterm")))
;; CSS
(:module css
:depends-on (net ;needs URL package
"defpack")
:serial t
:components
((:file "package")
(:file "css-support")
(:file "css-parse")
(:file "css-selector")
(:file "css-setup")
(:file "css-properties")))
;; Renderer
(:module renderer
:serial t
:components
(
(:file "package")
(:file "pt")
(:file "device") ;Declaration of the device abstraction
(:file "fonts") ;Font Databases
(:file "texpara")
(:file "images")
(:file "x11")
(:file "r-struct")
(:file "document")
(:file "raux")
(:file "renderer")
(:file "hyphenation") ;Hyphenation of words
(:file "clim-draw") ;some drawing "primitives" for the clim device
(:file "renderer2")
(:file "list-item")
; "tables"
(:file "clim-device")))
;; HTML
(:module html
:components
((:file "html-style")))
;; GUI
(:module gui
:serial t
:components
((:file "gui") (:file "clue-gui")
(:file "dce-and-pce") (:file "clue-input")
(:file "clim-gui")) )
;; Patches
(:file "patch")
))
;; Some resources
(:module resources
:components
((:file "resources")) )))
(in-package :cl-user)
(import '(CLOSURE-SYSTEM:+OPTIMIZE-VERY-FAST+
CLOSURE-SYSTEM:+OPTIMIZE-NORMAL+
CLOSURE-SYSTEM:+OPTIMIZE-VERY-FAST-TRUSTED+
CLOSURE-SYSTEM:+OPTIMIZE-FAST+))
(export '(CLOSURE-SYSTEM:+OPTIMIZE-VERY-FAST+
CLOSURE-SYSTEM:+OPTIMIZE-NORMAL+
CLOSURE-SYSTEM:+OPTIMIZE-VERY-FAST-TRUSTED+
CLOSURE-SYSTEM:+OPTIMIZE-FAST+))