/[mcclim]/mcclim/mcclim.asd
ViewVC logotype

Contents of /mcclim/mcclim.asd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Fri Mar 3 21:10:21 2006 UTC (8 years, 1 month ago) by afuchs
Branch: MAIN
Changes since 1.6: +5 -4 lines
Implement standard-tree-output-records using spatial trees.

Also, document the updated installation process in INSTALL.ASDF.
1 ;;; -*- Mode: Lisp -*-
2
3 ;;; (c) copyright 1998,1999,2000 by Michael McDonald (mikemac@mikemac.com)
4 ;;; (c) copyright 2000 by
5 ;;; Robert Strandh (strandh@labri.u-bordeaux.fr)
6 ;;; (c) copyright 2005 by
7 ;;; Andreas Fuchs (asf@boinkor.net)
8 ;;;
9 ;;; This library is free software; you can redistribute it and/or
10 ;;; modify it under the terms of the GNU Library General Public
11 ;;; License as published by the Free Software Foundation; either
12 ;;; version 2 of the License, or (at your option) any later version.
13 ;;;
14 ;;; This library is distributed in the hope that it will be useful,
15 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;;; Library General Public License for more details.
18 ;;;
19 ;;; You should have received a copy of the GNU Library General Public
20 ;;; License along with this library; if not, write to the
21 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 ;;; Boston, MA 02111-1307 USA.
23
24
25 ;;; Really, I wouldn't bother with anything but ASDF. Almost every lisp
26 ;;; ships with it, and it has the added benefit of ASDF-INSTALL.
27 ;;; Get ASDF, and be welcome to the 21st century. -- [2005-01-31:asf]
28
29 (defpackage :mcclim.system
30 (:use :asdf :cl))
31 (in-package :mcclim.system)
32
33 (defparameter *clim-directory* (directory-namestring *load-truename*))
34
35 ;;; Legacy CMUCL support stuff
36 #+cmu
37 (progn
38 (unless (fboundp 'ext:stream-read-char)
39 (unless (ignore-errors (ext:search-list "gray-streams:"))
40 (setf (ext:search-list "gray-streams:")
41 '("target:pcl/" "library:subsystems/")))
42 (if (fboundp 'extensions:without-package-locks)
43 (extensions:without-package-locks
44 (load "gray-streams:gray-streams-library"))
45 (load "gray-streams:gray-streams-library")))
46 #-clx
47 (require :clx)
48 #+mp (when (eq mp::*initial-process* mp::*current-process*)
49 (format t "~%~%You need to run (mp::startup-idle-and-top-level-loops) to start up the multiprocessing support.~%~%")))
50
51 ;;; Make CLX asdf-loadable on Allegro 6.2
52 ;;; possibly this should be further refined to funciton properly for
53 ;;; Allegro on Windows platforms. [2005/04/18:rpg]
54 #+allegro
55 (progn
56 (defclass requireable-system (asdf:system)
57 ())
58 (defmethod asdf:perform ((op asdf:load-op) (system requireable-system))
59 (require (intern (slot-value system 'asdf::name) "KEYWORD")))
60 (defmethod asdf::traverse ((op asdf:load-op) (system requireable-system))
61 (list (cons op system)))
62 (defsystem :clx
63 :class requireable-system))
64
65
66 (defmacro clim-defsystem ((module &key depends-on) &rest components)
67 `(progn
68 (asdf:defsystem ,module
69 ,@(and depends-on
70 `(:depends-on ,depends-on))
71 :serial t
72 :components
73 (,@(loop for c in components
74 for p = (merge-pathnames
75 (parse-namestring c)
76 (make-pathname :type "lisp"
77 :defaults *clim-directory*))
78 collect `(:file ,(namestring p) :pathname ,p))))))
79
80 (defsystem :clim-lisp
81 :components
82 (;; First possible patches
83 (:file "patch")
84 (:module "Lisp-Dep"
85 :depends-on ("patch")
86 :components
87 ((:file #+cmu "fix-cmu"
88 #+excl "fix-acl"
89 #+sbcl "fix-sbcl"
90 #+openmcl "fix-openmcl"
91 #+lispworks "fix-lispworks"
92 #+clisp "fix-clisp")))
93 (:file "package" :depends-on ("Lisp-Dep"))))
94
95 (defsystem :clim-core
96 :depends-on (:clim-lisp :spatial-trees)
97 :components ((:file "decls")
98 (:module "Lisp-Dep"
99 :depends-on ("decls")
100 :components
101 ((:file #.(or
102 #+(and :cmu :mp (not :pthread)) "mp-cmu"
103 #+sb-thread "mp-sbcl"
104 #+excl "mp-acl"
105 #+openmcl "mp-openmcl"
106 #+lispworks "mp-lw"
107 #| fall back |# "mp-nil"))))
108 (:file "utils" :depends-on ("decls" "Lisp-Dep"))
109 (:file "design" :depends-on ("decls" "Lisp-Dep" "utils"))
110 (:file "X11-colors" :depends-on ("decls" "Lisp-Dep" "design"))
111 (:file "coordinates" :depends-on ("decls" "Lisp-Dep"))
112 (:file "setf-star" :depends-on ("decls" "Lisp-Dep"))
113 (:file "transforms" :depends-on ("decls" "Lisp-Dep" "coordinates" "utils"))
114 (:file "regions" :depends-on ("decls" "Lisp-Dep" "coordinates" "utils" "transforms" "setf-star" "design"))
115 (:file "sheets" :depends-on ("decls" "Lisp-Dep" "utils" "transforms" "regions"))
116 (:file "pixmap" :depends-on ("decls" "Lisp-Dep" "sheets" "transforms" "regions"))
117 (:file "events" :depends-on ("decls" "Lisp-Dep" "transforms" "sheets" "utils"))
118 (:file "ports" :depends-on ("decls" "Lisp-Dep" "events" "sheets" "pixmap" "utils"))
119 (:file "grafts" :depends-on ("decls" "Lisp-Dep" "sheets" "ports" "transforms" "regions"))
120 (:file "medium" :depends-on ("decls" "Lisp-Dep" "ports" "X11-colors" "utils" "pixmap" "regions"
121 "transforms" "design"))
122 (:file "output" :depends-on ("decls" "Lisp-Dep" "medium"))
123 (:file "input" :depends-on ("decls" "Lisp-Dep" "events" "regions" "sheets"))
124 (:file "repaint" :depends-on ("decls" "Lisp-Dep" "sheets" "events"))
125 (:file "graphics" :depends-on ("decls" "Lisp-Dep" "output" "utils" "medium" "sheets" "pixmap"
126 "regions" "design" "transforms"))
127 (:file "views" :depends-on ("utils"))
128 (:file "stream-output" :depends-on ("decls" "Lisp-Dep" "design" "utils" "X11-colors" "views"
129 "output" "sheets" "regions" "graphics"
130 "medium" "setf-star"))
131 (:file "recording" :depends-on ("decls" "Lisp-Dep" "output" "coordinates" "graphics" "design"
132 "medium" "transforms" "regions" "sheets"
133 "utils" "stream-output"))
134 (:file "encapsulate" :depends-on ("decls" "Lisp-Dep" "sheets" "graphics" "utils" "medium" "input"
135 "stream-output" "recording"))
136 (:file "stream-input" :depends-on ("decls" "Lisp-Dep" "input" "ports" "sheets" "events"
137 "encapsulate" "transforms" "utils"))
138 (:file "text-selection" :depends-on ("decls" "Lisp-Dep" "X11-colors" "medium" "output"
139 "transforms" "sheets" "stream-output"
140 "ports" "recording" "regions"
141 "events"))))
142
143 (defsystem :goatee-core
144 :depends-on (:clim-core)
145 :components
146 ((:module "Goatee"
147 :components
148 ((:file "conditions")
149 (:file "dbl-list")
150 (:file "flexivector" :depends-on ("conditions" "dbl-list"))
151 (:file "buffer" :depends-on ("conditions" "flexivector" "dbl-list"))
152 (:file "editable-buffer" :depends-on ("dbl-list" "flexivector" "buffer"))
153 (:file "editable-area" :depends-on ("flexivector" "editable-buffer" "dbl-list"
154 "buffer"))
155 (:file "clim-area" :depends-on ("flexivector" "dbl-list" "buffer"
156 "editable-area" "editable-buffer"))
157 (:file "kill-ring" :depends-on ("editable-buffer" "dbl-list" "flexivector"
158 "buffer"))
159 (:file "goatee-command" :depends-on ("conditions" "clim-area" "dbl-list"
160 "editable-buffer" "kill-ring"
161 "editable-area" "buffer" "flexivector"))
162 (:file "editing-stream" :depends-on ("goatee-command" "kill-ring" "dbl-list"
163 "conditions" "editable-buffer"
164 "flexivector" "clim-area" "buffer"))
165 (:file "presentation-history" :depends-on ("editing-stream" "buffer"
166 "flexivector" "editable-buffer"
167 "goatee-command"))))))
168
169 ;;; CLIM-PostScript is not a backend in the normal sense.
170 ;;; It is an extension (Chap. 35.1 of the spec) and is an
171 ;;; "included" part of McCLIM. Hence the defsystem is here.
172 (defsystem :clim-postscript
173 :depends-on (:clim-core)
174 :components
175 ((:module "Backends/PostScript"
176 :pathname #.(make-pathname :directory '(:relative "Backends" "PostScript"))
177 :components
178 ((:file "package")
179 (:file "encoding" :depends-on ("package"))
180 (:file "paper" :depends-on ("package"))
181 (:file "class" :depends-on ("paper" "package"))
182 (:file "font" :depends-on ("encoding" "class" "paper" "package"))
183 (:file "graphics" :depends-on ("encoding" "paper" "class" "font" "package"))
184 (:file "sheet" :depends-on ("paper" "class" "graphics" "package"))
185 (:file "afm" :depends-on ("class" "paper" "font" "package"))
186 (:file "standard-metrics" :depends-on ("font" "package"))))))
187
188 (defsystem :clim
189 :depends-on (:clim-core :goatee-core :clim-postscript)
190 :components
191 ((:file "text-formatting")
192 (:file "input-editing")
193 (:file "presentations")
194 (:file "defresource")
195 (:file "presentation-defs" :depends-on ("input-editing" "presentations"))
196 (:file "pointer-tracking" :depends-on ("input-editing"))
197 (:file "commands" :depends-on ("input-editing" "presentations" "presentation-defs"))
198 (:file "frames" :depends-on ("commands" "presentations" "presentation-defs"
199 "pointer-tracking"))
200 (:file "incremental-redisplay" :depends-on ("presentation-defs" "frames"))
201 (:file "panes" :depends-on ("incremental-redisplay" "presentations"
202 "presentation-defs" "input-editing" "frames"))
203 (:file "gadgets" :depends-on ("commands" "pointer-tracking" "input-editing"
204 "frames" "incremental-redisplay" "panes"))
205 (:file "menu" :depends-on ("panes" "commands" "gadgets"
206 "presentations" "frames"))
207 (:file "table-formatting" :depends-on ("presentation-defs" "panes"
208 "presentations" "input-editing"))
209 (:file "graph-formatting")
210 (:file "bordered-output" :depends-on ("input-editing" "incremental-redisplay"
211 "presentation-defs" "panes"))
212 (:file "dialog-views" :depends-on ("presentations" "incremental-redisplay"
213 "bordered-output" "presentation-defs"))
214 (:file "dialog" :depends-on ("panes" "frames" "incremental-redisplay"
215 "table-formatting" "presentations"
216 "bordered-output" "presentation-defs"
217 "dialog-views" "input-editing"
218 "commands"))
219 (:file "builtin-commands" :depends-on ("table-formatting" "commands" "presentations"
220 "presentation-defs" "input-editing"))
221 (:file "describe" :depends-on ("presentations" "presentation-defs" "table-formatting"))
222 (:file "Experimental/menu-choose" :depends-on ("commands" "table-formatting" "presentation-defs"
223 "panes" "frames" "pointer-tracking"
224 "presentations")
225 :pathname #.(make-pathname :directory '(:relative "Experimental") :name "menu-choose" :type "lisp"))
226 (:file "Goatee/presentation-history" :depends-on ("presentation-defs") ; XXX: this is loaded as part of the Goatee system. huh?
227 :pathname #.(make-pathname :directory '(:relative "Goatee") :name "presentation-history" :type "lisp"))
228 ))
229
230 (defsystem :clim-clx
231 :depends-on (:clim #+(or sbcl openmcl ecl allegro) :clx)
232 :components
233 ((:module "Backends/CLX"
234 :pathname #.(make-pathname :directory '(:relative "Backends" "CLX"))
235 :components
236 ((:file "package")
237 (:file "image" :depends-on ("package"))
238 (:file "keysyms-common" :depends-on ("package"))
239 (:file "keysyms" :depends-on ("keysyms-common" "package"))
240 (:file "keysymdef" :depends-on ("keysyms-common" "package"))
241 (:file "port" :depends-on ("keysyms-common" "keysyms" "package"))
242 (:file "medium" :depends-on ("port" "keysyms" "package"))
243 (:file "graft" :depends-on ("port" "package"))
244 (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
245
246 ;;; TODO/asf: I don't have the required libs to get :clim-opengl to load. tough.
247 (clim-defsystem (:clim-opengl :depends-on (:clim))
248 "Backends/OpenGL/opengl-x-frame-manager"
249 "Backends/OpenGL/opengl-frame-manager"
250 "Backends/OpenGL/opengl-x-port-before"
251 "Backends/OpenGL/opengl-port"
252 "Backends/OpenGL/opengl-x-port-after"
253 "Backends/OpenGL/opengl-medium"
254 "Backends/OpenGL/opengl-x-graft")
255
256 ;;; TODO/asf: I don't have the required macintosh to get :clim-beagle to load.
257
258 (defsystem :clim-objc-support)
259 (defmethod perform ((op load-op) (c (eql (find-system :clim-objc-support))))
260 (require "OBJC-SUPPORT"))
261
262 (clim-defsystem (:clim-beagle :depends-on (:clim :clim-objc-support))
263 "Backends/beagle/package"
264 "Backends/beagle/lisp-window"
265 "Backends/beagle/lisp-window-delegate"
266 "Backends/beagle/lisp-view"
267 "Backends/beagle/lisp-view-additional"
268 "Backends/beagle/lisp-image"
269 "Backends/beagle/lisp-unmanaged-view"
270 "Backends/beagle/cocoa-util"
271 "Backends/beagle/port"
272 "Backends/beagle/frame-manager"
273 "Backends/beagle/medium"
274 "Backends/beagle/mirror"
275 "Backends/beagle/events"
276 "Backends/beagle/graft"
277 "Backends/beagle/fonts"
278 "Backends/beagle/image"
279 "Backends/beagle/keysymdef")
280
281 ;;; legacy system that loads :clim-beagle
282 (defsystem :beagle
283 :depends-on (:clim-beagle))
284
285 ;;; A system that loads the appropriate backend for the current
286 ;;; platform.
287 (defsystem :clim-looks
288 :depends-on (:clim
289 ;; If we're on an implementation that ships CLX, use
290 ;; it. Same if the user has loaded CLX already.
291 #+(or sbcl openmcl ecl clx allegro) :clim-clx
292 #+gl :clim-opengl
293 ;; OpenMCL and MCL support the beagle backend (native
294 ;; OS X look&feel on OS X).
295
296 ;; But until it's ready, it's no use forcing users to
297 ;; cope with possible bugs.
298 ;; #+(or openmcl mcl) :clim-beagle
299 )
300 :components ((:file "Looks/pixie"
301 :pathname #.(make-pathname :directory '(:relative "Looks") :name "pixie" :type "lisp"))))
302
303 ;;; name of :clim-clx-user chosen by mikemac for no good reason
304 (defsystem :clim-clx-user
305 :depends-on (:clim :clim-clx))
306
307 ;;; CLIM-Examples depends on having at least one backend loaded.
308 (defsystem :clim-examples
309 :depends-on (:clim :clim-looks)
310 :components
311 ((:module "Examples"
312 :components
313 ((:file "calculator")
314 (:file "colorslider")
315 (:file "address-book")
316 (:file "traffic-lights")
317 (:file "clim-fig")
318 (:file "postscript-test")
319 (:file "stream-test")
320 (:file "presentation-test")
321 #+clx (:file "gadget-test")
322 (:file "accepting-values")
323 (:file "method-browser")))))
324
325 ;;; This won't load in SBCL, either. I have really crappy code to
326 ;;; extract dependency information from :serial t ASDF systems, but
327 ;;; this comment is too narrow to contain it.
328 (clim-defsystem (:scigraph :depends-on (:clim :clim-looks))
329 ;; The DWIM part of SCIGRAPH
330 "Apps/Scigraph/dwim/package"
331 "Apps/Scigraph/dwim/feature-case"
332 "Apps/Scigraph/dwim/macros"
333 "Apps/Scigraph/dwim/tv"
334 "Apps/Scigraph/dwim/draw"
335 "Apps/Scigraph/dwim/present"
336 "Apps/Scigraph/dwim/extensions"
337 "Apps/Scigraph/dwim/wholine"
338 "Apps/Scigraph/dwim/export"
339 ;; The Scigraph part
340 "Apps/Scigraph/scigraph/package"
341 "Apps/Scigraph/scigraph/copy"
342 "Apps/Scigraph/scigraph/dump"
343 "Apps/Scigraph/scigraph/duplicate"
344 "Apps/Scigraph/scigraph/random"
345 "Apps/Scigraph/scigraph/menu-tools"
346 "Apps/Scigraph/scigraph/basic-classes"
347 "Apps/Scigraph/scigraph/draw"
348 "Apps/Scigraph/scigraph/mouse"
349 "Apps/Scigraph/scigraph/color"
350 "Apps/Scigraph/scigraph/basic-graph"
351 "Apps/Scigraph/scigraph/graph-mixins"
352 "Apps/Scigraph/scigraph/axis"
353 "Apps/Scigraph/scigraph/moving-object"
354 "Apps/Scigraph/scigraph/symbol"
355 "Apps/Scigraph/scigraph/graph-data"
356 "Apps/Scigraph/scigraph/legend"
357 "Apps/Scigraph/scigraph/graph-classes"
358 "Apps/Scigraph/scigraph/present"
359 "Apps/Scigraph/scigraph/annotations"
360 "Apps/Scigraph/scigraph/annotated-graph"
361 "Apps/Scigraph/scigraph/contour"
362 "Apps/Scigraph/scigraph/equation"
363 "Apps/Scigraph/scigraph/popup-accept"
364 "Apps/Scigraph/scigraph/popup-accept-methods"
365 "Apps/Scigraph/scigraph/duplicate-methods"
366 "Apps/Scigraph/scigraph/frame"
367 "Apps/Scigraph/scigraph/export"
368 "Apps/Scigraph/scigraph/demo-frame")
369
370 (defsystem :clim-listener
371 :depends-on (:clim :clim-looks #+sbcl :sb-posix)
372 :components
373 ((:file "Experimental/xpm"
374 :pathname #.(make-pathname :directory '(:relative "Experimental") :name "xpm" :type "lisp"))
375 (:module "Apps/Listener"
376 :pathname #.(make-pathname :directory '(:relative "Apps" "Listener"))
377 :depends-on ("Experimental/xpm")
378 :components
379 ((:file "package")
380 (:file "util" :depends-on ("package"))
381 (:file "icons" :depends-on ("package" "util"))
382 (:file "file-types" :depends-on ("package" "icons" "util"))
383 (:file "dev-commands" :depends-on ("package" "icons" "file-types" "util"))
384 (:file "listener" :depends-on ("package" "file-types" "icons" "dev-commands" "util"))
385 #+CMU (:file "cmu-hacks" :depends-on ("package"))))))
386
387
388 ;;; The actual McCLIM system that people should to use in their ASDF
389 ;;; package dependency lists.
390 (defsystem :mcclim
391 :depends-on (:clim-looks))
392
393 (defmethod perform :after ((op load-op) (c (eql (find-system :mcclim))))
394 (pushnew :clim *features*)
395 (pushnew :mcclim *features*))

  ViewVC Help
Powered by ViewVC 1.1.5