Skip to content

Commit 709c46c

Browse files
committed
WIP: use hs-bindgen to generate bindings
1 parent def6d5c commit 709c46c

File tree

7 files changed

+31874
-1
lines changed

7 files changed

+31874
-1
lines changed

botan-bindings/botan-bindings.cabal

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,17 @@ library
108108
Botan.Bindings.X509
109109
Botan.Bindings.ZFEC
110110

111+
build-depends: base >=4.16 && <4.22
112+
hs-source-dirs: src-generated
113+
other-modules:
114+
Botan.Bindings.Generated
115+
Botan.Bindings.Generated.FunPtr
116+
Botan.Bindings.Generated.Safe
117+
Botan.Bindings.Generated.Unsafe
118+
119+
build-depends: hs-bindgen-runtime
111120
other-modules: Paths_botan_bindings
112121
autogen-modules: Paths_botan_bindings
113-
build-depends: base >=4.16 && <4.22
114122
includes: botan/ffi.h
115123

116124
if flag(pkg-config)

0 commit comments

Comments
 (0)