From e4d204992b16d46394234cc11227971c3b077021 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Fri, 7 Mar 2008 22:42:08 +0100 Subject: Prepare the build system for separate compilation of libobjcl. darcs-hash:8bbbddc21828e04ddbf1a075f7186774a7d1c57d --- Lisp/libobjcl.lisp | 1 + objective-cl-libobjcl.asd | 2 +- 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 " :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") -- cgit v1.2.3