| 1 | ; -*- mode: lisp -*-
|
|---|
| 2 | (in-package #:cl-user)
|
|---|
| 3 |
|
|---|
| 4 | #-(or :clozure-common-lisp :LispWorks)
|
|---|
| 5 | (pushnew :wood-portable *features*)
|
|---|
| 6 |
|
|---|
| 7 | (asdf:defsystem :wood
|
|---|
| 8 | :description "Williams' Object Oriented Database"
|
|---|
| 9 | :author "Bill St. Clair <wws@clozure.com>"
|
|---|
| 10 | :version "0.961"
|
|---|
| 11 | :license "LLGPL"
|
|---|
| 12 | :depends-on (:closer-mop
|
|---|
| 13 | :bordeaux-threads)
|
|---|
| 14 | :in-order-to ((asdf:test-op (asdf:test-op :wood-test)))
|
|---|
| 15 | :serial t
|
|---|
| 16 | :components
|
|---|
| 17 | ((:file "package")
|
|---|
| 18 | (:file "compat")
|
|---|
| 19 | (:file "q")
|
|---|
| 20 | (:file "disk-page-hash")
|
|---|
| 21 | (:file "disk-cache")
|
|---|
| 22 | (:file "woodequ")
|
|---|
| 23 | (:file #+wood-portable "dca-portable"
|
|---|
| 24 | #+clozure-common-lisp "dca-clozure"
|
|---|
| 25 | #+LispWords "dca-lispworkd")
|
|---|
| 26 | (:file "disk-cache-accessors")
|
|---|
| 27 | #+not-yet
|
|---|
| 28 | (:file "disk-cache-inspector")
|
|---|
| 29 | #+LispWorks
|
|---|
| 30 | (:file "lw-inspector")
|
|---|
| 31 | (:file "persistent-heap")
|
|---|
| 32 | (:file "version-control")
|
|---|
| 33 | (:file "btrees")
|
|---|
| 34 | (:file "persistent-clos")
|
|---|
| 35 | ;; Not ported yet
|
|---|
| 36 | #+clozure-common-lisp
|
|---|
| 37 | (:file "recovery")
|
|---|
| 38 | #+clozure-common-lisp
|
|---|
| 39 | (:file "wood-gc")
|
|---|
| 40 | ))
|
|---|
| 41 |
|
|---|
| 42 | (asdf:defsystem :wood-test
|
|---|
| 43 | :description "Tests for WOOD"
|
|---|
| 44 | :author "Bill St. Clair <wws@clozure.com>"
|
|---|
| 45 | :version "0.1"
|
|---|
| 46 | :license "LLGPL"
|
|---|
| 47 | :depends-on (:wood :fiveam)
|
|---|
| 48 | :perform (asdf:test-op (o s)
|
|---|
| 49 | (uiop:symbol-call :wood-test '#:run-all-tests))
|
|---|
| 50 | :serial t
|
|---|
| 51 | :components
|
|---|
| 52 | ((:file "test-package")
|
|---|
| 53 | (:file "test")))
|
|---|
| 54 |
|
|---|
| 55 | #-LispWorks4 ;; LWW4 fixnums are tiny.
|
|---|
| 56 | (eval-when (:compile-toplevel :execute :load-toplevel)
|
|---|
| 57 | (pushnew :wood-fixnum-addresses *features*))
|
|---|
| 58 |
|
|---|
| 59 | #+LispWorks
|
|---|
| 60 | (eval-when (:compile-toplevel :execute :load-toplevel)
|
|---|
| 61 | (when (null (get-dispatch-macro-character #\# #\_))
|
|---|
| 62 | (set-dispatch-macro-character #\# #\_
|
|---|
| 63 | #'(lambda(s c n)
|
|---|
| 64 | (declare (ignore c n))
|
|---|
| 65 | (read s nil nil t)
|
|---|
| 66 | nil))))
|
|---|
| 67 |
|
|---|
| 68 | (setf (logical-pathname-translations "wood")
|
|---|
| 69 | (let ((path (or *load-pathname* #+ccl *loading-file-source-file*
|
|---|
| 70 | #+LispWorks dspec:*source-pathname*
|
|---|
| 71 | #+LispWorks system:*current-pathname*)))
|
|---|
| 72 | (if path
|
|---|
| 73 | (let* ((dest-dir (make-pathname :device (pathname-device path)
|
|---|
| 74 | :host (pathname-host path)
|
|---|
| 75 | :directory (append
|
|---|
| 76 | (or (pathname-directory path)
|
|---|
| 77 | '(:absolute))
|
|---|
| 78 | '(:wild-inferiors))
|
|---|
| 79 | :name :wild
|
|---|
| 80 | :type :wild))
|
|---|
| 81 | (physical-dir (translate-logical-pathname dest-dir)))
|
|---|
| 82 | ; This is what you'll get if you load this file
|
|---|
| 83 | ; or evaluate this form from this buffer.
|
|---|
| 84 | `(("wood;**;*.*" ,physical-dir)
|
|---|
| 85 | ("**;*.*" ,physical-dir)))
|
|---|
| 86 | ; This is what you'll get if you evalute this form
|
|---|
| 87 | ; from the listener.
|
|---|
| 88 | '(("wood;**;*.*" "ccl:wood;**;*.*")))))
|
|---|
| 89 |
|
|---|