Dependencies
Grid Libraries might specify dependencies on other Grid Libraries. A dependency specification resolves to a particular Grid Library using two values:
| • | grid-library-name The name of the Grid Library, as specified in the dependency’s XML |
| • | grid-library-version The version of the Grid Library, as specified in the dependency’s XML. OS compatibility is determined by checking the os and compiler tags for the top-level element in the dependent Grid Library. If not specified, it uses the latest version supported by the OS. |
Note that if a dependency resolves to more than one Grid Library, the dependency used is undefined.
Two dependent libraries conflict if they have the same library name, but different versions.
It is possible to specify an OS attribute to <dependency> element for ignoring Grid Libraries that do not apply to an Engine’s particular operating system. For example, if a Grid Library contains native libraries for multiple platforms, you can specify OS-specific dependencies on the bridge Grid Libraries such that the Engine only loads the bridge corresponding to its operating system.
Note that if a dependency is missing, the Engine logs a warning. Rather than the current task failing, the Engine attempts to continue loading all necessary libraries to run the task.