"""
@file

@defgroup rtctk_componentFramework_services_populateConfig Populate Config Library
@ingroup rtctk_componentFramework_services

@brief  Library with utilities for populating the Runtime Configuration Repository.

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

from wtools.module import declare_cshlib


declare_cshlib(
    target="rtctkPopulateConfig",
    use=[
        "componentFramework.services.persistentRepo",
        "componentFramework.services.runtimeRepo",
        "rad.cpp.core",
    ],
    ut_attrs=dict(
        use=lambda pkgs, _: pkgs
        + [
            "componentFramework.services.testSupport.persistentRepo",
            "componentFramework.services.testSupport.runtimeRepo",
        ]
    ),
)
