Library Creation and Management in OML for Compose

A library is a self-contained set of files which provides additional functions for the OML language.

OML Libraries

From a file/delivery standpoint, a library is a folder, usually delivered as a ZIP file. The library content is represented in the image below:

Figure 1. Library Content


Figure 2. Library Content - Folders Expanded


The content (names of folders) is imposed. However, depending on the actual library content, some folders may be empty or even omitted. A functional library only requires the loader.oml (or .omc) script and one of the bin directories or the scripts/oml directory. The foldersthird_party/ and src/ are optional folders:
  • third_party/ is needed if the code used in a library depends on a third-party library.
  • src/ may be used by the library creator to include the source code of the OML libraries. The folders demos/ and help/ are optional, too, although strongly recommended. Demos (.oml scripts) placed in the demos/ folder are automatically included by Compose and listed in the Demo Browser. Mandatory elements in a library are:
    • loader.oml (or loader.omc)
    • Either the scripts/ or bin/ folder (both are permitted).