this repo has no description
1(library
2 (name c_type_description)
3 (public_name libbpf.c_type_description)
4 (libraries ctypes)
5 (modules c_type_description))
6
7(rule
8 (target c_types_generated.ml)
9 (deps stubgen/gen_type_bindings_from_c.exe)
10 (action
11 (with-stdout-to
12 %{target}
13 (run %{deps}))))
14
15(library
16 (name c_function_description)
17 (public_name libbpf.c_function_description)
18 (libraries ctypes c_type_description)
19 (modules c_types_generated c_function_description))
20
21(rule
22 (target c_function_generated.ml)
23 (deps stubgen/gen_function_bindings.exe)
24 (action
25 (with-stdout-to
26 %{target}
27 (run %{deps} ml))))
28
29(rule
30 (target bpf_stubs.c)
31 (deps stubgen/gen_function_bindings.exe)
32 (action
33 (with-stdout-to
34 %{target}
35 (run %{deps} c))))
36
37; This is just a level of indirection to organize functions and type bindings
38
39(library
40 (name c)
41 (public_name libbpf.c)
42 (c_library_flags -lbpf)
43 (foreign_stubs
44 (language c)
45 (names bpf_stubs))
46 (libraries c_function_description)
47 (modules c c_function_generated))