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

Contents of /mcclim/mcclim.asd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.76 - (hide annotations)
Fri Feb 1 18:12:31 2008 UTC (6 years, 2 months ago) by thenriksen
Branch: MAIN
Changes since 1.75: +3 -5 lines
Moved bordered-output.lisp and table-formatting.lisp earlier in the
loading process.

(antifuchs, please save me from this maze of twisty dependencies!
They'are all alike!)
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 thenriksen 1.33 (eval-when (:compile-toplevel :load-toplevel :execute)
36     (defun find-swank-package ()
37     (find-package :swank))
38     (defun find-swank-system ()
39     (handler-case (asdf:find-system :swank)
40     (asdf:missing-component ())))
41     (defun find-swank ()
42     (or (find-swank-package)
43 thenriksen 1.46 (find-swank-system)))
44 thenriksen 1.47 (defun dep-on-swank ()
45     (if (and (find-swank-system)
46     (not (find-package :swank)))
47 thenriksen 1.49 '(:and)
48     '(:or)))
49 thenriksen 1.46 (defun ifswank ()
50     (if (find-swank)
51 thenriksen 1.49 '(:and)
52     '(:or))))
53 thenriksen 1.33
54 afuchs 1.1 ;;; Legacy CMUCL support stuff
55     #+cmu
56     (progn
57     (unless (fboundp 'ext:stream-read-char)
58     (unless (ignore-errors (ext:search-list "gray-streams:"))
59     (setf (ext:search-list "gray-streams:")
60     '("target:pcl/" "library:subsystems/")))
61 afuchs 1.4 (if (fboundp 'extensions:without-package-locks)
62     (extensions:without-package-locks
63 afuchs 1.1 (load "gray-streams:gray-streams-library"))
64     (load "gray-streams:gray-streams-library")))
65 dlichteblau 1.68 #-(or clx clim-gtkairo clim-graphic-forms)
66 afuchs 1.1 (require :clx)
67     #+mp (when (eq mp::*initial-process* mp::*current-process*)
68     (format t "~%~%You need to run (mp::startup-idle-and-top-level-loops) to start up the multiprocessing support.~%~%")))
69    
70 afuchs 1.5 ;;; Make CLX asdf-loadable on Allegro 6.2
71     ;;; possibly this should be further refined to funciton properly for
72     ;;; Allegro on Windows platforms. [2005/04/18:rpg]
73 tmoore 1.16
74 afuchs 1.5 #+allegro
75     (progn
76     (defclass requireable-system (asdf:system)
77 tmoore 1.16 ())
78 afuchs 1.5 (defmethod asdf:perform ((op asdf:load-op) (system requireable-system))
79 tmoore 1.11 (require (intern (slot-value system 'asdf::name) :keyword)))
80 afuchs 1.5 (defmethod asdf::traverse ((op asdf:load-op) (system requireable-system))
81     (list (cons op system)))
82     (defsystem :clx
83     :class requireable-system))
84    
85 rschlatte 1.64 ;;; Required for the beagle backend (not activated by default)
86 dlichteblau 1.67 #+clim-beagle
87 rschlatte 1.64 (progn
88     (require :cocoa)
89     (require :objc-support))
90    
91 afuchs 1.1 (defmacro clim-defsystem ((module &key depends-on) &rest components)
92     `(progn
93     (asdf:defsystem ,module
94     ,@(and depends-on
95     `(:depends-on ,depends-on))
96     :serial t
97     :components
98     (,@(loop for c in components
99     for p = (merge-pathnames
100     (parse-namestring c)
101     (make-pathname :type "lisp"
102     :defaults *clim-directory*))
103 crhodes 1.6 collect `(:file ,(namestring p) :pathname ,p))))))
104 afuchs 1.1
105     (defsystem :clim-lisp
106     :components
107     (;; First possible patches
108     (:file "patch")
109     (:module "Lisp-Dep"
110     :depends-on ("patch")
111     :components
112     ((:file #+cmu "fix-cmu"
113 tmoore 1.10 #+scl "fix-scl"
114 afuchs 1.1 #+excl "fix-acl"
115     #+sbcl "fix-sbcl"
116     #+openmcl "fix-openmcl"
117     #+lispworks "fix-lispworks"
118     #+clisp "fix-clisp")))
119 afuchs 1.25 (:file "package" :depends-on ("Lisp-Dep" "patch"))))
120 afuchs 1.1
121 thenriksen 1.33 (defsystem :clim-basic
122 dlichteblau 1.45 :depends-on (:clim-lisp :spatial-trees :flexichain)
123 afuchs 1.1 :components ((:file "decls")
124 tmoore 1.8 (:file "protocol-classes" :depends-on ("decls"))
125 afuchs 1.1 (:module "Lisp-Dep"
126     :depends-on ("decls")
127     :components
128 afuchs 1.26 ((:file #.(first
129     (list
130     #+(and :cmu :mp (not :pthread)) "mp-cmu"
131     #+scl "mp-scl"
132     #+sb-thread "mp-sbcl"
133     #+excl "mp-acl"
134     #+openmcl "mp-openmcl"
135     #+lispworks "mp-lw"
136     #| fall back |# "mp-nil")))))
137 afuchs 1.1 (:file "utils" :depends-on ("decls" "Lisp-Dep"))
138 tmoore 1.8 (:file "design" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "utils"))
139     (:file "X11-colors" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "design"))
140     (:file "coordinates" :depends-on ("decls" "protocol-classes" "Lisp-Dep"))
141 afuchs 1.1 (:file "setf-star" :depends-on ("decls" "Lisp-Dep"))
142 tmoore 1.8 (:file "transforms" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "coordinates" "utils"))
143     (:file "regions" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "coordinates" "utils" "transforms" "setf-star" "design"))
144     (:file "sheets" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "utils" "transforms" "regions"))
145     (:file "pixmap" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "transforms" "regions"))
146     (:file "events" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "transforms" "sheets" "utils"))
147     (:file "ports" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "events" "sheets" "pixmap" "utils"))
148     (:file "grafts" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "ports" "transforms" "regions"))
149     (:file "medium" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "ports" "X11-colors" "utils" "pixmap" "regions"
150 afuchs 1.1 "transforms" "design"))
151 tmoore 1.8 (:file "output" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "medium"))
152     (:file "input" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "events" "regions" "sheets"))
153     (:file "repaint" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "events"))
154     (:file "graphics" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "output" "utils" "medium" "sheets" "pixmap"
155 afuchs 1.1 "regions" "design" "transforms"))
156 tmoore 1.8 (:file "views" :depends-on ("utils" "protocol-classes"))
157     (:file "stream-output" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "design" "utils" "X11-colors" "views"
158 afuchs 1.1 "output" "sheets" "regions" "graphics"
159     "medium" "setf-star"))
160 tmoore 1.8 (:file "recording" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "output" "coordinates" "graphics" "design"
161 afuchs 1.1 "medium" "transforms" "regions" "sheets"
162     "utils" "stream-output"))
163 tmoore 1.8 (:file "encapsulate" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "graphics" "utils" "medium" "input"
164 afuchs 1.1 "stream-output" "recording"))
165 tmoore 1.8 (:file "stream-input" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "input" "ports" "sheets" "events"
166 afuchs 1.1 "encapsulate" "transforms" "utils"))
167 tmoore 1.8 (:file "text-selection" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "X11-colors" "medium" "output"
168 afuchs 1.1 "transforms" "sheets" "stream-output"
169     "ports" "recording" "regions"
170 dlichteblau 1.45 "events"))
171     (:file "bezier" :depends-on ("recording"))))
172 afuchs 1.1
173     (defsystem :goatee-core
174 thenriksen 1.33 :depends-on (:clim-basic)
175 afuchs 1.1 :components
176     ((:module "Goatee"
177     :components
178     ((:file "conditions")
179     (:file "dbl-list")
180     (:file "flexivector" :depends-on ("conditions" "dbl-list"))
181     (:file "buffer" :depends-on ("conditions" "flexivector" "dbl-list"))
182     (:file "editable-buffer" :depends-on ("dbl-list" "flexivector" "buffer"))
183     (:file "editable-area" :depends-on ("flexivector" "editable-buffer" "dbl-list"
184     "buffer"))
185     (:file "clim-area" :depends-on ("flexivector" "dbl-list" "buffer"
186     "editable-area" "editable-buffer"))
187     (:file "kill-ring" :depends-on ("editable-buffer" "dbl-list" "flexivector"
188     "buffer"))
189     (:file "goatee-command" :depends-on ("conditions" "clim-area" "dbl-list"
190     "editable-buffer" "kill-ring"
191     "editable-area" "buffer" "flexivector"))
192     (:file "editing-stream" :depends-on ("goatee-command" "kill-ring" "dbl-list"
193     "conditions" "editable-buffer"
194     "flexivector" "clim-area" "buffer"))
195     (:file "presentation-history" :depends-on ("editing-stream" "buffer"
196     "flexivector" "editable-buffer"
197     "goatee-command"))))))
198     ;;; CLIM-PostScript is not a backend in the normal sense.
199     ;;; It is an extension (Chap. 35.1 of the spec) and is an
200     ;;; "included" part of McCLIM. Hence the defsystem is here.
201     (defsystem :clim-postscript
202 thenriksen 1.33 :depends-on (:clim-basic)
203     :components
204     ((:module "Backends/PostScript"
205     :pathname #.(make-pathname :directory '(:relative "Backends" "PostScript"))
206     :components
207     ((:file "package")
208     (:file "encoding" :depends-on ("package"))
209     (:file "paper" :depends-on ("package"))
210     (:file "class" :depends-on ("paper" "package"))
211     (:file "font" :depends-on ("encoding" "class" "paper" "package"))
212     (:file "graphics" :depends-on ("encoding" "paper" "class" "font" "package"))
213     (:file "sheet" :depends-on ("paper" "class" "graphics" "package"))
214     (:file "afm" :depends-on ("class" "paper" "font" "package"))
215     (:file "standard-metrics" :depends-on ("font" "package"))))))
216    
217     (defsystem :clim-core
218     :depends-on (:clim-basic :goatee-core :clim-postscript)
219     :components ((:file "text-formatting")
220     (:file "defresource")
221     (:file "presentations")
222 thenriksen 1.76 (:file "bordered-output" :depends-on ("presentations"))
223     (:file "table-formatting" :depends-on ("presentations"))
224     (:file "input-editing" :depends-on ("presentations" "bordered-output" "table-formatting"))
225 thenriksen 1.33 (:file "pointer-tracking" :depends-on ("input-editing"))
226     (:file "graph-formatting")
227     (:file "frames" :depends-on ("commands" "presentations" "presentation-defs"
228     "pointer-tracking" "incremental-redisplay"))
229     (:file "dialog-views" :depends-on ("presentations" "incremental-redisplay"
230     "bordered-output" "presentation-defs"))
231     (:file "presentation-defs" :depends-on ("input-editing" "presentations"))
232     (:file "gadgets" :depends-on ("commands" "pointer-tracking" "input-editing"
233     "frames" "incremental-redisplay" "panes"))
234     (:file "describe" :depends-on ("presentations" "presentation-defs" "table-formatting"))
235     (:file "commands" :depends-on ("input-editing" "presentations"
236     "presentation-defs"))
237     (:file "incremental-redisplay" :depends-on ("presentation-defs"))
238     (:file "menu-choose" :depends-on ("commands" "table-formatting" "presentation-defs"
239     "panes" "frames" "pointer-tracking"
240     "presentations"))
241     (:file "menu" :depends-on ("panes" "commands" "gadgets"
242     "presentations" "frames"))
243     (:file "panes" :depends-on ("incremental-redisplay" "presentations"
244     "presentation-defs" "input-editing" "frames"))
245     (:file "dialog" :depends-on ("panes" "frames" "incremental-redisplay"
246     "table-formatting" "presentations"
247     "bordered-output" "presentation-defs"
248     "dialog-views" "input-editing"
249     "commands"))
250 thenriksen 1.34 (:file "builtin-commands" :depends-on ("table-formatting"
251     "commands" "presentations"
252     "dialog" "presentation-defs"
253     "input-editing"))))
254 thenriksen 1.33
255     (defsystem :esa-mcclim
256     :depends-on (:clim-core)
257     :components ((:module "ESA"
258     :components ((:file "packages")
259     (:file "utils" :depends-on ("packages"))
260     (:file "colors" :depends-on ("packages"))
261     (:file "esa" :depends-on ("colors" "packages" "utils"))
262     (:file "esa-buffer" :depends-on ("packages" "esa"))
263     (:file "esa-io" :depends-on ("packages" "esa" "esa-buffer"))
264     (:file "esa-command-parser" :depends-on ("packages" "esa"))))))
265    
266    
267    
268     (defsystem :drei-mcclim
269 thenriksen 1.47 :depends-on (:flexichain :esa-mcclim :clim-core #+#.(mcclim.system::dep-on-swank) :swank)
270 thenriksen 1.33 :components
271     ((:module "cl-automaton"
272     :pathname #.(make-pathname :directory '(:relative "Drei" "cl-automaton"))
273     :components ((:file "automaton-package")
274     (:file "eqv-hash" :depends-on ("automaton-package"))
275     (:file "state-and-transition" :depends-on ("eqv-hash"))
276     (:file "automaton" :depends-on ("state-and-transition" "eqv-hash"))
277     (:file "regexp" :depends-on ("automaton"))))
278     (:module "Persistent"
279     :pathname #.(make-pathname :directory '(:relative "Drei" "Persistent"))
280     :components ((:file "binseq-package")
281     (:file "binseq" :depends-on ("binseq-package"))
282     (:file "obinseq" :depends-on ("binseq-package" "binseq"))
283     (:file "binseq2" :depends-on ("binseq-package" "obinseq" "binseq"))))
284     (:module "Drei" :depends-on ("cl-automaton" "Persistent")
285     :components ((:file "packages")
286     (:file "buffer" :depends-on ("packages"))
287 thenriksen 1.65 (:file "delegating-buffer" :depends-on ("packages" "buffer"))
288 thenriksen 1.33 (:file "motion" :depends-on ("packages" "buffer" "syntax"))
289     (:file "editing" :depends-on ("packages" "buffer" "syntax" "motion" "kill-ring"))
290 thenriksen 1.65 (:file "base" :depends-on ("packages" "buffer" "persistent-buffer" "kill-ring"
291     "delegating-buffer"))
292 thenriksen 1.33 (:file "syntax" :depends-on ("packages" "buffer" "base"))
293 thenriksen 1.70 (:file "modes" :depends-on ("packages" "syntax"))
294 thenriksen 1.63 (:file "views" :depends-on ("packages" "buffer" "base" "syntax" "persistent-undo"
295     "persistent-buffer" "undo" "abbrev"
296 thenriksen 1.70 "delegating-buffer" "modes"))
297 thenriksen 1.63 (:file "drei" :depends-on ("packages" "views" "motion" "editing"))
298 thenriksen 1.33 (:file "drei-clim" :depends-on ("drei"))
299     (:file "drei-redisplay" :depends-on ("drei-clim"))
300 thenriksen 1.73 (:file "drawing-options" :depends-on ("drei-redisplay"))
301 afuchs 1.50 (:file "input-editor" :depends-on ("drei-redisplay" "lisp-syntax" "core"))
302 thenriksen 1.33 (:file "abbrev" :depends-on ("packages"))
303     (:file "kill-ring" :depends-on ("packages"))
304     (:file "undo" :depends-on ("packages"))
305     (:file "basic-commands" :depends-on ("drei-clim" "motion" "editing"))
306     (:file "core" :depends-on ("drei"))
307 thenriksen 1.63 (:file "fundamental-syntax" :depends-on ("packages" "drei-redisplay" "core"))
308 thenriksen 1.52 (:file "buffer-streams" :depends-on ("core"))
309 thenriksen 1.33 (:file "rectangle" :depends-on ("core"))
310 thenriksen 1.62 (:file "targets" :depends-on ("core"))
311 thenriksen 1.33 (:file "core-commands" :depends-on ("core" "rectangle" "drei-clim"))
312     (:file "persistent-buffer"
313     :pathname #.(make-pathname :directory '(:relative "Persistent")
314     :name "persistent-buffer"
315     :type "lisp")
316     :depends-on ("packages"))
317     (:file "persistent-undo"
318     :pathname #p"Persistent/persistent-undo.lisp"
319     :depends-on ("packages" "buffer" "persistent-buffer" "undo"))
320     (:file "misc-commands" :depends-on ("basic-commands"))
321     (:file "unicode-commands" :depends-on ("core" "drei-clim"))
322 thenriksen 1.62 (:file "search-commands" :depends-on ("core" "targets" "drei-clim"))
323 thenriksen 1.73 (:file "lr-syntax" :depends-on ("fundamental-syntax" "core" "drawing-options"))
324 thenriksen 1.56 (:file "lisp-syntax" :depends-on ("lr-syntax" "motion" "core"))
325 thenriksen 1.33 (:file "lisp-syntax-swine" :depends-on ("lisp-syntax"))
326     (:file "lisp-syntax-commands" :depends-on ("lisp-syntax-swine" "misc-commands"))
327 thenriksen 1.46 #+#.(mcclim.system::ifswank) (:file "lisp-syntax-swank" :depends-on ("lisp-syntax"))))))
328 afuchs 1.1
329 thenriksen 1.36 (defsystem :drei-tests
330     :depends-on (:drei-mcclim :fiveam)
331     :components
332     ((:module "Tests"
333     :pathname #.(make-pathname :directory '(:relative "Drei" "Tests"))
334     :components
335     ((:module
336     "cl-automaton"
337     :depends-on ("testing")
338     :components
339 thenriksen 1.58 ((:file "automaton-tests")
340     (:file "state-and-transition-tests" :depends-on ("automaton-tests"))
341     (:file "eqv-hash-tests" :depends-on ("automaton-tests"))
342     (:file "regexp-tests" :depends-on ("automaton-tests"))))
343 thenriksen 1.36 (:file "packages")
344     (:file "testing" :depends-on ("packages"))
345     (:file "buffer-tests" :depends-on ("testing"))
346     (:file "base-tests" :depends-on ("testing"))
347     (:file "kill-ring-tests" :depends-on ("testing"))
348     (:file "motion-tests" :depends-on ("testing"))
349     (:file "editing-tests" :depends-on ("testing"))
350     (:file "core-tests" :depends-on ("testing"))
351 thenriksen 1.52 (:file "buffer-streams-tests" :depends-on ("testing"))
352 thenriksen 1.36 (:file "rectangle-tests" :depends-on ("testing"))
353 thenriksen 1.38 (:file "undo-tests" :depends-on ("testing"))
354 thenriksen 1.57 (:file "lisp-syntax-tests" :depends-on ("testing" "motion-tests"))
355     (:file "lisp-syntax-swine-tests" :depends-on ("lisp-syntax-tests"))))))
356 thenriksen 1.36
357 afuchs 1.1 (defsystem :clim
358 thenriksen 1.33 :depends-on (:clim-core :goatee-core :clim-postscript :drei-mcclim)
359     :components
360     ((:file "Goatee/presentation-history" ; XXX: this is loaded as part of the Goatee system. huh?
361     :pathname #.(make-pathname :directory '(:relative "Goatee") :name "presentation-history" :type "lisp"))
362     (:file "input-editing-goatee")
363     (:file "input-editing-drei")
364 dlichteblau 1.48 (:file "text-editor-gadget")
365 thenriksen 1.49 (:file "Extensions/rgb-image" :pathname #.(make-pathname :directory '(:relative "Extensions")
366 dlichteblau 1.54 :name "rgb-image"))
367     (:file "Extensions/tab-layout"
368     :pathname #.(make-pathname :directory '(:relative "Extensions")
369     :name "tab-layout"))))
370 afuchs 1.1
371     (defsystem :clim-clx
372 afuchs 1.5 :depends-on (:clim #+(or sbcl openmcl ecl allegro) :clx)
373 afuchs 1.1 :components
374     ((:module "Backends/CLX"
375     :pathname #.(make-pathname :directory '(:relative "Backends" "CLX"))
376     :components
377     ((:file "package")
378 afuchs 1.2 (:file "image" :depends-on ("package"))
379 afuchs 1.1 (:file "keysyms-common" :depends-on ("package"))
380     (:file "keysyms" :depends-on ("keysyms-common" "package"))
381     (:file "keysymdef" :depends-on ("keysyms-common" "package"))
382     (:file "port" :depends-on ("keysyms-common" "keysyms" "package"))
383     (:file "medium" :depends-on ("port" "keysyms" "package"))
384     (:file "graft" :depends-on ("port" "package"))
385     (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
386 thenriksen 1.66 #+clisp
387     (defmethod asdf::traverse :around ((op compile-op) (c (eql (find-system :clim-clx))))
388     ;; Just some random symbol I know is unexported in CLISP's CLX.
389     (if (eq (nth-value 1 (find-symbol "SET-SELECTION-OWNER" :xlib))
390     :external)
391     (call-next-method)
392     (restart-case (error "Your CLX is not capable of running the McCLIM CLX backend")
393     (load-clx-via-asdf ()
394     :report "Try replacing your CLX with a CLX loaded through ASDF, hopefully this will be Telent CLX."
395     (ext:without-package-lock ("XLIB")
396     (delete-package :xlib)
397     (asdf:oos 'asdf:load-op :clx))
398     (call-next-method)))))
399 afuchs 1.1
400 rschlatte 1.64 (defsystem :clim-beagle
401     :depends-on (clim)
402     :components
403     ((:module "Backends"
404     :components
405     ((:module "beagle"
406     :serial t
407     :components
408     ((:file "package")
409     (:module "native"
410     :components ((:file "lisp-bezier-path")
411     (:file "lisp-window")
412     (:file "lisp-window-delegate")
413     (:file "lisp-view"
414     :depends-on ("lisp-bezier-path"))
415     (:file "lisp-view-additional"
416     :depends-on ("lisp-view"))
417     (:file "lisp-scroller")
418     (:file "lisp-slider")
419     (:file "lisp-button")
420     (:file "lisp-image")))
421     (:file "cocoa-util")
422     (:module "windowing"
423     :depends-on ("native")
424     :components ((:file "port")
425     (:file "frame-manager")
426     (:file "mirror")
427     (:file "graft")))
428     (:module "native-panes"
429     :components ((:file "beagle-scroll-bar-pane")
430     (:file "beagle-slider-pane")
431     ;; Basic buttons - not collections of buttons
432     (:file "beagle-fundamental-button-pane")
433     ;; Button collections (radio + checkbox)
434     ;; (:file "beagle-button-collection-pane")
435     (:file "scroller-pane-fix")))
436     (:module "output"
437     :depends-on ("windowing")
438     :components ((:file "medium")
439     (:file "fonts")))
440     (:module "input"
441     :depends-on ("windowing")
442     :components ((:file "events")
443     (:file "keysymdef")))
444     (:module "glimpse"
445     :components ((:file "glimpse")
446     (:file "glimpse-support")
447     (:file "glimpse-command-tables")
448     (:file "glimpse-present-process"
449     :depends-on ("glimpse" "glimpse-support"))
450     (:file "glimpse-present-window"
451     :depends-on ("glimpse" "glimpse-support"))
452     (:file "glimpse-modeless-commands"
453     :depends-on ("glimpse" "glimpse-support"))
454     (:file "glimpse-process-commands"
455     :depends-on ("glimpse" "glimpse-support"))
456     (:file "glimpse-window-commands"
457     :depends-on ("glimpse" "glimpse-support"))))
458     (:module "profile"
459     :components ((:file "profile")))
460     (:module "tests"
461     :components ((:file "drawing-tests")
462     (:file "graft-tests"))))))))
463     )
464    
465 crhodes 1.15 (defsystem :clim-null
466     :depends-on (:clim)
467     :components
468     ((:module "Backends/Null"
469     :pathname #.(make-pathname :directory '(:relative "Backends" "Null"))
470     :components
471     ((:file "package")
472     (:file "port" :depends-on ("package"))
473     (:file "medium" :depends-on ("port" "package"))
474     (:file "graft" :depends-on ("port" "package"))
475     (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
476    
477 dlichteblau 1.19 (defsystem :clim-gtkairo
478     :depends-on (:clim :cffi)
479     :components
480     ((:module "Backends/gtkairo"
481     :pathname #.(make-pathname :directory '(:relative "Backends" "gtkairo"))
482     :serial t ;asf wird's ja richten
483     :components
484     ((:file "clim-fix")
485     (:file "package")
486     (:file "gtk-ffi")
487     (:file "cairo-ffi")
488 dlichteblau 1.35 (:file "ffi")
489 dlichteblau 1.31 (:file "graft")
490 dlichteblau 1.19 (:file "port")
491     (:file "event")
492 dlichteblau 1.37 (:file "keys")
493 dlichteblau 1.44 (:file "medium")
494 dlichteblau 1.41 (:file "pango")
495 dlichteblau 1.44 (:file "cairo")
496 dlichteblau 1.43 (:file "gdk")
497 dlichteblau 1.19 (:file "pixmap")
498     (:file "frame-manager")
499     (:file "gadgets")))))
500    
501 dlichteblau 1.55 (defsystem :clim-graphic-forms
502     :depends-on (:clim :graphic-forms-uitoolkit)
503     :components
504     ((:module "Backends/Graphic-Forms"
505     :pathname #.(make-pathname :directory '(:relative "Backends" "Graphic-Forms"))
506     :components
507     ((:file "package")
508     (:file "utils" :depends-on ("package"))
509     (:file "graft" :depends-on ("package"))
510     (:file "port" :depends-on ("utils" "graft"))
511     (:file "medium" :depends-on ("port"))
512 junrue 1.61 (:file "pixmap" :depends-on ("medium"))
513 dlichteblau 1.55 (:file "frame-manager" :depends-on ("medium"))
514     (:file "gadgets" :depends-on ("port"))))))
515    
516 afuchs 1.1 ;;; TODO/asf: I don't have the required libs to get :clim-opengl to load. tough.
517     (clim-defsystem (:clim-opengl :depends-on (:clim))
518     "Backends/OpenGL/opengl-x-frame-manager"
519     "Backends/OpenGL/opengl-frame-manager"
520     "Backends/OpenGL/opengl-x-port-before"
521     "Backends/OpenGL/opengl-port"
522     "Backends/OpenGL/opengl-x-port-after"
523     "Backends/OpenGL/opengl-medium"
524     "Backends/OpenGL/opengl-x-graft")
525    
526     ;;; A system that loads the appropriate backend for the current
527     ;;; platform.
528     (defsystem :clim-looks
529 afuchs 1.12 :depends-on (:clim :clim-postscript
530 afuchs 1.1 ;; If we're on an implementation that ships CLX, use
531     ;; it. Same if the user has loaded CLX already.
532 dlichteblau 1.55 #+(and (or sbcl scl openmcl ecl clx allegro)
533 dlichteblau 1.68 (not (or clim-gtkairo clim-graphic-forms clim-beagle)))
534 dlichteblau 1.32 :clim-clx
535 dlichteblau 1.55 #+clim-graphic-forms :clim-graphic-forms
536 dlichteblau 1.68 #+clim-gl :clim-opengl
537 afuchs 1.1 ;; OpenMCL and MCL support the beagle backend (native
538     ;; OS X look&feel on OS X).
539 dlichteblau 1.67 #+clim-beagle :clim-beagle
540 crhodes 1.15
541 dlichteblau 1.68 #+clim-gtkairo :clim-gtkairo
542 dlichteblau 1.19
543 crhodes 1.15 ;; null backend
544     :clim-null
545 afuchs 1.1 )
546 dlichteblau 1.69 :components (#-(or clim-gtkairo clim-graphic-forms clim-beagle)
547 dlichteblau 1.32 (:file "Looks/pixie"
548 afuchs 1.1 :pathname #.(make-pathname :directory '(:relative "Looks") :name "pixie" :type "lisp"))))
549    
550 thenriksen 1.71 (defsystem :mcclim-images
551     :depends-on (:clim)
552     :components ((:module "Extensions/Images"
553     :pathname #.(make-pathname :directory '(:relative "Extensions" "Images"))
554     :components ((:file "package")
555 thenriksen 1.74 (:file "images" :depends-on ("package"))
556     (:file "image-viewer" :depends-on ("images"))))))
557 thenriksen 1.71
558     (defmacro support-format (format &rest depends-on)
559     "Generate the ASDF `defsystem' form for a single-file system
560     consisting of a file with the name `format' in
561     Extensions/Images. It will depend on the ASDF systems listed in
562     `depends-on' as well as MCCLIM-IMAGES."
563     `(defsystem ,(intern (format nil "MCCLIM-IMAGES-~A" (string-upcase format))
564     (find-package :keyword))
565     :depends-on (:mcclim-images ,@depends-on)
566     :components
567     ((:file ,format
568     :pathname ,(make-pathname :directory '(:relative "Extensions" "Images")
569     :name format)))))
570    
571     (defmacro support-formats (&rest formats)
572     "Generate the ASDF `defsystem' forms for supporting
573     `formats'."
574     `(progn ,@(loop for (format . depends-on) in formats
575     collecting `(support-format ,format ,@depends-on))))
576    
577 dlichteblau 1.72 (support-formats ("gif" :skippy) ("xpm") ("jpeg" :cl-jpeg))
578 thenriksen 1.71
579 ahefner 1.22 ;;; The actual McCLIM system that people should to use in their ASDF
580     ;;; package dependency lists.
581     (defsystem :mcclim
582 afuchs 1.60 :version "0.9.6-dev"
583 ahefner 1.22 :depends-on (:clim-looks))
584    
585 tmoore 1.8 (defmethod perform :after ((op load-op) (c (eql (find-system :clim))))
586     (pushnew :clim *features*)
587     (pushnew :mcclim *features*))
588    
589 afuchs 1.7 (defmethod perform :after ((op load-op) (c (eql (find-system :mcclim))))
590     (pushnew :clim *features*)
591 tmoore 1.8 (pushnew :mcclim *features*))
592 thenriksen 1.33
593     ;; XXX This is very ugly, but ESA and Drei need to know whether they
594     ;; are being compiled as part of McCLIM, or in another CLIM
595     ;; implementation.
596     (defmethod perform :around (op c)
597     (if (and (or (eql (component-system c) (find-system :esa-mcclim))
598     (eql (component-system c) (find-system :drei-mcclim)))
599     (not (find :building-mcclim *features*)))
600     (unwind-protect (progn (push :building-mcclim *features*)
601     (call-next-method))
602     (setf *features* (delete :building-mcclim *features*)))
603     (call-next-method)))

  ViewVC Help
Powered by ViewVC 1.1.5