blob: 6cd59e54aa250d8f01511cffb0b263a8ea993fa9 [file]
# Copyright (c) 2021 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")
import("${chip_root}/src/app/common_flags.gni")
config("device_config") {
defines = []
if (chip_app_use_echo) {
defines += [ "CHIP_APP_USE_ECHO" ]
}
}
static_library("device") {
output_name = "libCHIPAppDevice"
sources = [
"OperationalDeviceProxy.cpp",
"OperationalDeviceProxy.h",
]
public_configs = [ ":device_config" ]
cflags = [ "-Wconversion" ]
public_deps = [ "${chip_root}/src/controller" ]
}