summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2014-12-14 10:32:03 +0100
committerAdrien Nader <adrien@notk.org>2014-12-14 10:32:03 +0100
commitfdd0c6042dc63915d4cc1710e41d902622c098d9 (patch)
treea69deb3c3cdd0c61cf5332e33fd631b197fd6eab
parent4a005f3cd498c1950924a92ed36d517330a4fd03 (diff)
qt: make it possible to disable sub-components of qtbase.
-rwxr-xr-xl/qt/qt.SlackBuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/l/qt/qt.SlackBuild b/l/qt/qt.SlackBuild
index d21c144..d0b795c 100755
--- a/l/qt/qt.SlackBuild
+++ b/l/qt/qt.SlackBuild
@@ -124,6 +124,16 @@ MAKEFLAGS="${NUMJOBS}" ./configure \
-no-pch
# No-precompiled-headers is ccache-friendly.
+# Kill building of some sub-modules that cannot be disabled through configure.
+# In particular this makes it possible to not build GUI and widgets code while
+# still having 'uic' built.
+# 70% reduction in build time for tools-only builds in addition to the gains
+# through the various -skip configure parameters (which cut the build times in
+# half).
+for p in ${HACKY_DISABLES}; do
+ printf 'all:\n\ttrue\n\ninstall:\n\ttrue\n' > "qtbase/src/${p}/Makefile"
+done
+
# Sometimes a failure happens when parallelizing make. Try again if make fails,
# but make a failure the second time around (single threaded) a fatal error:
make $NUMJOBS || make