d588c91469fb1037f5eb8aba35cbd43fc49411ca
[clsql.git] / clsql.asd
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          clsql.system
6 ;;;; Purpose:       Defsystem-3/4 for CLSQL
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: clsql.asd,v 1.6 2002/09/06 11:08:19 kevin Exp $
11 ;;;;
12 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; CLSQL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
20
21 (in-package :asdf)
22
23 #-clsql-base
24 (let ((path (make-pathname :name "clsql-base" :type "system"
25                                       :defaults *load-truename*)))
26   (when (probe-file path)
27     (load path)))
28
29 ;;; System definitions
30
31
32 (defsystem clsql
33   :pathname #.(format nil "~A:clsql;"
34                       #+common-lisp-controller "cl-library"
35                       #-common-lisp-controller "clsql")
36   :perform (load-op :after (op clsql)
37                     (pushnew :clsql cl:*features*))
38   :components ((:file "package")
39                (:file "pool" :depends-on ("package"))
40                (:file "loop-extension")
41                (:file "sql" :depends-on ("pool"))
42                (:file "transactions" :depends-on ("sql"))
43                (:file "functional" :depends-on ("sql"))
44                (:file "usql" :depends-on ("sql")))
45   :depends-on (:clsql-base)
46   )
47
48 (defmethod source-file-type  ((c cl-source-file)
49                               (s (eql (find-system 'clsql)))) 
50    "cl")
51