-
Notifications
You must be signed in to change notification settings - Fork 56
/
hlibgit2.cabal
243 lines (235 loc) · 6.45 KB
/
hlibgit2.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
Name: hlibgit2
Version: 0.18.0.15
Synopsis: Low-level bindings to libgit2
Description: Bindings to libgit2 v0.18.0.
License-file: LICENSE
License: MIT
Author: John Wiegley, Sakari Jokinen, Jacob Stanleyyeah,
Maintainer: johnw@newartisans.com
Build-Type: Custom
Cabal-Version: >=1.10
Category: FFI
Extra-source-files:
libgit2/deps/http-parser/*.h
libgit2/include/git2.h
libgit2/include/git2/*.h
libgit2/src/*.h
libgit2/src/hash/*.h
libgit2/src/transports/*.h
libgit2/src/unix/*.h
libgit2/src/win32/*.h
libgit2/src/xdiff/*.h
libgit2/COPYING
Source-repository head
type: git
location: git://github.com/jwiegley/gitlib.git
Test-suite smoke
default-language: Haskell98
type: exitcode-stdio-1.0
ghc-options: -Wall
if os(linux)
ghc-options: -optl-pthread
main-is: Main.hs
hs-source-dirs: test
build-depends:
base >=3
, hlibgit2
, process
build-tools:
git
Library
hs-source-dirs: .
ghc-options: -Wall
default-language: Haskell98
default-extensions:
ForeignFunctionInterface
build-depends:
base >= 3 && < 5
, bindings-DSL >= 1.0.11
, zlib >= 0.5.4
exposed-modules:
Bindings.Libgit2
Bindings.Libgit2.Attr
Bindings.Libgit2.Blob
Bindings.Libgit2.Branch
Bindings.Libgit2.Checkout
Bindings.Libgit2.Clone
Bindings.Libgit2.Commit
Bindings.Libgit2.Common
Bindings.Libgit2.Config
Bindings.Libgit2.CredHelpers
Bindings.Libgit2.Diff
Bindings.Libgit2.Errors
Bindings.Libgit2.Graph
Bindings.Libgit2.Ignore
Bindings.Libgit2.Index
Bindings.Libgit2.Indexer
Bindings.Libgit2.Merge
Bindings.Libgit2.Message
Bindings.Libgit2.Net
Bindings.Libgit2.Notes
Bindings.Libgit2.Object
Bindings.Libgit2.Odb
Bindings.Libgit2.OdbBackend
Bindings.Libgit2.Oid
Bindings.Libgit2.Pack
Bindings.Libgit2.Push
Bindings.Libgit2.Refdb
Bindings.Libgit2.RefdbBackend
Bindings.Libgit2.Reflog
Bindings.Libgit2.Refs
Bindings.Libgit2.Refspec
Bindings.Libgit2.Remote
Bindings.Libgit2.Repository
Bindings.Libgit2.Reset
Bindings.Libgit2.Revparse
Bindings.Libgit2.Revwalk
Bindings.Libgit2.Signature
Bindings.Libgit2.Stash
Bindings.Libgit2.Status
Bindings.Libgit2.Strarray
Bindings.Libgit2.Submodule
Bindings.Libgit2.Tag
Bindings.Libgit2.Threads
Bindings.Libgit2.Trace
Bindings.Libgit2.Transport
Bindings.Libgit2.Tree
Bindings.Libgit2.Types
Bindings.Libgit2.Version
Bindings.Libgit2.Windows
c-sources:
Bindings/Libgit2/Attr.hsc.helper.c
Bindings/Libgit2/Blob.hsc.helper.c
Bindings/Libgit2/Commit.hsc.helper.c
Bindings/Libgit2/Common.hsc.helper.c
Bindings/Libgit2/Oid.hsc.helper.c
Bindings/Libgit2/Tag.hsc.helper.c
Bindings/Libgit2/Tree.hsc.helper.c
libgit2/src/attr.c
libgit2/src/attr_file.c
libgit2/src/blob.c
libgit2/src/branch.c
libgit2/src/buf_text.c
libgit2/src/buffer.c
libgit2/src/cache.c
libgit2/src/checkout.c
libgit2/src/clone.c
libgit2/src/commit.c
libgit2/src/commit_list.c
libgit2/src/compress.c
libgit2/src/config.c
libgit2/src/config_cache.c
libgit2/src/config_file.c
libgit2/src/crlf.c
libgit2/src/date.c
libgit2/src/delta-apply.c
libgit2/src/delta.c
libgit2/src/diff.c
libgit2/src/diff_output.c
libgit2/src/diff_tform.c
libgit2/src/errors.c
libgit2/src/fetch.c
libgit2/src/fetchhead.c
libgit2/src/filebuf.c
libgit2/src/fileops.c
libgit2/src/filter.c
libgit2/src/fnmatch.c
libgit2/src/global.c
libgit2/src/graph.c
libgit2/src/hash.c
libgit2/src/hashsig.c
libgit2/src/ignore.c
libgit2/src/index.c
libgit2/src/indexer.c
libgit2/src/iterator.c
libgit2/src/merge.c
libgit2/src/message.c
libgit2/src/mwindow.c
libgit2/src/netops.c
libgit2/src/notes.c
libgit2/src/object.c
libgit2/src/odb.c
libgit2/src/odb_loose.c
libgit2/src/odb_pack.c
libgit2/src/oid.c
libgit2/src/pack-objects.c
libgit2/src/pack.c
libgit2/src/path.c
libgit2/src/pathspec.c
libgit2/src/pool.c
libgit2/src/posix.c
libgit2/src/pqueue.c
libgit2/src/push.c
libgit2/src/refdb.c
libgit2/src/refdb_fs.c
libgit2/src/reflog.c
libgit2/src/refs.c
libgit2/src/refspec.c
libgit2/src/remote.c
libgit2/src/repository.c
libgit2/src/reset.c
libgit2/src/revparse.c
libgit2/src/revwalk.c
libgit2/src/sha1_lookup.c
libgit2/src/signature.c
libgit2/src/stash.c
libgit2/src/status.c
libgit2/src/submodule.c
libgit2/src/tag.c
libgit2/src/thread-utils.c
libgit2/src/trace.c
libgit2/src/transport.c
libgit2/src/tree-cache.c
libgit2/src/tree.c
libgit2/src/tsort.c
libgit2/src/util.c
libgit2/src/vector.c
libgit2/src/transports/cred.c
libgit2/src/transports/cred_helpers.c
libgit2/src/transports/git.c
libgit2/src/transports/http.c
libgit2/src/transports/local.c
libgit2/src/transports/smart.c
libgit2/src/transports/smart_pkt.c
libgit2/src/transports/smart_protocol.c
libgit2/src/xdiff/xdiffi.c
libgit2/src/xdiff/xemit.c
libgit2/src/xdiff/xhistogram.c
libgit2/src/xdiff/xmerge.c
libgit2/src/xdiff/xpatience.c
libgit2/src/xdiff/xprepare.c
libgit2/src/xdiff/xutils.c
libgit2/deps/http-parser/http_parser.c
include-dirs:
libgit2/include
libgit2/src
libgit2/deps/http-parser
cc-options: -DGIT_THREADS -D_FILE_OFFSET_BITS=64 -DGIT_SSL -Wno-format
if os(windows)
cpp-options: -DWINDOWS
cc-options: -DGIT_WIN32 -DWIN32 -DWIN32_SHA1 -D_DEBUG -D_WIN32_WINNT=0x0501 -DGIT_WINHTTP
c-sources:
libgit2/src/hash/hash_win32.c
libgit2/src/transports/winhttp.c
libgit2/src/win32/dir.c
libgit2/src/win32/error.c
libgit2/src/win32/findfile.c
libgit2/src/win32/map.c
libgit2/src/win32/posix_w32.c
libgit2/src/win32/precompiled.c
libgit2/src/win32/pthread.c
libgit2/src/win32/utf-conv.c
include-dirs:
libgit2/src/win32
extra-libraries:
ws2_32, regex, winhttp, crypt32, rpcrt4, ssl, crypto
else
cc-options: -D_GNU_SOURCE -DOPENSSL_SHA1 -Wno-deprecated-declarations
c-sources:
-- libgit2/src/hash/hash_generic.c
libgit2/src/unix/map.c
libgit2/src/unix/realpath.c
include-dirs:
libgit2/src/unix
extra-libraries:
ssl, crypto, pthread