# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2023-2025 Laurent Montel <montel@kde.org>
add_library(speechtotext_whisper MODULE)

ecm_qt_declare_logging_category(speechtotext_whisper
    HEADER speechtotext_whisper_debug.h
    IDENTIFIER SPEECHTOTEXT_WHISPER_LOG
    CATEGORY_NAME org.kde.kf.speechtotext.whisper
    DESCRIPTION "whisper speechtotext"
    EXPORT KTEXTADDONS
)
target_sources(
    speechtotext_whisper
    PRIVATE
        whisperspeechtotextclient.h
        whisperspeechtotextclient.cpp
        whisperspeechtotextplugin.h
        whisperspeechtotextplugin.cpp
        whisperspeechtotextpluginjob.h
        whisperspeechtotextpluginjob.cpp
)

target_link_libraries(
    speechtotext_whisper
    PRIVATE
        KF6::TextSpeechToText
        KF6::I18n
)

install(TARGETS speechtotext_whisper DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf6/speechtotext/)
