{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://void.build/schemas/metadata-v2.schema.json", "title": "VoidBuildSystem workspace metadata (schema_version 2)", "description": "Emitted by `vbs metadata`. Any shape change bumps schema_version and adds a new schema file.", "type": "object", "required": [ "schema_version", "project_root", "build_root", "profile", "compiler", "os", "architecture", "features", "targets", "dependencies", "lockfile" ], "additionalProperties": false, "properties": { "schema_version": { "type": "integer", "enum": [2] }, "project_root": { "type": "string" }, "build_root": { "type": "string" }, "profile": { "type": "string" }, "compiler": { "type": "string" }, "os": { "type": "string" }, "architecture": { "type": "string" }, "features": { "type": "array", "items": { "type": "object", "required": ["name", "default_on", "description", "enabled"], "additionalProperties": false, "properties": { "name": { "type": "string" }, "default_on": { "type": "boolean" }, "description": { "type": "string" }, "enabled": { "type": "boolean" } } } }, "targets": { "type": "array", "items": { "type": "object", "required": [ "name", "kind", "sources", "include_directories", "links", "labels", "required_features", "install" ], "additionalProperties": false, "properties": { "name": { "type": "string" }, "kind": { "type": "string", "enum": [ "executable", "static_library", "shared_library", "header_only", "object_library", "custom_action", "test", "benchmark" ] }, "sources": { "type": "array", "items": { "type": "string" } }, "include_directories": { "type": "array", "items": { "type": "object", "required": ["path", "visibility"], "additionalProperties": false, "properties": { "path": { "type": "string" }, "visibility": { "type": "string", "enum": ["public", "private"] } } } }, "links": { "type": "array", "items": { "type": "object", "required": ["target", "dependency", "visibility"], "additionalProperties": false, "properties": { "target": { "type": "string" }, "dependency": { "type": "string" }, "visibility": { "type": "string", "enum": ["public", "private"] } } } }, "labels": { "type": "array", "items": { "type": "string" } }, "required_features": { "type": "array", "items": { "type": "string" } }, "install": { "type": ["object", "null"], "required": ["destination", "component"], "additionalProperties": false, "properties": { "destination": { "type": "string" }, "component": { "type": "string" } } } } } }, "dependencies": { "type": "array", "items": { "type": "object", "required": [ "name", "source", "package", "version", "builder", "registry", "features", "build_dependency" ], "additionalProperties": false, "properties": { "name": { "type": "string" }, "source": { "type": "string", "enum": ["git", "package", "path", "archive", "conan", "pkgconfig", "unspecified"] }, "package": { "type": "string" }, "version": { "type": "string" }, "builder": { "type": "string" }, "registry": { "type": "string" }, "features": { "type": "array", "items": { "type": "string" } }, "build_dependency": { "type": "boolean" } } } }, "lockfile": { "type": "object", "required": ["path", "exists"], "additionalProperties": false, "properties": { "path": { "type": "string" }, "exists": { "type": "boolean" }, "revision": { "type": "string" } } } } }