| # Copyright (c) 2025 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") |
| import("${chip_root}/src/platform/device.gni") |
| |
| executable("all-devices-app") { |
| sources = [ |
| "PosixBleRssiRangingAdapter.cpp", |
| "PosixChimeDevice.cpp", |
| "include/CHIPProjectAppConfig.h", |
| "main.cpp", |
| ] |
| |
| deps = [ |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/boolean-state-sensor", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/chime", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/device-factory", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/network-infrastructure-manager", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/occupancy-sensor", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/proximity-ranger", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/proximity-ranger/impl:ble-rssi", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/root-node", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/root-node:wifi", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/soil-sensor", |
| "${chip_root}/examples/all-devices-app/all-devices-common/devices/speaker", |
| "${chip_root}/examples/all-devices-app/all-devices-common/providers:all-devices-example-device-info-provider", |
| "${chip_root}/examples/all-devices-app/all-devices-common/providers:all-devices-example-device-instance-info-provider", |
| "${chip_root}/examples/all-devices-app/posix/app_options:app-options", |
| "${chip_root}/examples/common/tracing:commandline", |
| "${chip_root}/examples/platform/linux:app-main-loop", |
| "${chip_root}/examples/platform/linux:linux-commissionable-data-provider", |
| "${chip_root}/src/app/persistence", |
| "${chip_root}/src/app/persistence:default", |
| "${chip_root}/src/data-model-providers/codedriven", |
| "${chip_root}/src/lib", |
| "${chip_root}/third_party/miniaudio:miniaudio", |
| "${chip_root}/zzz_generated/app-common/devices/", |
| ] |
| |
| if (chip_device_platform == "darwin") { |
| deps += [ "${chip_root}/examples/all-devices-app/posix/darwin" ] |
| } else { |
| deps += [ "${chip_root}/examples/all-devices-app/posix/linux" ] |
| } |
| |
| include_dirs = [ |
| "include", |
| "${chip_root}/examples/common", |
| ] |
| |
| output_dir = root_out_dir |
| } |
| |
| group("posix") { |
| deps = [ ":all-devices-app" ] |
| } |
| |
| group("default") { |
| deps = [ ":posix" ] |
| } |