{
  "description": "A set of C/C++ sources",
  "type": "object",
  "allOf": [
    {
      "$ref": "common.json#/definitions/sdk_element"
    },
    {
      "properties": {
        "type": {
          "description": "Marker for this type of element",
          "type": "string",
          "enum": [
            "cc_source_library"
          ]
        },
        "name": {
          "description": "Name of the library",
          "$ref": "common.json#/definitions/cc_library_name"
        },
        "sources": {
          "description": "List of library sources",
          "type": "array",
          "items": {
            "$ref": "common.json#/definitions/file"
          }
        },
        "headers": {
          "description": "List of public headers",
          "type": "array",
          "items": {
            "$ref": "common.json#/definitions/file"
          }
        },
        "include_dir": {
          "description": "Path to the base directory for includes",
          "$ref": "common.json#/definitions/file"
        },
        "deps": {
          "description": "List of C/C++ libraries this library depends on",
          "type": "array",
          "items": {
            "$ref": "#/definitions/package_name"
          }
        },
        "fidl_deps": {
          "description": "List of FIDL libraries this library depends on",
          "type": "array",
          "items": {
            "$ref": "common.json#/definitions/fidl_library_name"
          }
        }
      },
      "required": [
        "deps",
        "fidl_deps",
        "headers",
        "include_dir",
        "name",
        "sources",
        "type"
      ]
    }
  ]
}