r3060: *** empty log message ***
[uffi.git] / uffi.asd
index fd51b51e89318dfdf7e3d8606cf81a82049e2576..c31fafb882cf34d40ccb12e1d18d6edf51a4ee57 100644 (file)
--- a/uffi.asd
+++ b/uffi.asd
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: uffi.asd,v 1.3 2002/08/18 02:26:01 kevin Exp $
+;;;; $Id: uffi.asd,v 1.20 2002/10/16 11:56:43 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 ;;;; *************************************************************************
 
 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
-(in-package :cl-user)
-
-;; For use with non-Debian installations
-(let ((helper-pathname (make-pathname :name "set-cl-library" :type "cl"
-                                     :defaults *load-truename*)))
-  (when (probe-file helper-pathname)
-      (load helper-pathname)))
-
 (in-package :asdf)
 
-(defclass uffi-cl-source-file (cl-source-file) ())
-(defmethod source-file-type ((c uffi-cl-source-file) (s module)) 
-  "cl")
-
+#+(or allegro lispworks cmu mcl cormanlisp sbcl scl)
 (defsystem uffi
   :name "cl-uffi"
-  :author "Kevin M. Rosenberg <kmr@debian.org"
-  :version "0.6.1"
-  :maintainer "Kevin M. Rosenberg <kmr@debian.org"
+  :author "Kevin M. Rosenberg <kmr@debian.org>"
+  :version "1.0.0"
+  :maintainer "Kevin M. Rosenberg <kmr@debian.org>"
   :licence "Lessor Lisp General Public License"
   :description "Universal Foreign Function Library for Common Lisp"
   :long-description "UFFI provides a universal foreign function interface (FFI) for Common Lisp. UFFI supports CMUCL, Lispworks, and AllegroCL."
   
-  :default-component-class uffi-cl-source-file
-  :pathname #-mcl "cl-library:uffi;"
-  #+mcl "cl-library:uffi;mcl;"
   :perform (load-op :after (op uffi)
-                   (pushnew :uffi cl:*features*))
-  :components 
-  ((:file "package")
-   (:file "primitives" :depends-on ("package"))
-   (:file "strings" :depends-on ("primitives"))
-   (:file "objects" :depends-on ("primitives"))
-   (:file "aggregates" :depends-on ("primitives"))
-   (:file "functions" :depends-on ("primitives"))
-   (:file "libraries" :depends-on ("package")))
-  )
+    (pushnew :uffi cl:*features*))
+
+  :components
+  ((:module :src
+           :components
+           ((:file "package")
+            (:file "primitives" :depends-on ("package"))
+            #+mcl (:file "readmacros-mcl" :depends-on ("package"))
+            (:file "strings" :depends-on ("primitives"))
+            (:file "objects" :depends-on ("primitives"))
+            (:file "aggregates" :depends-on ("primitives"))
+            (:file "functions" :depends-on ("primitives"))
+            (:file "libraries" :depends-on ("package"))
+            (:file "os" :depends-on ("package"))))
+     #+cormanlisp
+     (:module :src-corman
+             :components
+             ((:file "uffi-corman")))
+     ))
 
+#+(or allegro lispworks cmu mcl cormanlisp sbcl scl)
+(when (ignore-errors (find-class 'load-compiled-op))
+  (defmethod perform :after ((op load-compiled-op) (c (eql (find-system :uffi))))
+    (pushnew :uffi cl:*features*)))