1(lang dune 3.13)
2
3(name libbpf)
4(source
5 (github koonwen/ocaml-libbpf))
6(authors "Lee Koon Wen")
7(maintainers "Lee Koon Wen")
8(license ISC BSD-3-Clause)
9(documentation https://koonwen.github.io/ocaml-libbpf)
10
11(package
12 (allow_empty)
13 (name conf-libbpf)
14 (synopsis "Virtual package for system installation of libbpf"))
15
16(package
17 (allow_empty)
18 (name conf-bpftool)
19 (synopsis "Virtual package for system installation of bpftool"))
20
21(package
22 (name libbpf)
23 (synopsis "Libbpf bindings")
24 (description "Wrapped libbpf api's for writing BPF user programs in OCaml")
25 (depends
26 (ocaml
27 (>= 4.08))
28 dune
29 (ctypes
30 (>= 0.22.0))
31 ppx_deriving
32 ppx_expect
33 conf-libbpf
34 conf-bpftool
35 conf-clang)
36 ; This is only a dependency for the examples directory
37 ; to show how to use dune to build bpf programs, it is
38 ; not part of the library bindings, however, we can't
39 ; remove it since it builds alongside the library
40 (tags
41 (bindings bpf libbpf)))
42
43(package
44 (name libbpf_maps)
45 (synopsis "Libbpf maps API")
46 (description "High level API's for interacting with BPF maps in OCaml")
47 (depends
48 (ctypes
49 (>= 0.22.0))
50 (ctypes-foreign
51 (>= 0.22.0))
52 (libbpf
53 (= :version)))
54 (tags
55 (bindings bpf libbpf)))