diff options
author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-03-07 22:42:08 +0100 |
---|---|---|
committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-03-07 22:42:08 +0100 |
commit | e4d204992b16d46394234cc11227971c3b077021 (patch) | |
tree | 5f0ecd97141d0d6e608d00c14867f1322101931d | |
parent | a4b4371590987eb1288aa8370c9a546812ac2cca (diff) |
Prepare the build system for separate compilation of libobjcl.
darcs-hash:8bbbddc21828e04ddbf1a075f7186774a7d1c57d
-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") |