forked from IreneKnapp/direct-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirect-sqlite.cabal
108 lines (94 loc) · 3.63 KB
/
direct-sqlite.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
108
name: direct-sqlite
version: 2.3.26
synopsis: Low-level binding to SQLite3. Includes UTF8 and BLOB support.
description: This package is not very different from the other SQLite3 bindings out
there, but it fixes a few deficiencies I was finding. As compared to
bindings-sqlite3, it is slightly higher-level, in that it supports
marshalling of data values to and from the database. In particular,
it supports strings encoded as UTF8, and BLOBs represented as
ByteStrings.
license: BSD3
license-file: LICENSE
copyright: Copyright (c) 2012 - 2014 Irene Knapp,
2014 - 2018 Janne Hellsten,
2018 - 2020 Sergey Bushnyak
author: Irene Knapp <[email protected]>
maintainer: Sergey Bushnyak <[email protected]>
category: Database
homepage: https://github.com/IreneKnapp/direct-sqlite
bug-reports: https://github.com/IreneKnapp/direct-sqlite/issues/new
build-type: Simple
extra-source-files: cbits/sqlite3.c
cbits/sqlite3.h
cbits/sqlite3ext.h
changelog
cabal-version: >= 1.10
source-repository head
type: git
location: git://github.com/IreneKnapp/direct-sqlite.git
flag systemlib
default: False
description: Use the system-wide sqlite library
flag fulltextsearch
default: True
description: Enable full-text search when using the bundled sqlite library
flag urifilenames
default: True
description: Enable URI filenames when using the bundled sqlite library
flag haveusleep
default: True
description: Enable use of os function usleep.
flag json1
default: True
description: Enable json1 extension.
library
exposed-modules: Database.SQLite3
Database.SQLite3.Bindings
Database.SQLite3.Bindings.Types
Database.SQLite3.Direct
build-depends: base >= 4.1 && < 5
, bytestring >= 0.9.2.1
, semigroups >= 0.18 && < 0.20
, text >= 0.11
default-language: Haskell2010
include-dirs: .
ghc-options: -Wall -fwarn-tabs
if flag(systemlib)
extra-libraries: sqlite3
cpp-options: -Ddirect_sqlite_systemlib
else
c-sources: cbits/sqlite3.c
install-includes: sqlite3.h, sqlite3ext.h
include-dirs: cbits
if !os(windows) && !os(android)
extra-libraries: pthread
if flag(fulltextsearch)
cc-options: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
if flag(urifilenames)
cc-options: -DSQLITE_USE_URI
if flag(haveusleep)
cc-options: -DHAVE_USLEEP
if flag(json1)
cc-options: -DSQLITE_ENABLE_JSON1
test-suite test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules: StrictEq
hs-source-dirs: test
build-depends: base
, HUnit
, base16-bytestring
, bytestring
, direct-sqlite
, directory
, temporary
, text
default-language: Haskell2010
default-extensions: Rank2Types
ScopedTypeVariables
NamedFieldPuns
RecordWildCards
OverloadedStrings
DeriveDataTypeable
ghc-options: -Wall -threaded -fno-warn-name-shadowing -fno-warn-unused-do-bind