# This is a sample kdesrc-build configuration file appropriate for KDE
# Frameworks 6-based build environments.
#
# See the kdesrc-buildrc-sample for explanations of what the options do, or
# view the manpage or kdesrc-build documentation at
# https://docs.kde.org/?application=kdesrc-build
#
# SPDX-FileCopyrightText: Milian Wolff <milian.wolff@kdab.com>
# SPDX-FileCopyrightText: 2025 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
global
    branch-group kf6-qt6
    install-dir /usr # Where to install KF5-based software
    # Uncomment this and edit value to choose a different Qt5
    qt-install-dir /usr   # Where to find Qt5

    # Where to download source code. By default the build directory and
    # logs will be kept under this directory as well.
    source-dir /opt/kde/src

    # These values should be set to the number of cores to use during build (if
    # in doubt, run "nproc" to see how many cores you have)
    num-cores FULL_NPROC

    # This is the same as above but used for heavyweight modules like
    # qtwebengine, though you can use it for modules yourself. A conservative
    # thumbrule is one core for every 2 GiB of total memory.
    num-cores-low-mem HALF_NPROC

    cmake-options -DBUILD_TESTING=OFF -DBUILD_DESIGNERPLUGIN=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=gold
end global

# Instead of specifying modules here, the current best practice is to refer to
# KF module lists maintained with kdesrc-build by the KF developers. As new
# modules are added or modified, the kdesrc-build KF module list is altered to
# suit, and when you update kdesrc-build you will automatically pick up the
# needed changes.

include ${module-definitions-dir}/kf6-qt6.ksb

# If you wish to maintain the module list yourself that is possible, simply
# look at the files pointed to above and use the "module-set" declarations that
# they use, with your own changes.

options frameworks
    tag %VERSION%
end options

# It is possible to change the options for modules loaded from the file
# included above (since it's not possible to add a module that's already been
# included), e.g.

options kcoreaddons
    cmake-options -DKCOREADDONS_USE_QML=OFF -DBUILD_PYTHON_BINDINGS=OFF
end options

options kwidgetsaddons
    cmake-options -DBUILD_PYTHON_BINDINGS=OFF
end options

options kguiaddons
    cmake-options -DBUILD_PYTHON_BINDINGS=OFF
end options

options knotifications
    cmake-options -DBUILD_PYTHON_BINDINGS=OFF
end options

options kjobwidgets
    cmake-options -DBUILD_PYTHON_BINDINGS=OFF
end options

options kxmlgui
    cmake-options -DBUILD_PYTHON_BINDINGS=OFF
end options

options kiconthemes
    cmake-options -DKICONTHEMES_USE_QTQUICK=OFF
end options

options kwindowsystem
    cmake-options -DKWINDOWSYSTEM_QML=OFF
end options

options kconfig
    cmake-options -DKCONFIG_USE_QML=OFF
end options

options ki18n
    cmake-options -DBUILD_WITH_QML=OFF
end options

options sonnet
    cmake-options -DSONNET_USE_QML=OFF
end options

options ktextwidgets
    cmake-options -DWITH_TEXT_TO_SPEECH=OFF
end options

options extra-cmake-modules
    tag %VERSION%
end options

options breeze-icons
    cmake-options -DBINARY_ICONS_RESOURCE=ON
end options
