-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclsql.asd
81 lines (78 loc) · 3.62 KB
/
clsql.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: clsql.asd
;;;; Purpose: ASDF System definition for CLSQL
;;;; Authors: Marcus Pearce and Kevin M. Rosenberg
;;;; Created: March 2004
;;;;
;;;; CLSQL users are granted the rights to distribute and use this software
;;;; as governed by the terms of the Lisp Lesser GNU Public License
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
#+(and clisp (not :clsql-cffi))
(asdf:operate 'asdf:load-op 'clsql-cffi)
(defsystem clsql
:name "CLSQL"
:author "Kevin Rosenberg <[email protected]>"
:maintainer "Kevin M. Rosenberg <[email protected]>"
:licence "MIT"
:description "Common Lisp SQL Interface library"
:long-description "A Common Lisp interface to SQL RDBMS based on
the Xanalys CommonSQL interface for Lispworks. It provides low-level
database interfaces as well as a functional and an object
oriented interface."
:version "6.4"
:components
((:module "sql"
:components
((:module "base"
:components ((:file "cmucl-compat")
(:file "package")
(:file "kmr-mop" :depends-on ("package"))
(:file "base-classes" :depends-on ("package"))
(:file "conditions" :depends-on ("base-classes"))
(:file "db-interface" :depends-on ("conditions"))
(:file "decimals" :depends-on ("package" "db-interface"))
(:file "utils" :depends-on ("package" "db-interface"))
(:file "time" :depends-on ("package" "conditions" "utils"))
(:file "generics" :depends-on ("package"))))
(:module "database"
:depends-on ("base")
:components ((:file "initialize")
(:file "database" :depends-on ("initialize"))
(:file "recording" :depends-on ("database"))
(:file "pool" :depends-on ("database"))))
(:module "syntax"
:depends-on ("database")
:components ((:file "expressions")
(:file "operations" :depends-on ("expressions"))
(:file "syntax" :depends-on ("operations"))))
(:module "functional"
:depends-on ("syntax")
:components ((:file "fdml")
(:file "transaction" :depends-on ("fdml"))
#+clisp (:file "ansi-loop")
(:file "loop-extension" :depends-on ("fdml" #+clisp "ansi-loop"))
(:file "fddl" :depends-on ("fdml"))))
(:module "object"
:depends-on ("functional")
:components ((:file "metaclasses")
(:file "ooddl" :depends-on ("metaclasses"))
(:file "oodml" :depends-on ("ooddl"))))
(:module "generic"
:depends-on ("functional")
:components ((:file "generic-postgresql")
(:file "generic-odbc")
(:file "sequences")
(:file "command-object"))))))
:in-order-to ((test-op (test-op "clsql-tests"))))
(defmethod perform :after ((o load-op) (c (eql (find-system 'clsql))))
(let* ((init-var (uiop:getenv "CLSQLINIT"))
(init-file (or (when init-var (probe-file init-var))
(probe-file (merge-pathnames ".clsql-init.lisp" (user-homedir-pathname)))
(probe-file "/etc/clsql-init.lisp")
#+(or mswin windows win32 win64 mswindows)
(probe-file "c:\\etc\\clsql-init.lisp"))))
(when init-file (load init-file))))