summaryrefslogtreecommitdiffstats
path: root/KDE5_FUNCTIONS
diff options
context:
space:
mode:
authorTreeve Jelbert2022-02-16 13:29:47 +0100
committerTreeve Jelbert2022-02-16 13:40:53 +0100
commitb725e832347601efdc2f5a0aa96f62f2a457bb26 (patch)
treebd9eb79b2cba8576b4e2d6a62e004ed324620d90 /KDE5_FUNCTIONS
parent91927036f52cf12f199e3f24d04abc7a65fd81c5 (diff)
KDE5_* - prepare for qt6
Diffstat (limited to 'KDE5_FUNCTIONS')
-rwxr-xr-xKDE5_FUNCTIONS14
1 files changed, 8 insertions, 6 deletions
diff --git a/KDE5_FUNCTIONS b/KDE5_FUNCTIONS
index 302b4c6f99..7948cb5711 100755
--- a/KDE5_FUNCTIONS
+++ b/KDE5_FUNCTIONS
@@ -2,19 +2,21 @@ KF5DIR="$INSTALL_ROOT/usr"
export XDG_DATA_DIRS=/usr/share
#---------------------------------------------------------------------
-function kde5_build() {
+default_build() {
CXXFLAGS+=' -Wno-deprecated-declarations'
OPTS+=" -DLIB_INSTALL_DIR=lib"
OPTS+=" -Wno-dev $CM_TESTS"
OPTS+=" -DKDE_SKIP_UNINSTALL_TARGET=1"
- qt5_cmake_build
+ if is_depends_enabled $SPELL qt6base;then
+ OPTS+=" -DBUILD_WITH_QT6=1"
+ OPTS+=" -DCMAKE_INSTALL_PREFIX=${QT6DIR}"
+ cmake_build $QT6DIR
+ else
+ cmake_build
+ fi
}
-default_build() {
- kde5_build
-}
-
function default_install() {
cmake_install
}