forked from hdbc/hdbc-odbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HDBC-odbc.cabal
107 lines (102 loc) · 2.78 KB
/
HDBC-odbc.cabal
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Name: HDBC-odbc
Version: 2.4.0.1
Cabal-Version: >=1.8
Build-type: Simple
License: BSD3
Maintainer: Anton Dessiatov <anton.dessiatov@gmail.com>
Nicolas Wu <nicolas.wu@gmail.com>
Author: John Goerzen
Copyright: Copyright (c) 2005-2011 John Goerzen
license-file: LICENSE
extra-source-files: LICENSE, hdbc-odbc-helper.h,
Makefile,
README.md,
testsrc/TestTime.hs
changelog.txt
homepage: https://github.com/hdbc/hdbc-odbc
Category: Database
synopsis: ODBC driver for HDBC
Description: This package provides an ODBC database backend for HDBC.
It is cross-platform and supports unixODBC on Unix/Linux/POSIX platforms
and Microsoft ODBC on Windows. It is also the preferred way to access
MySQL databases from Haskell.
Stability: Beta
Flag buildtests
description: Build the executable to run unit tests
default: False
Flag buildstresstest
description: Build the stress testing executable
default: False
Library
Exposed-Modules: Database.HDBC.ODBC
Other-Modules: Database.HDBC.ODBC.Connection,
Database.HDBC.ODBC.Statement,
Database.HDBC.ODBC.Types,
Database.HDBC.ODBC.Utils,
Database.HDBC.ODBC.TypeConv,
Database.HDBC.ODBC.ConnectionImpl
Extensions:
ExistentialQuantification,
ForeignFunctionInterface,
ScopedTypeVariables
Build-Depends: base >= 4.3.1.0 && < 5
, mtl
, HDBC>=2.1.0
, time>=1.2.0.3
, utf8-string
, bytestring
C-Sources: hdbc-odbc-helper.c
if os(mingw32) || os(win32)
Extra-Libraries: odbc32
else
Extra-Libraries: odbc
include-dirs: .
-- extra-lib-dirs:
Executable runtests
if flag(buildtests)
Buildable: True
Build-Depends: HUnit, QuickCheck, testpack, containers, old-time,
time, old-locale, convertible
else
Buildable: False
Main-Is: runtests.hs
Other-Modules: Database.HDBC.ODBC,
Database.HDBC.ODBC.Connection,
Database.HDBC.ODBC.Statement,
Database.HDBC.ODBC.Types,
Database.HDBC.ODBC.Utils,
Database.HDBC.ODBC.TypeConv,
Database.HDBC.ODBC.ConnectionImpl
SpecificDB,
SpecificDBTests,
TestMisc,
TestSbasics,
TestUtils,
Testbasics,
Tests
Hs-Source-Dirs: ., testsrc
C-Sources: hdbc-odbc-helper.c
if os(mingw32) || os(win32)
Extra-Libraries: odbc32
else
Extra-Libraries: odbc
include-dirs: .
GHC-Options: -O2
Extensions:
ExistentialQuantification,
ForeignFunctionInterface,
PatternSignatures
Executable stresstest
if flag(buildstresstest)
Buildable: True
Build-Depends:
base
, HDBC
, HDBC-odbc
, random
, resource-pool
else
Buildable: False
Main-Is: stresstest.hs
Hs-Source-Dirs: stresstest
GHC-Options: -threaded -rtsopts