@@ -61,16 +61,19 @@ The artifact manifest JSON format for a static library is described below:
6161 "variants" : [
6262 {
6363 "path" : " <relative-path-to-library-file>" ,
64- "headerPaths" : ["<relative-path-to-header-directory-1>, ... ],
65- "moduleMapPath" : " <path-to-module-map>" ,
6664 "supportedTriples" : [" <triple1>" , ... ],
65+ "staticLibraryMetadata" : {
66+ "headerPaths" : ["<relative-path-to-header-directory-1>, ... ],
67+ "moduleMapPath" : " <path-to-module-map>"
68+ }
6769 },
6870 ...
6971 ]
7072 },
7173 ...
7274 }
7375}
76+
7477```
7578
7679The additions are:
@@ -85,18 +88,22 @@ As with executable binary artifacts, the `path` field represents the relative pa
8588and the ` supportedTriples ` field provides information about the target triples supported by this variant.
8689
8790An example artifact might look like:
91+
8892``` json
8993{
9094 "schemaVersion" : " 1.0" ,
9195 "artifacts" : {
92- "my-artifact " : {
96+ "example " : {
9397 "type" : " staticLibrary" ,
9498 "version" : " 1.0.0" ,
9599 "variants" : [
96100 {
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+ }
100107 }
101108 ]
102109 }
0 commit comments