From 584d4be174c6ac8cd0f3395c3852bfe1516f09a5 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 8 Jul 2020 11:35:43 +0200 Subject: 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 --- src/printsupport/qt_cmdline.cmake | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/printsupport/qt_cmdline.cmake (limited to 'src/printsupport') diff --git a/src/printsupport/qt_cmdline.cmake b/src/printsupport/qt_cmdline.cmake new file mode 100644 index 0000000000..dfbe5febe4 --- /dev/null +++ b/src/printsupport/qt_cmdline.cmake @@ -0,0 +1 @@ +qt_commandline_option(cups TYPE boolean) -- cgit v1.2.3