Skip to content

obazl/findlibc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

findlibc

This library reads META files directly; it does not use the findib library or the ocamlfind program.

It does not have a well-organized public API, since it is (currently) only intended for use by other OBazl libraries such as mibl. If you would like to use it to build your own tool please file an issue.

ocamlfind configuration

This is how findlib (i.e. ocamlfind) is configured.

findlib.conf

Default: /usr/local/etc/findlib.conf.

Fields: * path: used to look up packages * destdir: used to install new packages * metadir: absolute path of metaregistry (see below)

Sample content:

destdir="/usr/local/lib/ocaml"
path="/usr/local/lib/ocaml"
ocamlc="ocamlc.opt"
ocamlopt="ocamlopt.opt"
ocamldep="ocamldep.opt"
ocamldoc="ocamldoc.opt"

Env var: OCAMLFIND_CONF

site-lib

Determined by vars in findlib.conf:

META

Default: the META file for each package is in the pkg root directory. This is the layout used by OPAM.

Alternative layout: all META files in one directory, named META.<pkgname>. See site-lib.

About

C library for reading OCaml findlib META files

Resources

License

Stars

Watchers

Forks

Packages

No packages published