"""
@file
@defgroup rtctk_pkgconfig Dependency Configuration Files
@ingroup rtctk

@brief Configuration files for pkg-config for downstream projects.

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

from wtools.module import declare_custom


def build(bld):
    bld(
        source=[
            "rtctk.interfaces.pc.in",
            "rtctk.componentFramework.pc.in",
            "rtctk.dataTask.pc.in",
            "rtctk.ddtServer.pc.in",
            "rtctk.metadataCollector.pc.in",
            "rtctk.mudpiPublisher.pc.in",
            "rtctk.rtcSupervisor.pc.in",
            "rtctk.shmPublisher.pc.in",
            "rtctk.shmSubscriber.pc.in",
            "rtctk.telemetryRecorder.pc.in",
            "rtctk.telemetryRepublisher.pc.in",
            "rtctk.telemetrySubscriber.pc.in",
            "rtctk.testSupport.pc.in",
            # The following pkg-config file is a workaround while upstream projects do not properly
            # deliver pkg-config files that we can rely on. The contents should be reduced over
            # time as upstream projects get fixed and eventually the whole rtctk.thirdParty.pc can
            # be removed.
            # Note that downstream projects must not use the rtctk.thirdParty.pc file directly.
            "rtctk.thirdParty.pc.in",
        ]
    )


declare_custom()
