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

Contents of /mcclim/mcclim.asd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.82 - (show annotations)
Wed Apr 30 21:27:48 2008 UTC (5 years, 11 months ago) by thenriksen
Branch: MAIN
Changes since 1.81: +2 -2 lines
Really Fix dead keys.

Now integrated with the gesture reading machinery in
standard-extended-input-steeam, so it can be circumvented if you
really don't want it by handling events manually.
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 (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 (find-swank-system)))
44 (defun dep-on-swank ()
45 (if (and (find-swank-system)
46 (not (find-package :swank)))
47 '(:and)
48 '(:or)))
49 (defun ifswank ()
50 (if (find-swank)
51 '(:and)
52 '(:or))))
53
54 ;;; 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 (if (fboundp 'extensions:without-package-locks)
62 (extensions:without-package-locks
63 (load "gray-streams:gray-streams-library"))
64 (load "gray-streams:gray-streams-library")))
65 #-(or clx clim-gtkairo clim-graphic-forms)
66 (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 ;;; 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
74 #+allegro
75 (progn
76 (defclass requireable-system (asdf:system)
77 ())
78 (defmethod asdf:perform ((op asdf:load-op) (system requireable-system))
79 (require (intern (slot-value system 'asdf::name) :keyword)))
80 (defmethod asdf::traverse ((op asdf:load-op) (system requireable-system))
81 (list (cons op system)))
82 (defsystem :clx
83 :class requireable-system))
84
85 ;;; Required for the beagle backend (not activated by default)
86 #+clim-beagle
87 (progn
88 (require :cocoa)
89 (require :objc-support))
90
91 (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 collect `(:file ,(namestring p) :pathname ,p))))))
104
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 #+scl "fix-scl"
114 #+excl "fix-acl"
115 #+sbcl "fix-sbcl"
116 #+openmcl "fix-openmcl"
117 #+lispworks "fix-lispworks"
118 #+clisp "fix-clisp")))
119 (:file "package" :depends-on ("Lisp-Dep" "patch"))))
120
121 (defsystem :clim-basic
122 :depends-on (:clim-lisp :spatial-trees (:version "flexichain" "1.5.1"))
123 :components ((:file "decls")
124 (:file "protocol-classes" :depends-on ("decls"))
125 (:module "Lisp-Dep"
126 :depends-on ("decls")
127 :components
128 ((: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 (:file "utils" :depends-on ("decls" "Lisp-Dep"))
138 (: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 (:file "setf-star" :depends-on ("decls" "Lisp-Dep"))
142 (: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 "transforms" "design"))
151 (: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 "regions" "design" "transforms"))
156 (:file "views" :depends-on ("utils" "protocol-classes"))
157 (:file "stream-output" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "design" "utils" "X11-colors" "views"
158 "output" "sheets" "regions" "graphics"
159 "medium" "setf-star"))
160 (:file "recording" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "output" "coordinates" "graphics" "design"
161 "medium" "transforms" "regions" "sheets"
162 "utils" "stream-output"))
163 (:file "encapsulate" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "sheets" "graphics" "utils" "medium" "input"
164 "stream-output" "recording"))
165 (:file "stream-input" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "input" "ports" "sheets" "events"
166 "encapsulate" "transforms" "utils"))
167 (:file "dead-keys" :depends-on ("stream-input"))
168 (:file "text-selection" :depends-on ("decls" "protocol-classes" "Lisp-Dep" "X11-colors" "medium" "output"
169 "transforms" "sheets" "stream-output"
170 "ports" "recording" "regions"
171 "events"))
172 (:file "bezier" :depends-on ("recording"))))
173
174 (defsystem :goatee-core
175 :depends-on (:clim-basic)
176 :components
177 ((:module "Goatee"
178 :components
179 ((:file "conditions")
180 (:file "dbl-list")
181 (:file "flexivector" :depends-on ("conditions" "dbl-list"))
182 (:file "buffer" :depends-on ("conditions" "flexivector" "dbl-list"))
183 (:file "editable-buffer" :depends-on ("dbl-list" "flexivector" "buffer"))
184 (:file "editable-area" :depends-on ("flexivector" "editable-buffer" "dbl-list"
185 "buffer"))
186 (:file "clim-area" :depends-on ("flexivector" "dbl-list" "buffer"
187 "editable-area" "editable-buffer"))
188 (:file "kill-ring" :depends-on ("editable-buffer" "dbl-list" "flexivector"
189 "buffer"))
190 (:file "goatee-command" :depends-on ("conditions" "clim-area" "dbl-list"
191 "editable-buffer" "kill-ring"
192 "editable-area" "buffer" "flexivector"))
193 (:file "editing-stream" :depends-on ("goatee-command" "kill-ring" "dbl-list"
194 "conditions" "editable-buffer"
195 "flexivector" "clim-area" "buffer"))
196 (:file "presentation-history" :depends-on ("editing-stream" "buffer"
197 "flexivector" "editable-buffer"
198 "goatee-command"))))))
199 ;;; CLIM-PostScript is not a backend in the normal sense.
200 ;;; It is an extension (Chap. 35.1 of the spec) and is an
201 ;;; "included" part of McCLIM. Hence the defsystem is here.
202 (defsystem :clim-postscript
203 :depends-on (:clim-basic)
204 :components
205 ((:module "Backends/PostScript"
206 :pathname #.(make-pathname :directory '(:relative "Backends" "PostScript"))
207 :components
208 ((:file "package")
209 (:file "encoding" :depends-on ("package"))
210 (:file "paper" :depends-on ("package"))
211 (:file "class" :depends-on ("paper" "package"))
212 (:file "font" :depends-on ("encoding" "class" "paper" "package"))
213 (:file "graphics" :depends-on ("encoding" "paper" "class" "font" "package"))
214 (:file "sheet" :depends-on ("paper" "class" "graphics" "package"))
215 (:file "afm" :depends-on ("class" "paper" "font" "package"))
216 (:file "standard-metrics" :depends-on ("font" "package"))))))
217
218 (defsystem :clim-core
219 :depends-on (:clim-basic :goatee-core :clim-postscript)
220 :components ((:file "text-formatting")
221 (:file "defresource")
222 (:file "presentations")
223 (:file "xpm")
224 (:file "bordered-output" :depends-on ("presentations"))
225 (:file "table-formatting" :depends-on ("presentations"))
226 (:file "input-editing" :depends-on ("presentations" "bordered-output" "table-formatting"))
227 (:file "pointer-tracking" :depends-on ("input-editing"))
228 (:file "graph-formatting")
229 (:file "frames" :depends-on ("commands" "presentations" "presentation-defs"
230 "pointer-tracking" "incremental-redisplay"))
231 (:file "dialog-views" :depends-on ("presentations" "incremental-redisplay"
232 "bordered-output" "presentation-defs"))
233 (:file "presentation-defs" :depends-on ("input-editing" "presentations"))
234 (:file "gadgets" :depends-on ("commands" "pointer-tracking" "input-editing"
235 "frames" "incremental-redisplay" "panes"))
236 (:file "describe" :depends-on ("presentations" "presentation-defs" "table-formatting"))
237 (:file "commands" :depends-on ("input-editing" "presentations"
238 "presentation-defs"))
239 (:file "incremental-redisplay" :depends-on ("presentation-defs"))
240 (:file "menu-choose" :depends-on ("commands" "table-formatting" "presentation-defs"
241 "panes" "frames" "pointer-tracking"
242 "presentations"))
243 (:file "menu" :depends-on ("panes" "commands" "gadgets"
244 "presentations" "frames"))
245 (:file "panes" :depends-on ("incremental-redisplay" "presentations"
246 "presentation-defs" "input-editing" "frames"))
247 (:file "dialog" :depends-on ("panes" "frames" "incremental-redisplay"
248 "table-formatting" "presentations"
249 "bordered-output" "presentation-defs"
250 "dialog-views" "input-editing"
251 "commands"))
252 (:file "builtin-commands" :depends-on ("table-formatting"
253 "commands" "presentations"
254 "dialog" "presentation-defs"
255 "input-editing"))))
256
257 (defsystem :esa-mcclim
258 :depends-on (:clim-core)
259 :components ((:module "ESA"
260 :components ((:file "packages")
261 (:file "utils" :depends-on ("packages"))
262 (:file "colors" :depends-on ("packages"))
263 (:file "esa" :depends-on ("colors" "packages" "utils"))
264 (:file "esa-buffer" :depends-on ("packages" "esa"))
265 (:file "esa-io" :depends-on ("packages" "esa" "esa-buffer"))
266 (:file "esa-command-parser" :depends-on ("packages" "esa"))))))
267
268
269
270 (defsystem :drei-mcclim
271 :depends-on ((:version "flexichain" "1.5.1") :esa-mcclim :clim-core #+#.(mcclim.system::dep-on-swank) :swank)
272 :components
273 ((:module "cl-automaton"
274 :pathname #.(make-pathname :directory '(:relative "Drei" "cl-automaton"))
275 :components ((:file "automaton-package")
276 (:file "eqv-hash" :depends-on ("automaton-package"))
277 (:file "state-and-transition" :depends-on ("eqv-hash"))
278 (:file "automaton" :depends-on ("state-and-transition" "eqv-hash"))
279 (:file "regexp" :depends-on ("automaton"))))
280 (:module "Persistent"
281 :pathname #.(make-pathname :directory '(:relative "Drei" "Persistent"))
282 :components ((:file "binseq-package")
283 (:file "binseq" :depends-on ("binseq-package"))
284 (:file "obinseq" :depends-on ("binseq-package" "binseq"))
285 (:file "binseq2" :depends-on ("binseq-package" "obinseq" "binseq"))))
286 (:module "Drei" :depends-on ("cl-automaton" "Persistent")
287 :components ((:file "packages")
288 (:file "buffer" :depends-on ("packages"))
289 (:file "delegating-buffer" :depends-on ("packages" "buffer"))
290 (:file "motion" :depends-on ("packages" "buffer" "syntax"))
291 (:file "editing" :depends-on ("packages" "buffer" "syntax" "motion" "kill-ring"))
292 (:file "base" :depends-on ("packages" "buffer" "persistent-buffer" "kill-ring"
293 "delegating-buffer"))
294 (:file "syntax" :depends-on ("packages" "buffer" "base"))
295 (:file "modes" :depends-on ("packages" "syntax"))
296 (:file "views" :depends-on ("packages" "buffer" "base" "syntax" "persistent-undo"
297 "persistent-buffer" "undo" "abbrev"
298 "delegating-buffer" "modes"))
299 (:file "drei" :depends-on ("packages" "views" "motion" "editing"))
300 (:file "drei-clim" :depends-on ("drei"))
301 (:file "drei-redisplay" :depends-on ("drei-clim"))
302 (:file "drawing-options" :depends-on ("drei-redisplay"))
303 (:file "input-editor" :depends-on ("drei-redisplay" "lisp-syntax" "core"))
304 (:file "abbrev" :depends-on ("packages"))
305 (:file "kill-ring" :depends-on ("packages"))
306 (:file "undo" :depends-on ("packages"))
307 (:file "basic-commands" :depends-on ("drei-clim" "motion" "editing"))
308 (:file "core" :depends-on ("drei"))
309 (:file "fundamental-syntax" :depends-on ("packages" "drei-redisplay" "core"))
310 (:file "buffer-streams" :depends-on ("core"))
311 (:file "rectangle" :depends-on ("core"))
312 (:file "targets" :depends-on ("core"))
313 (:file "core-commands" :depends-on ("core" "rectangle" "drei-clim"))
314 (:file "persistent-buffer"
315 :pathname #.(make-pathname :directory '(:relative "Persistent")
316 :name "persistent-buffer"
317 :type "lisp")
318 :depends-on ("packages"))
319 (:file "persistent-undo"
320 :pathname #p"Persistent/persistent-undo.lisp"
321 :depends-on ("packages" "buffer" "persistent-buffer" "undo"))
322 (:file "misc-commands" :depends-on ("basic-commands"))
323 (:file "search-commands" :depends-on ("core" "targets" "drei-clim"))
324 (:file "lr-syntax" :depends-on ("fundamental-syntax" "core" "drawing-options"))
325 (:file "lisp-syntax" :depends-on ("lr-syntax" "motion" "core"))
326 (:file "lisp-syntax-swine" :depends-on ("lisp-syntax"))
327 (:file "lisp-syntax-commands" :depends-on ("lisp-syntax-swine" "misc-commands"))
328 #+#.(mcclim.system::ifswank) (:file "lisp-syntax-swank" :depends-on ("lisp-syntax"))))))
329
330 (defsystem :drei-tests
331 :depends-on (:drei-mcclim :fiveam)
332 :components
333 ((:module "Tests"
334 :pathname #.(make-pathname :directory '(:relative "Drei" "Tests"))
335 :components
336 ((:module
337 "cl-automaton"
338 :depends-on ("testing")
339 :components
340 ((:file "automaton-tests")
341 (:file "state-and-transition-tests" :depends-on ("automaton-tests"))
342 (:file "eqv-hash-tests" :depends-on ("automaton-tests"))
343 (:file "regexp-tests" :depends-on ("automaton-tests"))))
344 (:file "packages")
345 (:file "testing" :depends-on ("packages"))
346 (:file "buffer-tests" :depends-on ("testing"))
347 (:file "base-tests" :depends-on ("testing"))
348 (:file "kill-ring-tests" :depends-on ("testing"))
349 (:file "motion-tests" :depends-on ("testing"))
350 (:file "editing-tests" :depends-on ("testing"))
351 (:file "core-tests" :depends-on ("testing"))
352 (:file "buffer-streams-tests" :depends-on ("testing"))
353 (:file "rectangle-tests" :depends-on ("testing"))
354 (:file "undo-tests" :depends-on ("testing"))
355 (:file "lisp-syntax-tests" :depends-on ("testing" "motion-tests"))
356 (:file "lisp-syntax-swine-tests" :depends-on ("lisp-syntax-tests"))))))
357
358 (defsystem :clim
359 :depends-on (:clim-core :goatee-core :clim-postscript :drei-mcclim)
360 :components
361 ((:file "Goatee/presentation-history" ; XXX: this is loaded as part of the Goatee system. huh?
362 :pathname #.(make-pathname :directory '(:relative "Goatee") :name "presentation-history" :type "lisp"))
363 (:file "input-editing-goatee")
364 (:file "input-editing-drei")
365 (:file "text-editor-gadget")
366 (:file "Extensions/tab-layout"
367 :pathname #.(make-pathname :directory '(:relative "Extensions")
368 :name "tab-layout"))))
369
370 (defsystem :clim-clx
371 :depends-on (:clim #+(or sbcl openmcl ecl allegro) :clx)
372 :components
373 ((:module "Backends/CLX"
374 :pathname #.(make-pathname :directory '(:relative "Backends" "CLX"))
375 :components
376 ((:file "package")
377 (:file "image" :depends-on ("package"))
378 (:file "keysyms-common" :depends-on ("package"))
379 (:file "keysyms" :depends-on ("keysyms-common" "package"))
380 (:file "keysymdef" :depends-on ("keysyms-common" "package"))
381 (:file "port" :depends-on ("keysyms-common" "keysyms" "package"))
382 (:file "medium" :depends-on ("port" "keysyms" "package"))
383 (:file "graft" :depends-on ("port" "package"))
384 (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
385 #+clisp
386 (defmethod asdf::traverse :around ((op compile-op) (c (eql (find-system :clim-clx))))
387 ;; Just some random symbol I know is unexported in CLISP's CLX.
388 (if (eq (nth-value 1 (find-symbol "SET-SELECTION-OWNER" :xlib))
389 :external)
390 (call-next-method)
391 (restart-case (error "Your CLX is not capable of running the McCLIM CLX backend")
392 (load-clx-via-asdf ()
393 :report "Try replacing your CLX with a CLX loaded through ASDF, hopefully this will be Telent CLX."
394 (ext:without-package-lock ("XLIB")
395 (delete-package :xlib)
396 (asdf:oos 'asdf:load-op :clx))
397 (call-next-method)))))
398
399 (defsystem :clim-beagle
400 :depends-on (clim)
401 :components
402 ((:module "Backends"
403 :components
404 ((:module "beagle"
405 :serial t
406 :components
407 ((:file "package")
408 (:module "native"
409 :components ((:file "lisp-bezier-path")
410 (:file "lisp-window")
411 (:file "lisp-window-delegate")
412 (:file "lisp-view"
413 :depends-on ("lisp-bezier-path"))
414 (:file "lisp-view-additional"
415 :depends-on ("lisp-view"))
416 (:file "lisp-scroller")
417 (:file "lisp-slider")
418 (:file "lisp-button")
419 (:file "lisp-image")))
420 (:file "cocoa-util")
421 (:module "windowing"
422 :depends-on ("native")
423 :components ((:file "port")
424 (:file "frame-manager")
425 (:file "mirror")
426 (:file "graft")))
427 (:module "native-panes"
428 :components ((:file "beagle-scroll-bar-pane")
429 (:file "beagle-slider-pane")
430 ;; Basic buttons - not collections of buttons
431 (:file "beagle-fundamental-button-pane")
432 ;; Button collections (radio + checkbox)
433 ;; (:file "beagle-button-collection-pane")
434 (:file "scroller-pane-fix")))
435 (:module "output"
436 :depends-on ("windowing")
437 :components ((:file "medium")
438 (:file "fonts")))
439 (:module "input"
440 :depends-on ("windowing")
441 :components ((:file "events")
442 (:file "keysymdef")))
443 (:module "glimpse"
444 :components ((:file "glimpse")
445 (:file "glimpse-support")
446 (:file "glimpse-command-tables")
447 (:file "glimpse-present-process"
448 :depends-on ("glimpse" "glimpse-support"))
449 (:file "glimpse-present-window"
450 :depends-on ("glimpse" "glimpse-support"))
451 (:file "glimpse-modeless-commands"
452 :depends-on ("glimpse" "glimpse-support"))
453 (:file "glimpse-process-commands"
454 :depends-on ("glimpse" "glimpse-support"))
455 (:file "glimpse-window-commands"
456 :depends-on ("glimpse" "glimpse-support"))))
457 (:module "profile"
458 :components ((:file "profile")))
459 (:module "tests"
460 :components ((:file "drawing-tests")
461 (:file "graft-tests"))))))))
462 )
463
464 (defsystem :clim-null
465 :depends-on (:clim)
466 :components
467 ((:module "Backends/Null"
468 :pathname #.(make-pathname :directory '(:relative "Backends" "Null"))
469 :components
470 ((:file "package")
471 (:file "port" :depends-on ("package"))
472 (:file "medium" :depends-on ("port" "package"))
473 (:file "graft" :depends-on ("port" "package"))
474 (:file "frame-manager" :depends-on ("medium" "port" "package"))))))
475
476 (defsystem :clim-gtkairo
477 :depends-on (:clim :cffi)
478 :components
479 ((:module "Backends/gtkairo"
480 :pathname #.(make-pathname :directory '(:relative "Backends" "gtkairo"))
481 :serial t ;asf wird's ja richten
482 :components
483 ((:file "clim-fix")
484 (:file "package")
485 (:file "gtk-ffi")
486 (:file "cairo-ffi")
487 (:file "ffi")
488 (:file "graft")
489 (:file "port")
490 (:file "event")
491 (:file "keys")
492 (:file "medium")
493 (:file "pango")
494 (:file "cairo")
495 (:file "gdk")
496 (:file "pixmap")
497 (:file "frame-manager")
498 (:file "gadgets")))))
499
500 (defsystem :clim-graphic-forms
501 :depends-on (:clim :graphic-forms-uitoolkit)
502 :components
503 ((:module "Backends/Graphic-Forms"
504 :pathname #.(make-pathname :directory '(:relative "Backends" "Graphic-Forms"))
505 :components
506 ((:file "package")
507 (:file "utils" :depends-on ("package"))
508 (:file "graft" :depends-on ("package"))
509 (:file "port" :depends-on ("utils" "graft"))
510 (:file "medium" :depends-on ("port"))
511 (:file "pixmap" :depends-on ("medium"))
512 (:file "frame-manager" :depends-on ("medium"))
513 (:file "gadgets" :depends-on ("port"))))))
514
515 ;;; TODO/asf: I don't have the required libs to get :clim-opengl to load. tough.
516 (clim-defsystem (:clim-opengl :depends-on (:clim))
517 "Backends/OpenGL/opengl-x-frame-manager"
518 "Backends/OpenGL/opengl-frame-manager"
519 "Backends/OpenGL/opengl-x-port-before"
520 "Backends/OpenGL/opengl-port"
521 "Backends/OpenGL/opengl-x-port-after"
522 "Backends/OpenGL/opengl-medium"
523 "Backends/OpenGL/opengl-x-graft")
524
525 ;;; A system that loads the appropriate backend for the current
526 ;;; platform.
527 (defsystem :clim-looks
528 :depends-on (:clim :clim-postscript
529 ;; If we're on an implementation that ships CLX, use
530 ;; it. Same if the user has loaded CLX already.
531 #+(and (or sbcl scl openmcl ecl clx allegro)
532 (not (or clim-gtkairo clim-graphic-forms clim-beagle)))
533 :clim-clx
534 #+clim-graphic-forms :clim-graphic-forms
535 #+clim-gl :clim-opengl
536 ;; OpenMCL and MCL support the beagle backend (native
537 ;; OS X look&feel on OS X).
538 #+clim-beagle :clim-beagle
539
540 #+clim-gtkairo :clim-gtkairo
541
542 ;; null backend
543 :clim-null
544 )
545 :components (#-(or clim-gtkairo clim-graphic-forms clim-beagle)
546 (:file "Looks/pixie"
547 :pathname #.(make-pathname :directory '(:relative "Looks") :name "pixie" :type "lisp"))))
548
549 ;;; The actual McCLIM system that people should to use in their ASDF
550 ;;; package dependency lists.
551 (defsystem :mcclim
552 :version "0.9.7-dev"
553 :depends-on (:clim-looks))
554
555 (defmethod perform :after ((op load-op) (c (eql (find-system :clim))))
556 (pushnew :clim *features*)
557 (pushnew :mcclim *features*))
558
559 (defmethod perform :after ((op load-op) (c (eql (find-system :mcclim))))
560 (pushnew :clim *features*)
561 (pushnew :mcclim *features*))
562
563 ;; XXX This is very ugly, but ESA and Drei need to know whether they
564 ;; are being compiled as part of McCLIM, or in another CLIM
565 ;; implementation.
566 (defmethod perform :around (op c)
567 (if (and (or (eql (component-system c) (find-system :esa-mcclim))
568 (eql (component-system c) (find-system :drei-mcclim)))
569 (not (find :building-mcclim *features*)))
570 (unwind-protect (progn (push :building-mcclim *features*)
571 (call-next-method))
572 (setf *features* (delete :building-mcclim *features*)))
573 (call-next-method)))

  ViewVC Help
Powered by ViewVC 1.1.5