"""
@file
@defgroup rtctk_reusableComponents_ddtServer DDT Server Library
@ingroup rtctk_reusableComponents

@brief The DDT server library.

@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(
    name="reusableComponents.ddtServer.lib",
    target="rtctkDdtServer",
    use=[
        "componentFramework.rtcComponent",
        "ddt.datatransfer.datatransferlib",
        "ipcq",
    ],
    ut_attrs=dict(
        use=lambda pkgs, _: pkgs
        + [
            "componentFramework.services.testSupport.common",
            "componentFramework.services.testSupport.runtimeRepo",
            "componentFramework.services.testSupport.oldb",
            "componentFramework.services.testSupport.metrics",
        ]
    ),
)
