X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=uffi.asd;h=edc52e050723713e2278b2198080a6e43bc2925a;hb=39af1ecd34f7cefc376c62a005939f849f135629;hp=71d1c68957407a8d4daa79e986154edc9b1b2bf3;hpb=50ddc38a182350b9b832ed0616b82dad6c316ab0;p=uffi.git diff --git a/uffi.asd b/uffi.asd index 71d1c68..edc52e0 100644 --- a/uffi.asd +++ b/uffi.asd @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: uffi.asd,v 1.1 2002/08/18 00:51:54 kevin Exp $ +;;;; $Id: uffi.asd,v 1.9 2002/09/06 11:01:53 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -17,33 +17,51 @@ ;;;; ************************************************************************* (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :cl-user) +(in-package :asdf) -;; For use with non-Debian installations -(let ((helper-pathname (make-pathname :name "set-cl-library" :type "cl" +;; For use with non-Common Lisp Controller installations +#-common-lisp-controller +(let ((path (make-pathname :name "set-logical" :type "cl" :defaults *load-truename*))) - (when (probe-file helper-pathname) - (load helper-pathname))) - -(in-package :asdf) + (when (probe-file path) + (load path) + (set-logical-host-for-pathname + "uffi" + (make-pathname :host (pathname-host *load-truename*) + :device (pathname-device *load-truename*) + :directory (pathname-directory *load-truename*))))) -(defclass uffi-cl-source-file (cl-source-file) ()) -(defmethod source-file-type ((c uffi-cl-source-file) (s module)) - "cl") +(eval-when (:compile-toplevel :load-toplevel :execute) + (defconstant +uffi-logical-host+ + #+common-lisp-controller "cl-library" + #-common-lisp-controller "uffi" + "Logical hostname for loading system")) (defsystem uffi - :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"))) -) + :name "cl-uffi" + :author "Kevin M. Rosenberg