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

Contents of /mcclim/mcclim.asd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (hide annotations)
Mon Jul 3 04:58:41 2006 UTC (7 years, 9 months ago) by ahefner
Branch: MAIN
Changes since 1.22: +2 -1 lines
Add "Logic Cube" example.
1 afuchs 1.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 afuchs 1.2 ;;; Andreas Fuchs (asf@boinkor.net)
8 afuchs 1.1 ;;;
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 afuchs 1.4 (if (fboundp 'extensions:without-package-locks)
43     (extensions:without-package-locks
44 afuchs 1.1 (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 afuchs 1.5 ;;; 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 tmoore 1.16
55 afuchs 1.5 #+allegro
56     (progn
57     (defclass requireable-system (asdf:system)
58 tmoore 1.16 ())
59 afuchs 1.5 (defmethod asdf:perform ((op asdf:load-op) (system requireable-system))
60 tmoore 1.11 (require (intern (slot-value system 'asdf::name) :keyword)))
61 afuchs 1.5 (defmethod asdf::traverse ((op asdf:load-op) (system requireable-system))
62     (list (cons op system)))
63     (defsystem :clx
64     :class requireable-system))
65    
66 afuchs 1.1 (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 crhodes 1.6 collect `(:file ,(namestring p) :pathname ,p))))))
79 afuchs 1.1
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 tmoore 1.10 #+scl "fix-scl"
89 afuchs 1.1 #+excl "fix-acl"
90     #+sbcl "fix-sbcl"
91     #+openmcl "fix-openmcl"
92     #+lispworks "fix-lispworks"
93     #+clisp "fix-clisp")))
94     (:file "package" :depends-on ("Lisp-Dep"))))
95    
96     (defsystem :clim-core
97 afuchs 1.7 :depends-on (:clim-lisp :spatial-trees)
98 afuchs 1.1 :components ((:file "decls")
99 tmoore 1.8 (:file "protocol-classes" :depends-on ("decls"))
100 afuchs 1.1 (:module "Lisp-Dep"
101     :depends-on ("decls")
102     :components
103     ((:file #.(or
104     #+(and :cmu :mp (not :pthread)) "mp-cmu"
105 tmoore 1.10 #+scl "mp-scl"
106 afuchs 1.1 #+sb-thread "mp-sbcl"
107     #+excl "mp-acl"
108     #+openmcl "mp-openmcl"
109     #+lispworks "mp-lw"
110     #| fall back |# "mp-nil"))))
111     (:file "utils" :depends-on ("decls" "Lisp-Dep"))
112 tmoore 1.8 (:file "design" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "utils"))
113     (:file "X11-colors" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "design"))
114     (:file "coordinates" :depends-on ("decls" "protocol-classes" "Lisp-Dep"))
115 afuchs 1.1 (:file "setf-star" :depends-on ("decls" "Lisp-Dep"))
116 tmoore 1.8 (:file "transforms" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "coordinates" "utils"))
117     (:file "regions" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "coordinates" "utils" "transforms" "setf-star" "design"))
118     (:file "sheets" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "utils" "transforms" "regions"))
119     (:file "pixmap" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "transforms" "regions"))
120     (:file "events" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "transforms" "sheets" "utils"))
121     (:file "ports" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "events" "sheets" "pixmap" "utils"))
122     (:file "grafts" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "ports" "transforms" "regions"))
123     (:file "medium" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "ports" "X11-colors" "utils" "pixmap" "regions"
124 afuchs 1.1 "transforms" "design"))
125 tmoore 1.8 (:file "output" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "medium"))
126     (:file "input" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "events" "regions" "sheets"))
127     (:file "repaint" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "events"))
128     (:file "graphics" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "output" "utils" "medium" "sheets" "pixmap"
129 afuchs 1.1 "regions" "design" "transforms"))
130 tmoore 1.8 (:file "views" :depends-on ("utils" "protocol-classes"))
131     (:file "stream-output" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "design" "utils" "X11-colors" "views"
132 afuchs 1.1 "output" "sheets" "regions" "graphics"
133     "medium" "setf-star"))
134 tmoore 1.8 (:file "recording" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "output" "coordinates" "graphics" "design"
135 afuchs 1.1 "medium" "transforms" "regions" "sheets"
136     "utils" "stream-output"))
137 tmoore 1.8 (:file "encapsulate" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "graphics" "utils" "medium" "input"
138 afuchs 1.1 "stream-output" "recording"))
139 tmoore 1.8 (:file "stream-input" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "input" "ports" "sheets" "events"
140 afuchs 1.1 "encapsulate" "transforms" "utils"))
141 tmoore 1.8 (:file "text-selection" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "X11-colors" "medium" "output"
142 afuchs 1.1 "transforms" "sheets" "stream-output"
143     "ports" "recording" "regions"
144     "events"))))
145    
146     (defsystem :goatee-core
147     :depends-on (:clim-core)
148     :components
149     ((:module "Goatee"
150     :components
151     ((:file "conditions")
152     (:file "dbl-list")
153     (:file "flexivector" :depends-on ("conditions" "dbl-list"))
154     (:file "buffer" :depends-on ("conditions" "flexivector" "dbl-list"))
155     (:file "editable-buffer" :depends-on ("dbl-list" "flexivector" "buffer"))
156     (:file "editable-area" :depends-on ("flexivector" "editable-buffer" "dbl-list"
157     "buffer"))
158     (:file "clim-area" :depends-on ("flexivector" "dbl-list" "buffer"
159     "editable-area" "editable-buffer"))
160     (:file "kill-ring" :depends-on ("editable-buffer" "dbl-list" "flexivector"
161     "buffer"))
162     (:file "goatee-command" :depends-on ("conditions" "clim-area" "dbl-list"
163     "editable-buffer" "kill-ring"
164     "editable-area" "buffer" "flexivector"))
165     (:file "editing-stream" :depends-on ("goatee-command" "kill-ring" "dbl-list"
166     "conditions" "editable-buffer"
167     "flexivector" "clim-area" "buffer"))
168     (:file "presentation-history" :depends-on ("editing-stream" "buffer"
169     "flexivector" "editable-buffer"
170     "goatee-command"))))))
171    
172     ;;; CLIM-PostScript is not a backend in the normal sense.
173     ;;; It is an extension (Chap. 35.1 of the spec) and is an
174     ;;; "included" part of McCLIM. Hence the defsystem is here.
175     (defsystem :clim-postscript
176     :depends-on (:clim-core)
177     :components
178     ((:module "Backends/PostScript"
179     :pathname #.(make-pathname :directory '(:relative "Backends" "PostScript"))
180     :components
181     ((:file "package")
182     (:file "encoding" :depends-on ("package"))
183     (:file "paper" :depends-on ("package"))
184     (:file "class" :depends-on ("paper" "package"))
185     (:file "font" :depends-on ("encoding" "class" "paper" "package"))
186     (:file "graphics" :depends-on ("encoding" "paper" "class" "font" "package"))
187     (:file "sheet" :depends-on ("paper" "class" "graphics" "package"))
188     (:file "afm" :depends-on ("class" "paper" "font" "package"))
189     (:file "standard-metrics" :depends-on ("font" "package"))))))
190    
191     (defsystem :clim
192 afuchs 1.12 :depends-on (:clim-core :goatee-core)
193 afuchs 1.1 :components
194     ((:file "text-formatting")
195     (:file "input-editing")
196     (:file "presentations")
197 afuchs 1.3 (:file "defresource")
198 afuchs 1.1 (:file "presentation-defs" :depends-on ("input-editing" "presentations"))
199     (:file "pointer-tracking" :depends-on ("input-editing"))
200 tmoore 1.8 (:file "commands" :depends-on ("input-editing" "presentations"
201     "presentation-defs"))
202     (:file "incremental-redisplay" :depends-on ("presentation-defs"))
203 afuchs 1.1 (:file "frames" :depends-on ("commands" "presentations" "presentation-defs"
204 tmoore 1.8 "pointer-tracking" "incremental-redisplay"))
205 afuchs 1.1 (:file "panes" :depends-on ("incremental-redisplay" "presentations"
206     "presentation-defs" "input-editing" "frames"))
207     (:file "gadgets" :depends-on ("commands" "pointer-tracking" "input-editing"
208     "frames" "incremental-redisplay" "panes"))
209     (:file "menu" :depends-on ("panes" "commands" "gadgets"
210     "presentations" "frames"))
211     (:file "table-formatting" :depends-on ("presentation-defs" "panes"
212     "presentations" "input-editing"))
213     (:file "graph-formatting")
214     (:file "bordered-output" :depends-on ("input-editing" "incremental-redisplay"
215     "presentation-defs" "panes"))
216     (:file "dialog-views" :depends-on ("presentations" "incremental-redisplay"
217     "bordered-output" "presentation-defs"))
218     (:file "dialog" :depends-on ("panes" "frames" "incremental-redisplay"
219     "table-formatting" "presentations"
220     "bordered-output" "presentation-defs"
221     "dialog-views" "input-editing"
222     "commands"))
223     (:file "builtin-commands" :depends-on ("table-formatting" "commands" "presentations"
224     "presentation-defs" "input-editing"))
225     (:file "describe" :depends-on ("presentations" "presentation-defs" "table-formatting"))
226 tmoore 1.8 (:file "menu-choose" :depends-on ("commands" "table-formatting" "presentation-defs"
227     "panes" "frames" "pointer-tracking"
228     "presentations"))
229 afuchs 1.1 (:file "Goatee/presentation-history" :depends-on ("presentation-defs") ; XXX: this is loaded as part of the Goatee system. huh?
230     :pathname #.(make-pathname :directory '(:relative "Goatee") :name "presentation-history" :type "lisp"))
231     ))
232    
233     (defsystem :clim-clx
234 afuchs 1.5 :depends-on (:clim #+(or sbcl openmcl ecl allegro) :clx)
235 afuchs 1.1 :components
236     ((:module "Backends/CLX"
237     :pathname #.(make-pathname :directory '(:relative "Backends" "CLX"))
238     :components
239     ((:file "package")
240 afuchs 1.2 (:file "image" :depends-on ("package"))
241 afuchs 1.1 (:file "keysyms-common" :depends-on ("package"))
242     (:file "keysyms" :depends-on ("keysyms-common" "package"))
243     (:file "keysymdef" :depends-on ("keysyms-common" "package"))
244     (:file "port" :depends-on ("keysyms-common" "keysyms" "package"))
245     (:file "medium" :depends-on ("port" "keysyms" "package"))
246     (:file "graft" :depends-on ("port" "package"))
247     (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
248    
249 crhodes 1.15 (defsystem :clim-null
250     :depends-on (:clim)
251     :components
252     ((:module "Backends/Null"
253     :pathname #.(make-pathname :directory '(:relative "Backends" "Null"))
254     :components
255     ((:file "package")
256     (:file "port" :depends-on ("package"))
257     (:file "medium" :depends-on ("port" "package"))
258     (:file "graft" :depends-on ("port" "package"))
259     (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
260    
261 dlichteblau 1.19 (defsystem :clim-gtkairo
262     :depends-on (:clim :cffi)
263     :components
264     ((:module "Backends/gtkairo"
265     :pathname #.(make-pathname :directory '(:relative "Backends" "gtkairo"))
266     :serial t ;asf wird's ja richten
267     :components
268     ((:file "clim-fix")
269     (:file "package")
270     (:file "gtk-ffi")
271     (:file "cairo-ffi")
272     (:file "port")
273     (:file "event")
274     (:file "keysymdef")
275     (:file "medium")
276     (:file "pixmap")
277     (:file "graft")
278     (:file "frame-manager")
279     (:file "gadgets")))))
280    
281 afuchs 1.1 ;;; TODO/asf: I don't have the required libs to get :clim-opengl to load. tough.
282     (clim-defsystem (:clim-opengl :depends-on (:clim))
283     "Backends/OpenGL/opengl-x-frame-manager"
284     "Backends/OpenGL/opengl-frame-manager"
285     "Backends/OpenGL/opengl-x-port-before"
286     "Backends/OpenGL/opengl-port"
287     "Backends/OpenGL/opengl-x-port-after"
288     "Backends/OpenGL/opengl-medium"
289     "Backends/OpenGL/opengl-x-graft")
290    
291     ;;; A system that loads the appropriate backend for the current
292     ;;; platform.
293     (defsystem :clim-looks
294 afuchs 1.12 :depends-on (:clim :clim-postscript
295 afuchs 1.1 ;; If we're on an implementation that ships CLX, use
296     ;; it. Same if the user has loaded CLX already.
297 tmoore 1.10 #+(or sbcl scl openmcl ecl clx allegro) :clim-clx
298 afuchs 1.1 #+gl :clim-opengl
299     ;; OpenMCL and MCL support the beagle backend (native
300     ;; OS X look&feel on OS X).
301    
302     ;; But until it's ready, it's no use forcing users to
303     ;; cope with possible bugs.
304     ;; #+(or openmcl mcl) :clim-beagle
305 crhodes 1.15
306 dlichteblau 1.19 #+gtkairo :clim-gtkairo
307    
308 crhodes 1.15 ;; null backend
309     :clim-null
310 afuchs 1.1 )
311     :components ((:file "Looks/pixie"
312     :pathname #.(make-pathname :directory '(:relative "Looks") :name "pixie" :type "lisp"))))
313    
314     ;;; name of :clim-clx-user chosen by mikemac for no good reason
315     (defsystem :clim-clx-user
316     :depends-on (:clim :clim-clx))
317    
318 ahefner 1.22 ;;; The actual McCLIM system that people should to use in their ASDF
319     ;;; package dependency lists.
320     (defsystem :mcclim
321     :depends-on (:clim-looks))
322    
323 afuchs 1.1 ;;; CLIM-Examples depends on having at least one backend loaded.
324     (defsystem :clim-examples
325 ahefner 1.22 :depends-on (:mcclim)
326 afuchs 1.1 :components
327     ((:module "Examples"
328     :components
329     ((:file "calculator")
330     (:file "colorslider")
331 varkesteijn 1.14 (:file "menutest") ; extra
332 afuchs 1.1 (:file "address-book")
333     (:file "traffic-lights")
334     (:file "clim-fig")
335     (:file "postscript-test")
336 varkesteijn 1.14 (:file "puzzle")
337     (:file "transformations-test")
338     (:file "demodemo")
339 afuchs 1.1 (:file "stream-test")
340     (:file "presentation-test")
341 varkesteijn 1.14 (:file "dragndrop")
342 dlichteblau 1.20 (:file "gadget-test")
343 afuchs 1.1 (:file "accepting-values")
344 tmoore 1.9 (:file "method-browser")
345 crhodes 1.17 (:file "dragndrop-translator")
346 dlichteblau 1.18 (:file "draggable-graph")
347 dlichteblau 1.21 (:file "text-size-test")
348 ahefner 1.23 (:file "drawing-benchmark")
349     (:file "logic-cube")))
350 varkesteijn 1.14 (:module "Goatee"
351     :components
352     ((:file "goatee-test")))))
353 afuchs 1.1
354     ;;; This won't load in SBCL, either. I have really crappy code to
355     ;;; extract dependency information from :serial t ASDF systems, but
356     ;;; this comment is too narrow to contain it.
357 ahefner 1.22 (clim-defsystem (:scigraph :depends-on (:mcclim))
358 afuchs 1.1 ;; The DWIM part of SCIGRAPH
359     "Apps/Scigraph/dwim/package"
360     "Apps/Scigraph/dwim/feature-case"
361     "Apps/Scigraph/dwim/macros"
362     "Apps/Scigraph/dwim/tv"
363     "Apps/Scigraph/dwim/draw"
364     "Apps/Scigraph/dwim/present"
365     "Apps/Scigraph/dwim/extensions"
366     "Apps/Scigraph/dwim/wholine"
367     "Apps/Scigraph/dwim/export"
368     ;; The Scigraph part
369     "Apps/Scigraph/scigraph/package"
370     "Apps/Scigraph/scigraph/copy"
371     "Apps/Scigraph/scigraph/dump"
372     "Apps/Scigraph/scigraph/duplicate"
373     "Apps/Scigraph/scigraph/random"
374     "Apps/Scigraph/scigraph/menu-tools"
375     "Apps/Scigraph/scigraph/basic-classes"
376     "Apps/Scigraph/scigraph/draw"
377     "Apps/Scigraph/scigraph/mouse"
378     "Apps/Scigraph/scigraph/color"
379     "Apps/Scigraph/scigraph/basic-graph"
380     "Apps/Scigraph/scigraph/graph-mixins"
381     "Apps/Scigraph/scigraph/axis"
382     "Apps/Scigraph/scigraph/moving-object"
383     "Apps/Scigraph/scigraph/symbol"
384     "Apps/Scigraph/scigraph/graph-data"
385     "Apps/Scigraph/scigraph/legend"
386     "Apps/Scigraph/scigraph/graph-classes"
387     "Apps/Scigraph/scigraph/present"
388     "Apps/Scigraph/scigraph/annotations"
389     "Apps/Scigraph/scigraph/annotated-graph"
390     "Apps/Scigraph/scigraph/contour"
391     "Apps/Scigraph/scigraph/equation"
392     "Apps/Scigraph/scigraph/popup-accept"
393     "Apps/Scigraph/scigraph/popup-accept-methods"
394     "Apps/Scigraph/scigraph/duplicate-methods"
395     "Apps/Scigraph/scigraph/frame"
396     "Apps/Scigraph/scigraph/export"
397     "Apps/Scigraph/scigraph/demo-frame")
398    
399     (defsystem :clim-listener
400 ahefner 1.22 :depends-on (:mcclim #+sbcl :sb-posix)
401 afuchs 1.1 :components
402     ((:file "Experimental/xpm"
403     :pathname #.(make-pathname :directory '(:relative "Experimental") :name "xpm" :type "lisp"))
404     (:module "Apps/Listener"
405     :pathname #.(make-pathname :directory '(:relative "Apps" "Listener"))
406     :depends-on ("Experimental/xpm")
407     :components
408     ((:file "package")
409     (:file "util" :depends-on ("package"))
410     (:file "icons" :depends-on ("package" "util"))
411     (:file "file-types" :depends-on ("package" "icons" "util"))
412     (:file "dev-commands" :depends-on ("package" "icons" "file-types" "util"))
413     (:file "listener" :depends-on ("package" "file-types" "icons" "dev-commands" "util"))
414     #+CMU (:file "cmu-hacks" :depends-on ("package"))))))
415    
416 ahefner 1.22 (defsystem :clouseau
417     :depends-on (:mcclim)
418     :serial t
419     :components
420     ((:file "Apps/Inspector/package")
421     (:file "Apps/Inspector/disassembly")
422     (:file "Apps/Inspector/inspector")))
423 afuchs 1.7
424 tmoore 1.8 (defmethod perform :after ((op load-op) (c (eql (find-system :clim))))
425     (pushnew :clim *features*)
426     (pushnew :mcclim *features*))
427    
428 afuchs 1.7 (defmethod perform :after ((op load-op) (c (eql (find-system :mcclim))))
429     (pushnew :clim *features*)
430 tmoore 1.8 (pushnew :mcclim *features*))

  ViewVC Help
Powered by ViewVC 1.1.5