diff options
author | Adrien Nader <adrien@notk.org> | 2014-12-14 10:32:03 +0100 |
---|---|---|
committer | Adrien Nader <adrien@notk.org> | 2014-12-14 10:32:03 +0100 |
commit | fdd0c6042dc63915d4cc1710e41d902622c098d9 (patch) | |
tree | a69deb3c3cdd0c61cf5332e33fd631b197fd6eab | |
parent | 4a005f3cd498c1950924a92ed36d517330a4fd03 (diff) |
qt: make it possible to disable sub-components of qtbase.
-rwxr-xr-x | l/qt/qt.SlackBuild | 10 |
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 |