summaryrefslogtreecommitdiffstats
path: root/src/corelib/qt_cmdline.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-07-08 11:35:43 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-17 08:08:20 +0200
commit584d4be174c6ac8cd0f3395c3852bfe1516f09a5 (patch)
tree9e8aafe467de28bf80c6bb861f6abec139454d29 /src/corelib/qt_cmdline.cmake
parent2f9a294252ae44defd4d8ae1b3c09d8e36ee0612 (diff)
CMake: Re-implement configure/qmake's command line handling in CMake
We extend configurejson2cmake to read the "commandline" information from configure.json. This data is then translated to CMake function calls and written it into commandline.cmake files. We extend QtProcessConfigureArgs.cmake to pick up those commandline.cmake files to feed our command line handling code, which is a re-implementation of the command line handling in qt_configure.prf. The command line handler sets INPUT_xxx variables, similar to configure/qmake's config.input.xxx variables. The INPUT_xxx values are translated - to -DFEATURE_xxx=ON/OFF arguments if the input represents a feature, - to corresponding CMake variables if such a variable is known, - or to -DINPUT_xxx=yyy CMake arguments. Configure arguments that have an entry in cmake/configure-cmake-mapping.md are actually implemented. Other arguments are likely to need more work. Task-number: QTBUG-85373 Change-Id: Ia96baa673fc1fb88e73ba05a1afb473aa074b37d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/qt_cmdline.cmake')
-rw-r--r--src/corelib/qt_cmdline.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/corelib/qt_cmdline.cmake b/src/corelib/qt_cmdline.cmake
new file mode 100644
index 0000000000..b38039f61f
--- /dev/null
+++ b/src/corelib/qt_cmdline.cmake
@@ -0,0 +1,14 @@
+qt_commandline_option(doubleconversion TYPE enum VALUES no qt system)
+qt_commandline_option(eventfd TYPE boolean)
+qt_commandline_option(glib TYPE boolean)
+qt_commandline_option(icu TYPE boolean)
+qt_commandline_option(inotify TYPE boolean)
+qt_commandline_option(journald TYPE boolean)
+qt_commandline_option(libb2 TYPE enum VALUES no qt system)
+qt_commandline_option(mimetype-database TYPE boolean)
+qt_commandline_option(pcre TYPE enum VALUES no qt system)
+qt_commandline_option(posix-ipc TYPE boolean NAME ipc_posix)
+qt_commandline_option(pps TYPE boolean NAME qqnx_pps)
+qt_commandline_option(slog2 TYPE boolean)
+qt_commandline_option(syslog TYPE boolean)
+qt_commandline_option(trace TYPE optionalString VALUES etw lttng no yes)