blob: 36022674cc053addb3fe3260d1805f2c5a91b102 [file] [log] [blame]
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build_overrides/chip.gni")
config("includes") {
include_dirs = [ "${chip_root}/zzz_generated/app-common" ]
}
source_set("attribute-type") {
sources = [ "${chip_root}/zzz_generated/app-common/app-common/zap-generated/attribute-type.h" ]
public_configs = [ ":includes" ]
}
source_set("ids") {
sources = [
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/ids/Clusters.h",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/ids/Events.h",
]
public_deps = [ "${chip_root}/src/app/util:types" ]
public_configs = [ ":includes" ]
}
static_library("cluster-objects") {
output_name = "libClusterObjects"
sources = [
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h",
]
public_deps = [
":ids",
"${chip_root}/src/app:events",
"${chip_root}/src/app:paths",
"${chip_root}/src/app/data-model",
"${chip_root}/src/app/util:types",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/support",
"${chip_root}/src/protocols/interaction_model",
]
public_configs = [ ":includes" ]
}
source_set("enums") {
sources = [
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h",
"${chip_root}/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h",
"CompatEnumNames.h",
]
public_configs = [ ":includes" ]
}