@@ -61,16 +61,19 @@ The artifact manifest JSON format for a static library is described below:
61
61
"variants" : [
62
62
{
63
63
"path" : " <relative-path-to-library-file>" ,
64
- "headerPaths" : ["<relative-path-to-header-directory-1>, ... ],
65
- "moduleMapPath" : " <path-to-module-map>" ,
66
64
"supportedTriples" : [" <triple1>" , ... ],
65
+ "staticLibraryMetadata" : {
66
+ "headerPaths" : ["<relative-path-to-header-directory-1>, ... ],
67
+ "moduleMapPath" : " <path-to-module-map>"
68
+ }
67
69
},
68
70
...
69
71
]
70
72
},
71
73
...
72
74
}
73
75
}
76
+
74
77
```
75
78
76
79
The additions are:
@@ -85,18 +88,22 @@ As with executable binary artifacts, the `path` field represents the relative pa
85
88
and the ` supportedTriples ` field provides information about the target triples supported by this variant.
86
89
87
90
An example artifact might look like:
91
+
88
92
``` json
89
93
{
90
94
"schemaVersion" : " 1.0" ,
91
95
"artifacts" : {
92
- "my-artifact " : {
96
+ "example " : {
93
97
"type" : " staticLibrary" ,
94
98
"version" : " 1.0.0" ,
95
99
"variants" : [
96
100
{
97
- "path" : " artifact.a" ,
98
- "headerPaths" : [" include" ],
99
- "supportedTriples" : [" aarch64-unknown-linux-gnu" ]
101
+ "path" : " libExample.a" ,
102
+ "supportedTriples" : [" aarch64-unknown-linux-gnu" ],
103
+ "staticLibraryMetadata" : {
104
+ "headerPaths" : [" include" ],
105
+ "moduleMapPath" : " include/example.modulemap"
106
+ }
100
107
}
101
108
]
102
109
}
0 commit comments