|
3 | 3 | This is an example of what the “manifest.xml” file could look like for
|
4 | 4 | an example encrypted library:
|
5 | 5 |
|
6 |
| -<?xml version=*"1.0"* encoding=*"utf-8"*?> |
| 6 | +``` |
| 7 | +<?xml version=*"1.0"* encoding=*"utf-8"*?> |
| 8 | +<archive> |
7 | 9 |
|
8 |
| -<archive> |
| 10 | +<!-- All paths in the file are interpreted as relative to the directory of the top-level |
| 11 | +package (e.g., the path to this file would be ".library/manifest.xml"), and allows |
| 12 | +only forward slashes as directory separators. --> |
9 | 13 |
|
10 |
| -<!-- All paths in the file are interpreted as relative to the |
11 |
| -directory of the top-level |
| 14 | +<manifest version=*"1.0"*/> |
12 | 15 |
|
13 |
| -package (e.g., the path to this file would be ".library/manifest.xml"), |
14 |
| -and allows |
| 16 | +<!-- The id attribute is the actual Modelica identifier of the library. The file attribute |
| 17 | +from SMA is no longer needed, as it will always be "package.mo" or "package.moc" |
| 18 | +(and the tool will need the logic of checking for both .mo and .moc anyway). |
| 19 | +The enabled attribute (optional, default value is true) indicates whether the library |
| 20 | +should be enabled/loaded by default. --> |
15 | 21 |
|
16 |
| -only forward slashes as directory separators. --> |
| 22 | +<library id=*"ExampleLib"* enabled=*"true"*> |
17 | 23 |
|
18 |
| -<manifest version=*"1.0"*/> |
| 24 | +<!-- Official title of the library (optional) --> |
| 25 | +<title>Example Encrypted Library</title> |
19 | 26 |
|
20 |
| -<!-- The id attribute is the actual Modelica identifier of the |
21 |
| -library. The file attribute |
| 27 | +<!-- Description (optional) --> |
| 28 | +<description> |
| 29 | +Dummy library showing directory structure for an encrypted library (with empty files) |
| 30 | +</description> |
22 | 31 |
|
23 |
| -from SMA is no longer needed, as it will always be "package.mo" or |
24 |
| -"package.moc" |
| 32 | +<!-- The version of the library. Version information is formatted according to the |
| 33 | +Modelica language specification. The build and date attributes are optional. --> |
| 34 | +<version number=*"1.0"* build=*"1"* date=*"2013-08-04"*/> |
25 | 35 |
|
26 |
| -(and the tool will need the logic of checking for both .mo and .moc |
27 |
| -anyway). |
28 |
| - |
29 |
| -The enabled attribute (optional, default value is true) indicates |
30 |
| -whether the library |
31 |
| - |
32 |
| -should be enabled/loaded by default. --> |
33 |
| - |
34 |
| -<library id=*"ExampleLib"* enabled=*"true"*> |
35 |
| - |
36 |
| -<!-- Official title of the library (optional) --> |
37 |
| - |
38 |
| -<title>Example Encrypted Library</title> |
39 |
| - |
40 |
| -<!-- Description (optional) --> |
41 |
| - |
42 |
| -<description> |
43 |
| - |
44 |
| -Dummy library showing directory structure for an encrypted library (with |
45 |
| -empty files) |
46 |
| - |
47 |
| -</description> |
48 |
| - |
49 |
| -<!-- The version of the library. Version information is formatted |
50 |
| -according to the |
51 |
| - |
52 |
| -Modelica language specification. The build and date attributes are |
53 |
| -optional. --> |
54 |
| - |
55 |
| -<version number=*"1.0"* build=*"1"* date=*"2013-08-04"*/> |
56 |
| - |
57 |
| -<!-- Version of the Modelica language that is used in this library. |
58 |
| ---> |
59 |
| - |
60 |
| -<language version=*"3.2"* /> |
61 |
| - |
62 |
| -<!-- Copyright notice (optional)--> |
63 |
| - |
64 |
| -<copyright> |
| 36 | +<!-- Version of the Modelica language that is used in this library. --> |
| 37 | +<language version=*"3.2"* /> |
65 | 38 |
|
| 39 | +<!-- Copyright notice (optional)--> |
| 40 | +<copyright> |
66 | 41 | Copyright © 2014, Modelon AB.
|
| 42 | +</copyright> |
67 | 43 |
|
68 |
| -</copyright> |
69 |
| - |
70 |
| -<!-- License information (optional) --> |
71 |
| - |
72 |
| -<license> |
73 |
| - |
| 44 | +<!-- License information (optional) --> |
| 45 | +<license> |
74 | 46 | Some license information.
|
| 47 | +</license> |
75 | 48 |
|
76 |
| -</license> |
77 |
| - |
78 |
| -<!-- Encryption/license check information (only for proprietary |
79 |
| -libraries). |
80 |
| - |
81 |
| -If this is present, then the library is encrypted. --> |
82 |
| - |
83 |
| -<encryption> |
84 |
| - |
85 |
| -<!-- Library vendor executable. May be repeated - one for each |
86 |
| -supported platform. |
| 49 | +<!-- Encryption/license check information (only for proprietary libraries). |
| 50 | +If this is present, then the library is encrypted. --> |
| 51 | +<encryption> |
87 | 52 |
|
| 53 | +<!-- Library vendor executable. May be repeated - one for each supported platform. |
88 | 54 | path: the path to the executable
|
89 |
| - |
90 |
| -platform: the OS/platform to use this executable on, must be unique |
91 |
| -among |
92 |
| - |
93 |
| -executable nodes |
94 |
| - |
95 |
| -licensing: if this executable handles licensing (optional, default is |
96 |
| -true) |
| 55 | +platform: the OS/platform to use this executable on, must be unique among executable nodes |
| 56 | +licensing: if this executable handles licensing (optional, default is true) |
97 | 57 |
|
98 | 58 | The executable shall be placed under the vendor-specific directory
|
| 59 | +(i.e. .library/VENDORNAME/). The normal case is that licensing has the same |
| 60 | +value for each executable node, but it is allowed to have different values |
| 61 | +for different platforms. --> |
99 | 62 |
|
100 |
| -(i.e. .library/VENDORNAME/). The normal case is that licensing has the |
101 |
| -same |
102 |
| - |
103 |
| -value for each executable node, but it is allowed to have different |
104 |
| -values |
105 |
| - |
106 |
| -for different platforms. --> |
107 |
| - |
108 |
| -<executable path=*".library/Modelon/vendor.exe"* platform=*"win32"* |
109 |
| -licensing=*"true"* /> |
110 |
| - |
111 |
| -<executable path=*".library/Modelon/vendor32"* platform=*"linux32"* |
112 |
| -licensing=*"true"* /> |
| 63 | +<executable path=*".library/Modelon/vendor.exe"* platform=*"win32"* licensing=*"true"* /> |
113 | 64 |
|
114 |
| -<executable path=*".library/Modelon/vendor64"* platform=*"linux64"* |
115 |
| -licensing=*"true"* /> |
| 65 | +<executable path=*".library/Modelon/vendor32"* platform=*"linux32"* licensing=*"true"* /> |
116 | 66 |
|
117 |
| -</encryption> |
| 67 | +<executable path=*".library/Modelon/vendor64"* platform=*"linux64"* licensing=*"true"* /> |
118 | 68 |
|
119 |
| -<!-- Icon for the library (PNG format) (optional) --> |
| 69 | +</encryption> |
120 | 70 |
|
121 |
| -<icon file=*"Resources/Images/el.png"* /> |
| 71 | +<!-- Icon for the library (PNG format) (optional) --> |
| 72 | +<icon file=*"Resources/Images/el.png"* /> |
122 | 73 |
|
123 |
| -</library> |
| 74 | +</library> |
124 | 75 |
|
125 |
| -<!-- Leaving out optional compatibility and dependencies in this |
126 |
| -example. --> |
| 76 | +<!-- Leaving out optional compatibility and dependencies in this example. --> |
127 | 77 |
|
128 |
| -</archive> |
| 78 | +</archive> |
| 79 | +``` |
0 commit comments