| # 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") |
| import("//build_overrides/nlio.gni") |
| |
| import("${chip_root}/build/chip/buildconfig_header.gni") |
| import("common_flags.gni") |
| |
| declare_args() { |
| # Enable strict schema checks. |
| chip_enable_schema_check = |
| is_debug && (current_os == "linux" || current_os == "mac") |
| } |
| |
| buildconfig_header("app_buildconfig") { |
| header = "AppBuildConfig.h" |
| header_dir = "app" |
| |
| defines = [ "CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK=${chip_enable_schema_check}" ] |
| } |
| |
| static_library("app") { |
| output_name = "libCHIPDataModel" |
| |
| sources = [ |
| "AttributeAccessInterface.cpp", |
| "AttributePathExpandIterator.cpp", |
| "AttributePathExpandIterator.h", |
| "AttributePathParams.h", |
| "BufferedReadCallback.cpp", |
| "CASESessionManager.cpp", |
| "CASESessionManager.h", |
| "Command.cpp", |
| "Command.h", |
| "CommandHandler.cpp", |
| "CommandSender.cpp", |
| "DeviceProxy.cpp", |
| "DeviceProxy.h", |
| "EventManagement.cpp", |
| "EventPathParams.h", |
| "InteractionModelEngine.cpp", |
| "MessageDef/ArrayBuilder.cpp", |
| "MessageDef/ArrayParser.cpp", |
| "MessageDef/AttributeDataIB.cpp", |
| "MessageDef/AttributeDataIB.h", |
| "MessageDef/AttributeDataIBs.cpp", |
| "MessageDef/AttributeDataIBs.h", |
| "MessageDef/AttributeDataVersionList.cpp", |
| "MessageDef/AttributeDataVersionList.h", |
| "MessageDef/AttributePathIB.cpp", |
| "MessageDef/AttributePathIB.h", |
| "MessageDef/AttributePathIBs.cpp", |
| "MessageDef/AttributePathIBs.h", |
| "MessageDef/AttributeReportIB.cpp", |
| "MessageDef/AttributeReportIB.h", |
| "MessageDef/AttributeReportIBs.cpp", |
| "MessageDef/AttributeReportIBs.h", |
| "MessageDef/AttributeStatusIB.cpp", |
| "MessageDef/AttributeStatusIB.h", |
| "MessageDef/AttributeStatusIBs.cpp", |
| "MessageDef/AttributeStatusIBs.h", |
| "MessageDef/Builder.cpp", |
| "MessageDef/Builder.h", |
| "MessageDef/CommandDataIB.cpp", |
| "MessageDef/CommandPathIB.cpp", |
| "MessageDef/CommandStatusIB.cpp", |
| "MessageDef/EventDataIB.cpp", |
| "MessageDef/EventDataIB.h", |
| "MessageDef/EventFilterIB.cpp", |
| "MessageDef/EventFilterIBs.cpp", |
| "MessageDef/EventPathIB.cpp", |
| "MessageDef/EventPathIB.h", |
| "MessageDef/EventPathIBs.cpp", |
| "MessageDef/EventPathIBs.h", |
| "MessageDef/EventReportIB.cpp", |
| "MessageDef/EventReportIB.h", |
| "MessageDef/EventReportIBs.cpp", |
| "MessageDef/EventReportIBs.h", |
| "MessageDef/EventStatusIB.cpp", |
| "MessageDef/EventStatusIB.h", |
| "MessageDef/InvokeRequestMessage.cpp", |
| "MessageDef/InvokeRequests.cpp", |
| "MessageDef/InvokeResponseIB.cpp", |
| "MessageDef/InvokeResponseIBs.cpp", |
| "MessageDef/InvokeResponseMessage.cpp", |
| "MessageDef/ListBuilder.cpp", |
| "MessageDef/ListParser.cpp", |
| "MessageDef/MessageDefHelper.cpp", |
| "MessageDef/MessageDefHelper.h", |
| "MessageDef/Parser.cpp", |
| "MessageDef/Parser.h", |
| "MessageDef/ReadRequestMessage.cpp", |
| "MessageDef/ReadRequestMessage.h", |
| "MessageDef/ReportDataMessage.cpp", |
| "MessageDef/ReportDataMessage.h", |
| "MessageDef/StatusIB.cpp", |
| "MessageDef/StatusIB.h", |
| "MessageDef/StatusResponseMessage.cpp", |
| "MessageDef/StructBuilder.cpp", |
| "MessageDef/StructParser.cpp", |
| "MessageDef/SubscribeRequestMessage.cpp", |
| "MessageDef/SubscribeResponseMessage.cpp", |
| "MessageDef/TimedRequestMessage.cpp", |
| "MessageDef/WriteRequestMessage.cpp", |
| "MessageDef/WriteResponseMessage.cpp", |
| "OperationalDeviceProxy.cpp", |
| "OperationalDeviceProxy.h", |
| "ReadClient.cpp", |
| "ReadHandler.cpp", |
| "StatusResponse.cpp", |
| "StatusResponse.h", |
| "TimedHandler.cpp", |
| "TimedHandler.h", |
| "WriteClient.cpp", |
| "WriteHandler.cpp", |
| "decoder.cpp", |
| "encoder-common.cpp", |
| "reporting/Engine.cpp", |
| "reporting/Engine.h", |
| ] |
| |
| public_deps = [ |
| ":app_buildconfig", |
| "${chip_root}/src/app/util:device_callbacks_manager", |
| "${chip_root}/src/lib/support", |
| "${chip_root}/src/messaging", |
| "${chip_root}/src/protocols/secure_channel", |
| "${chip_root}/src/system", |
| "${nlio_root}:nlio", |
| ] |
| |
| cflags = [ "-Wconversion" ] |
| |
| public_configs = [ "${chip_root}/src:includes" ] |
| } |