1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
\r
2 ;;;; *************************************************************************
\r
3 ;;;; FILE IDENTIFICATION
\r
5 ;;;; Name: clsql-mysql.system
\r
6 ;;;; Purpose: Defsystem-3/4 definition file for CLSQL MySQL backend
\r
7 ;;;; Programmer: Kevin M. Rosenberg
\r
8 ;;;; Date Started: Feb 2002
\r
10 ;;;; $Id: clsql-mysql.system,v 1.6 2002/05/13 00:45:10 kevin Exp $
\r
12 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
\r
14 ;;;; CLSQL users are granted the rights to distribute and use this software
\r
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
\r
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
\r
17 ;;;; *************************************************************************
\r
19 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
\r
23 ;;; System definition
\r
25 (defsystem :clsql-mysql
\r
26 :source-pathname "CL-LIBRARY:clsql;interfaces;mysql;"
\r
27 :source-extension "cl"
\r
28 :binary-pathname "CL-LIBRARY:clsql;interfaces;mysql;bin;"
\r
29 :components ((:file "mysql-package")
\r
30 (:file "mysql-loader" :depends-on ("mysql-package"))
\r
31 (:file "mysql-api" :depends-on ("mysql-loader"))
\r
32 (:file "mysql-sql" :depends-on ("mysql-api"))
\r
33 (:file "mysql-usql" :depends-on ("mysql-sql")))
\r
34 :depends-on (:uffi :clsql-base :clsql-uffi)
\r
36 (when (clsql-sys:database-type-library-loaded :mysql)
\r
37 (clsql-sys:initialize-database-type :database-type :mysql)
\r
38 (setq clsql:*default-database-type* :mysql)
\r
39 (pushnew :mysql cl:*features*)))
\r