diff options
-rw-r--r-- | Lisp/libobjcl.lisp | 1 | ||||
-rw-r--r-- | objective-cl-libobjcl.asd | 2 | ||||
-rw-r--r-- | objective-cl.asd | 20 |
3 files changed, 19 insertions, 4 deletions
diff --git a/Lisp/libobjcl.lisp b/Lisp/libobjcl.lisp index a1e25cb..988645c 100644 --- a/Lisp/libobjcl.lisp +++ b/Lisp/libobjcl.lisp @@ -19,6 +19,7 @@ (eval-when (:compile-toplevel :load-toplevel :execute) + (pushnew objcl-asdf:*objc-obj-dir* cffi:*foreign-library-directories*) (dolist (subdir '("shared_obj/" "obj/")) (pushnew (merge-pathnames subdir objcl-asdf:*objc-obj-dir*) cffi:*foreign-library-directories*))) diff --git a/objective-cl-libobjcl.asd b/objective-cl-libobjcl.asd index b61d50a..24e59bf 100644 --- a/objective-cl-libobjcl.asd +++ b/objective-cl-libobjcl.asd @@ -1,5 +1,5 @@ ;;;; Objective-CL, an Objective-C bridge for Common Lisp. -;;;; Copyright (C) 2007 Matthias Andreas Benkard. +;;;; Copyright (C) 2007, 2008 Matthias Andreas Benkard. ;;;; ;;;; This program is free software: you can redistribute it and/or ;;;; modify it under the terms of the GNU General Public License as diff --git a/objective-cl.asd b/objective-cl.asd index ba2d01e..9461373 100644 --- a/objective-cl.asd +++ b/objective-cl.asd @@ -1,5 +1,5 @@ ;;;; Objective-CL, an Objective-C bridge for Common Lisp. -;;;; Copyright (C) 2007 Matthias Andreas Benkard. +;;;; Copyright (C) 2007, 2008 Matthias Andreas Benkard. ;;;; ;;;; This program is free software: you can redistribute it and/or ;;;; modify it under the terms of the GNU General Public License as @@ -17,13 +17,27 @@ (defvar asdf::*objcl-version* "0.2.1") + +#+@use-prebuilt-objective-cl@ +(progn + (defpackage #:objcl-asdf + (:use #:cl #:asdf) + (:export #:objc-source-file + #:*objc-obj-dir*)) + + (in-package #:objcl-asdf) + (defvar *objc-obj-dir* + @prebuilt-objective-cl-location@) + (in-package #:asdf)) + + (defsystem "objective-cl" :description "A portable Objective C bridge." :version asdf::*objcl-version* :author "Matthias Benkard <matthias@benkard.de>" :licence "GNU Lesser General Public License, version 3 or higher" - :depends-on (#:cffi #:trivial-garbage #:split-sequence #:objective-cl-libobjcl - #:closer-mop) + :depends-on (#:cffi #:trivial-garbage #:split-sequence #:closer-mop + #-@use-prebuilt-objective-cl@ #:objective-cl-libobjcl) :components ((:module "Lisp" :components ((:file "defpackage") |