"""
@file
@defgroup rtctk_reusableComponents_deploymentDaemon_app Application
@ingroup rtctk_reusableComponents_deploymentDaemon

@brief RTC Toolkit Deployment Daemon Application.

@copyright
  SPDX-FileCopyrightText: 2022-2025 European Southern Observatory (ESO) @n
  SPDX-License-Identifier: LGPL-3.0-only
"""

from wtools.module import declare_cprogram


declare_cprogram(
    target="rtctkDeploymentDaemon",
    use=[
        "componentFramework.rtcComponent",
        "componentFramework.services.persistentRepo",
        "componentFramework.services.populateConfig",
        "componentFramework.interfaces.rtctkif-cxx",
        "componentFramework.services.python",
        "componentFramework.services.telegraf",
        "reusableComponents.deploymentDaemon.generator.lib",
        "pybind11",
    ],
    ut_attrs=dict(
        use=lambda pkgs, _: pkgs + ["gtest", "gmock", "componentFramework.rtcComponent.utSupport"]
    ),
    features=["radgen", "pyembed"],
)
