Debian Codegraph @

stubs/config/discover.ml

raw
1 module C = Configurator.V1
2
3 let () =
4 C.main ~name:"nss-pkg-config" (fun c ->
5 let conf =
6 match C.Pkg_config.get c with
7 | None -> failwith "pkg-config is missing"
8 | Some pc -> (
9 match C.Pkg_config.query pc ~package:"nss" with
10 | None -> failwith "nss is missing in pkg-config"
11 | Some deps -> deps)
12 in
13 C.Flags.write_sexp "c_flags.sexp" conf.cflags;
14 C.Flags.write_sexp "c_library_flags.sexp" conf.libs)