blob: 57ff4b66c9b14a0a0284c19e420358e38fbd1a07 [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-07/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"
},
"bind_deps": {
"description": "List of Bind libraries this library depends on",
"items": {
"$ref": "common.json#/definitions/bind_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"
},
"fidl_binding_deps": {
"description": "List of FIDL libraries this library depends on, separated by binding type",
"items": {
"type": "object",
"properties": {
"binding_type": {
"$ref": "common.json#/definitions/fidl_binding_type"
},
"deps": {
"type": "array"
}
}
},
"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"
},
"plasa": {
"description": "The list of plasa fragment files",
"items": {
"$ref": "common.json#/definitions/file"
},
"type": "array"
},
"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",
"bind_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"
}