r1686: *** empty log message ***
[clsql.git] / clsql-mysql.system
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          clsql-mysql.system
6 ;;;; Purpose:       Defsystem-3/4 definition file for CLSQL MySQL backend
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: clsql-mysql.system,v 1.4 2002/03/27 08:09:25 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 :make)
22
23 ;;; System definition
24
25 (defsystem :clsql-mysql
26     :source-pathname "CLSQL:interfaces;mysql;"
27     :source-extension "cl"
28     :binary-pathname "CLSQL:interfaces;mysql;bin;"
29     :components ((:file "mysql-package")
30                  (:file "mysql-loader" :depends-on ("mysql-package"))
31                  (:file "mysql-api" :depends-on ("mysql-loader"))
32                  (:file "mysql-sql" :depends-on ("mysql-api")))
33     :depends-on (:uffi :clsql :clsql-uffi)
34     :finally-do
35     (when (clsql-sys:database-type-library-loaded :mysql)
36       (clsql-sys:initialize-database-type :database-type :mysql)
37       (setq clsql:*default-database-type* :mysql)
38       (pushnew :mysql cl:*features*)))
39
40
41