| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- # 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("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni")
- import("${chip_root}/src/app/common_flags.gni")
- import("${chip_root}/src/lib/core/core.gni")
- import("${chip_root}/src/lib/lib.gni")
- import("${chip_root}/src/tracing/tracing_args.gni")
- declare_args() {
- chip_enable_smoke_co_trigger = false
- }
- config("app-main-config") {
- include_dirs = [ "." ]
- }
- source_set("ota-test-event-trigger") {
- sources = [
- "${chip_root}/src/app/clusters/ota-requestor/OTATestEventTriggerDelegate.h",
- ]
- }
- source_set("smco-test-event-trigger") {
- sources = [ "${chip_root}/src/app/clusters/smoke-co-alarm-server/SmokeCOTestEventTriggerDelegate.h" ]
- }
- source_set("app-main") {
- defines = [ "ENABLE_TRACING=${matter_enable_tracing_support}" ]
- sources = [
- "AppMain.cpp",
- "AppMain.h",
- "CommissionableInit.cpp",
- "CommissionableInit.h",
- "CommissionerMain.cpp",
- "CommissionerMain.h",
- "LinuxCommissionableDataProvider.cpp",
- "LinuxCommissionableDataProvider.h",
- "NamedPipeCommands.cpp",
- "NamedPipeCommands.h",
- "Options.cpp",
- "Options.h",
- "testing/CustomCSRResponse.cpp",
- "testing/CustomCSRResponse.h",
- "testing/CustomCSRResponseOperationalKeyStore.cpp",
- "testing/CustomCSRResponseOperationalKeyStore.h",
- ]
- public_deps = [
- ":smco-test-event-trigger",
- "${chip_root}/src/lib",
- "${chip_root}/src/platform/logging:force_stdio",
- ]
- deps = [
- ":ota-test-event-trigger",
- "${chip_root}/examples/providers:device_info_provider",
- "${chip_root}/src/app/server",
- ]
- if (chip_enable_pw_rpc) {
- defines += [ "PW_RPC_ENABLED" ]
- }
- if (chip_build_libshell) {
- defines += [ "ENABLE_CHIP_SHELL" ]
- sources += [
- "CommissioneeShellCommands.cpp",
- "CommissioneeShellCommands.h",
- "ControllerShellCommands.cpp",
- "ControllerShellCommands.h",
- ]
- }
- if (chip_enable_transport_trace) {
- deps += [ "${chip_root}/examples/common/tracing:trace_handlers_decoder" ]
- }
- if (matter_enable_tracing_support) {
- deps += [
- "${chip_root}/examples/common/tracing:commandline",
- "${chip_root}/src/tracing",
- ]
- }
- if (chip_enable_smoke_co_trigger) {
- defines += [ "CHIP_DEVICE_CONFIG_ENABLE_SMOKE_CO_TRIGGER=1" ]
- }
- public_configs = [ ":app-main-config" ]
- }
- source_set("commissioner-main") {
- defines = []
- sources = [
- "CommissionerMain.cpp",
- "CommissionerMain.h",
- ]
- if (chip_build_libshell) {
- defines += [ "ENABLE_CHIP_SHELL" ]
- }
- public_deps = [ "${chip_root}/src/lib" ]
- deps = [ "${chip_root}/src/app/server" ]
- if (chip_enable_transport_trace) {
- deps += [ "${chip_root}/examples/common/tracing:trace_handlers" ]
- }
- public_configs = [ ":app-main-config" ]
- }
|