Skip to content

Latest commit

 

History

History
79 lines (56 loc) · 2.72 KB

manifest-example.md

File metadata and controls

79 lines (56 loc) · 2.72 KB

Example “manifest.xml” file

This is an example of what the “manifest.xml” file could look like for an example encrypted library:

<?xml version=*"1.0"* encoding=*"utf-8"*?>
<archive>

<!-- All paths in the file are interpreted as relative to the directory of the top-level
package (e.g., the path to this file would be ".library/manifest.xml"), and allows
only forward slashes as directory separators. -->

<manifest version=*"1.0"*/>

<!-- The id attribute is the actual Modelica identifier of the library. The file attribute
from SMA is no longer needed, as it will always be "package.mo" or "package.moc"
(and the tool will need the logic of checking for both .mo and .moc anyway).
The enabled attribute (optional, default value is true) indicates whether the library
should be enabled/loaded by default. -->

<library id=*"ExampleLib"* enabled=*"true"*>

<!-- Official title of the library (optional) -->
<title>Example Encrypted Library</title>

<!-- Description (optional) -->
<description>
Dummy library showing directory structure for an encrypted library (with empty files)
</description>

<!-- The version of the library. Version information is formatted according to the
Modelica language specification. The build and date attributes are optional. -->
<version number=*"1.0"* build=*"1"* date=*"2013-08-04"*/>

<!-- Version of the Modelica language that is used in this library. -->
<language version=*"3.2"* />

<!-- Copyright notice (optional)-->
<copyright>
Copyright © 2014, Modelon AB.
</copyright>

<!-- License information (optional) -->
<license>
Some license information.
</license>

<!-- Encryption/license check information (only for proprietary libraries).
If this is present, then the library is encrypted. -->
<encryption>

<!-- Library vendor executable. May be repeated - one for each supported platform.
path: the path to the executable
platform: the OS/platform to use this executable on, must be unique among executable nodes
licensing: if this executable handles licensing (optional, default is true)

The executable shall be placed under the vendor-specific directory
(i.e. .library/VENDORNAME/). The normal case is that licensing has the same
value for each executable node, but it is allowed to have different values
for different platforms. -->

<executable path=*".library/Modelon/vendor.exe"* platform=*"win32"* licensing=*"true"* />

<executable path=*".library/Modelon/vendor32"* platform=*"linux32"* licensing=*"true"* />

<executable path=*".library/Modelon/vendor64"* platform=*"linux64"* licensing=*"true"* />

</encryption>

<!-- Icon for the library (PNG format) (optional) -->
<icon file=*"Resources/Images/el.png"* />

</library>

<!-- Leaving out optional compatibility and dependencies in this example. -->

</archive>