"""
@file
@defgroup rtctk_componentFramework_services_oldb OLDB
@ingroup rtctk_componentFramework_services

@brief OLDB Service Interface.

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

from wtools.module import declare_cshlib


declare_cshlib(
    target="rtctkOldb",
    use=[
        "componentFramework.services.common",
        "cii.mal-common.cpp.mal-common",
        "client-api.cpp.config",
        "cii-services-oldb.cpp.oldb",
    ],
    ut_attrs=dict(
        use=lambda pkgs, _: pkgs
        + [
            "componentFramework.services.testSupport.common",
            "componentFramework.services.testSupport.inMemoryOldb",
        ]
    ),
)
