Skip to content

Commit 40c804e

Browse files
Update json schema for artifact bundle
1 parent 9f94d22 commit 40c804e

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

proposals/0482-swiftpm-static-library-binary-target-non-apple-platforms.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7679
The additions are:
@@ -85,18 +88,22 @@ As with executable binary artifacts, the `path` field represents the relative pa
8588
and the `supportedTriples` field provides information about the target triples supported by this variant.
8689

8790
An 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

Comments
 (0)