blob: 28b5cdb92a2ad66e138fd7e884dff59149f48e79 [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"allOf": [
{
"$ref": "common.json#/definitions/sdk_element"
},
{
"additionalProperties": false,
"properties": {
"banjo_deps": {
"description": "List of BANJO libraries this library depends on",
"items": {
"$ref": "common.json#/definitions/banjo_library_name"
},
"type": "array"
},
"deps": {
"description": "List of C/C++ libraries this library depends on",
"items": {
"$ref": "common.json#/definitions/cc_library_name"
},
"type": "array"
},
"fidl_deps": {
"description": "List of FIDL libraries this library depends on",
"items": {
"$ref": "common.json#/definitions/fidl_library_name"
},
"type": "array"
},
"headers": {
"description": "List of public headers",
"items": {
"$ref": "common.json#/definitions/file"
},
"minItems": 1,
"type": "array"
},
"include_dir": {
"$ref": "common.json#/definitions/file",
"description": "Path to the base directory for includes"
},
"name": {
"$ref": "common.json#/definitions/cc_library_name",
"description": "Name of the library"
},
"root": {
"description": "The root of the element in the SDK",
"type": "string"
},
"sources": {
"description": "List of library sources",
"items": {
"$ref": "common.json#/definitions/file"
},
"type": "array"
},
"type": {
"allOf": [
{
"$ref": "common.json#/definitions/kind"
},
{
"enum": [
"cc_source_library"
]
}
]
}
},
"required": [
"banjo_deps",
"deps",
"fidl_deps",
"headers",
"include_dir",
"root",
"sources",
"name",
"type"
]
}
],
"description": "A set of C/C++ sources",
"id": "http://fuchsia.com/schemas/sdk/cc_source_library.json",
"type": "object"
}