diff options
-rw-r--r-- | configure.json | 7 | ||||
-rw-r--r-- | qt.pro | 31 |
2 files changed, 34 insertions, 4 deletions
diff --git a/configure.json b/configure.json new file mode 100644 index 00000000..f437252f --- /dev/null +++ b/configure.json @@ -0,0 +1,7 @@ +{ + "commandline": { + "options": { + "skip": "addString" + } + } +} @@ -1,12 +1,10 @@ # Create the super cache so modules will add themselves to it. cache(, super) -CONFIG += build_pass # hack to disable the .qmake.super auto-add -load(qt_build_config) -CONFIG -= build_pass # unhack, as it confuses Qt Creator - TEMPLATE = subdirs +CONFIG += prepare_docs qt_docs_targets + # Extract submodules from .gitmodules. lines = $$cat(.gitmodules, lines) for (line, lines) { @@ -26,6 +24,29 @@ for (line, lines) { } QMAKE_INTERNAL_INCLUDED_FILES += $$PWD/.gitmodules +QT_SKIP_MODULES = +uikit { + QT_SKIP_MODULES += qtdoc qtmacextras qtserialport qtwebkit qtwebkit-examples + !ios: QT_SKIP_MODULES += qtscript +} + +# This is a bit hacky, but a proper implementation is not worth it. +args = $$QMAKE_EXTRA_ARGS +for (ever) { + isEmpty(args): break() + a = $$take_first(args) + + equals(a, -skip) { + isEmpty(args): break() + m = $$take_first(args) + contains(m, -.*): next() + m ~= s/^(qt)?/qt/ + !contains(modules, $$m): \ + error("-skip command line argument used with non-existent module '$$m'.") + QT_SKIP_MODULES += $$m + } +} + modules = $$sort_depends(modules, module., .depends .recommends) modules = $$reverse(modules) for (mod, modules) { @@ -72,3 +93,5 @@ for (mod, modules) { SUBDIRS += $$mod } + +load(qt_configure) |