-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change tool metadata file format to JSON + support arm64 host fetches (…
…#1553) Co-authored-by: data-queue <[email protected]> Co-authored-by: Billy Robert O'Neal III <[email protected]>
- Loading branch information
1 parent
18a617c
commit f351510
Showing
31 changed files
with
955 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-tools.schema.json", | ||
"type": "object", | ||
"properties": { | ||
"schema-version": { | ||
"description": "Identifies the version of the tools database format; currently always 1.", | ||
"type": "number", | ||
"minimum": 1, | ||
"maximum": 1 | ||
}, | ||
"tools": { | ||
"type": "array", | ||
"description": "The set of known tools.", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the tool as exposed to `vcpkg fetch`." | ||
}, | ||
"os": { | ||
"type": "string", | ||
"description": "The platform where the record is valid.", | ||
"enum": [ "windows", "osx", "linux", "freebsd", "openbsd" ] | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "The version to match against against a system provided copy of this tool.", | ||
"pattern": "\\d+(\\.\\d+(\\.\\d+)?)?" | ||
}, | ||
"arch": { | ||
"type": "string", | ||
"description": "The architecture where the record is valid.", | ||
"enum": [ "x86", "x64", "amd64", "arm", "arm64", "arm64ec", "s390x", "ppc64le", "riscv32", "riscv64", "loongarch32", "loongarch64", "mips64" ] | ||
}, | ||
"executable": { | ||
"type": "string", | ||
"description": "The relative path to the executable for the tool within the downloaded archive, if any." | ||
}, | ||
"url": { | ||
"type": "string", | ||
"description": "The URL to download the tool from.", | ||
"format": "uri" | ||
}, | ||
"sha512": { | ||
"type": "string", | ||
"description": "The SHA-512 hash of the downloaded archive.", | ||
"pattern": "^[0-9a-fA-F]{128}$" | ||
}, | ||
"archive": { | ||
"type": "string", | ||
"description": "The name of the downloaded archive." | ||
} | ||
}, | ||
"patternProperties": { | ||
"^\\$": {} | ||
}, | ||
"required": ["name", "os", "version"], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"patternProperties": { | ||
"^\\$": {} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ "schema-version", "tools" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.