user6467981
user6467981

Reputation:

Understanding Oasis findlibParent's purpose

I am currently working on a project where I am using Oasis to handling building of the OCaml files. It works great. However I am confused at what findlibParent is actually doing in a library definition.

The documentation specifies

FindlibParent: Library which includes the current library. The current library will be built as its parents and installed along it.

I dont understand what implication built as its parents has on the way I refer to something. Does this mean if I have module library that has findlibParent: X in the definition, and the module's name is Y, then I would have to refer to it like open X.Y?

I apologize if this is obvious - the wording is very confusing to me.

Thank you!

Upvotes: 0

Views: 75

Answers (1)

ivg
ivg

Reputation: 35280

This means, that once a library is built and installed it will be accessible via the findlib as parent_name.library_name. As far as I know, this field doesn't imply any dependency, so I'm not sure that phrase "will be built as its parent" is actually true. The only real implication, is that it will be included as a subpackage of the parent library, so that it will not have its own META file (that might be very useful, if you want to define several libraries in the same folder)

Upvotes: 0

Related Questions