blob: 3e1ad4cfd635b598f24128f8339a5df181ebcddd [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "common.json#/definitions/sdk_element"
},
{
"additionalProperties": false,
"properties": {
"binaries": {
"additionalProperties": false,
"description": "The binary files for the module, per architecture",
"maxProperties": 2,
"minProperties": 1,
"properties": {
"arm64": {
"$ref": "#/definitions/binaryGroup",
"description": "Binaries for the arm64 architecture"
},
"riscv64": {
"$ref": "#/definitions/binaryGroup",
"description": "Binaries for the riscv64 architecture"
},
"x64": {
"$ref": "#/definitions/binaryGroup",
"description": "Binaries for the x64 architecture"
}
},
"type": "object"
},
"name": {
"description": "Name of the module",
"type": "string"
},
"resources": {
"description": "Resource files associated with the module",
"items": {
"$ref": "common.json#/definitions/file"
},
"type": "array"
},
"root": {
"description": "The root of the element in the SDK",
"type": "string"
},
"type": {
"allOf": [
{
"$ref": "common.json#/definitions/kind"
},
{
"enum": [
"loadable_module"
]
}
]
}
},
"required": [
"binaries",
"resources",
"name",
"type"
]
}
],
"definitions": {
"binaryGroup": {
"description": "A set of binary files compiled for a given architecture",
"items": {
"$ref": "common.json#/definitions/file"
},
"type": "array"
}
},
"description": "A collection of object files that can be loaded at runtime",
"id": "http://fuchsia.com/schemas/sdk/loadable_module.json",
"type": "object"
}