-
Notifications
You must be signed in to change notification settings - Fork 95
/
dune-project
62 lines (55 loc) · 1.96 KB
/
dune-project
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
(lang dune 2.9)
(name ctypes)
(version 0.23.0)
(formatting (enabled_for dune))
(use_standard_c_and_cxx_flags true)
(generate_opam_files true)
(license MIT)
(maintainers "Jeremy Yallop <[email protected]>")
(authors "Jeremy Yallop")
(source (github yallop/ocaml-ctypes))
(documentation "https://yallop.github.io/ocaml-ctypes/")
(package
(name ctypes)
(tags (org:mirage org:ocamllabs))
(depends
(ocaml (>= 4.03.0))
integers
dune-configurator
bigarray-compat
(ounit2 :with-test)
(conf-fts (and :with-test (<> :os win32)))
(conf-pkg-config :with-test))
(synopsis "Combinators for binding to C libraries without writing any C")
(description "
ctypes is a library for binding to C libraries using pure OCaml. The primary
aim is to make writing C extensions as straightforward as possible.
The core of ctypes is a set of combinators for describing the structure of C
types -- numeric types, arrays, pointers, structs, unions and functions. You
can use these combinators to describe the types of the functions that you want
to call, then bind directly to those functions -- all without writing or
generating any C!
To install the optional `ctypes-foreign` interface (which uses `libffi` to
provide dynamic access to foreign libraries), you will need to also install
the `ctypes-foreign` package.
opam install ctypes-foreign
This will make the `ctypes-foreign` ocamlfind subpackage available."))
(package
(name ctypes-foreign)
(tags (org:mirage org:ocamllabs))
(depends
(ocaml (>= 4.03.0))
(integers (and :with-test (>= 0.2.2)))
(ctypes (= :version))
dune-configurator
conf-pkg-config
(lwt (and :with-test (>= 2.4.7)))
(ounit2 :with-test)
(conf-ncurses :with-test)
(stdlib-shims :with-test)
(conf-fts (and :with-test (<> :os win32)))
(conf-libffi (>= 2.0.0)))
(synopsis "Dynamic access to foreign C libraries using Ctypes")
(description "
This installs the `ctypes-foreign` interface which
uses `libffi` to provide dynamic access to foreign libraries."))