diff --git a/projects/kde/cleanup.sh b/projects/kde/cleanup.sh index 626900b..17f1b3f 100644 --- a/projects/kde/cleanup.sh +++ b/projects/kde/cleanup.sh @@ -9,4 +9,4 @@ cd ~/projects/kde/src || exit 1 git clone git@invent.kde.org:sdk/kdesrc-build.git || exit 1 # start from scratch -exec ./kdesrc-build/kdesrc-build --refresh-build --include-dependencies kate konsole +exec ./kdesrc-build/kdesrc-build --rc-file=../kdesrc-buildrc --refresh-build --include-dependencies kate konsole diff --git a/projects/kde/kdesrc-buildrc b/projects/kde/kdesrc-buildrc new file mode 100644 index 0000000..8caedf0 --- /dev/null +++ b/projects/kde/kdesrc-buildrc @@ -0,0 +1,34 @@ +global + # use the latest KF5 and Qt5-based software. + branch-group kf5-qt5 + + # we want .kateproject files with ninja + cmake-options -G "Kate - Ninja" + + # Restrict make and ninja to using no more than 8 separate compile jobs even + # when more CPU is available, to avoid running out of memory + make-options -j8 NINJAFLAGS=-j8 + ninja-options -j8 + + # clangd tooling + compile-commands-export yes + compile-commands-linking yes + + # flat structure + directory-layout flat + + # Install directory for KDE software + kdedir ~/projects/kde/usr + + # Directory for downloaded source code + source-dir ~/projects/kde/src + + # Directory to build KDE into before installing + # relative to source-dir by default + build-dir ~/projects/kde/build +end global + +include ~/projects/kde/src/kdesrc-build/kf5-frameworks-build-include +include ~/projects/kde/src/kdesrc-build/kf5-applications-build-include +include ~/projects/kde/src/kdesrc-build/kf5-workspace-build-include +include ~/projects/kde/src/kdesrc-build/kf5-extragear-build-include diff --git a/projects/kde6/kdesrc-buildrc b/projects/kde6/kdesrc-buildrc new file mode 100644 index 0000000..ff7e6f1 --- /dev/null +++ b/projects/kde6/kdesrc-buildrc @@ -0,0 +1,32 @@ +global + # use the latest KF6 and Qt6-based software. + branch-group kf6-qt6 + + # we want .kateproject files with ninja + cmake-options -G "Kate - Ninja" -DBUILD_WITH_QT6=ON -DQT_MAJOR_VERSION=6 + + # Restrict make and ninja to using no more than 8 separate compile jobs even + # when more CPU is available, to avoid running out of memory + make-options -j8 NINJAFLAGS=-j8 + ninja-options -j8 + + # clangd tooling + compile-commands-export yes + compile-commands-linking yes + + # flat structure + directory-layout flat + + # Install directory for KDE software + kdedir ~/projects/kde6/usr + + # Directory for downloaded source code + source-dir ~/projects/kde6/src + + # Directory to build KDE into before installing + # relative to source-dir by default + build-dir ~/projects/kde6/build +end global + +include ~/projects/kde6/src/kdesrc-build/kf6-frameworks-build-include +include ~/projects/kde6/src/kdesrc-build/kf6-applications-build-include