CMake: Document more configure argument mappings

Change-Id: I4f96fd59566d011088e426342db9cc6536d63a71
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2020-08-21 21:33:07 +02:00
parent 298413de77
commit 6b363bbde3

View File

@ -33,7 +33,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -force-debug-info | Use the RelWithDebInfo build config. | | | -force-debug-info | Use the RelWithDebInfo build config. | |
| -separate-debug-info | -DFEATURE_separate_debug_info=ON | | | -separate-debug-info | -DFEATURE_separate_debug_info=ON | |
| -gdb-index | -DFEATURE_enable_gdb_index=ON | | | -gdb-index | -DFEATURE_enable_gdb_index=ON | |
| -strip | | | | -strip | cmake --install . --strip | This affects the install targets generated by qmake. |
| -gc-binaries | -DFEATURE_gc_binaries=ON | | | -gc-binaries | -DFEATURE_gc_binaries=ON | |
| -force-asserts | -DFEATURE_force_asserts=ON | | | -force-asserts | -DFEATURE_force_asserts=ON | |
| -developer-build | -DFEATURE_developer_build=ON | | | -developer-build | -DFEATURE_developer_build=ON | |
@ -45,7 +45,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -device <name> | equivalent to -xplatform devices/<name> | | | -device <name> | equivalent to -xplatform devices/<name> | |
| -device-option <key=value> | -DQT_QMAKE_DEVICE_OPTIONS=key1=value1;key2=value2 | Only used for generation qmake-compatibility files. | | -device-option <key=value> | -DQT_QMAKE_DEVICE_OPTIONS=key1=value1;key2=value2 | Only used for generation qmake-compatibility files. |
| | | The device options are written into mkspecs/qdevice.pri. | | | | The device options are written into mkspecs/qdevice.pri. |
| -appstore-compliant | | | | -appstore-compliant | -DFEATURE_appstore_compliant=ON | |
| -qtnamespace <name> | -DQT_NAMESPACE=<name> | | | -qtnamespace <name> | -DQT_NAMESPACE=<name> | |
| -qtlibinfix <infix> | | | | -qtlibinfix <infix> | | |
| -testcocoon | | | | -testcocoon | | |
@ -55,8 +55,8 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -sanitize <arg> | -DFEATURE_sanitize_<arg> | | | -sanitize <arg> | -DFEATURE_sanitize_<arg> | |
| -coverage <arg> | | | | -coverage <arg> | | |
| -c++std c++2a | -DFEATURE_cxx2a=ON | | | -c++std c++2a | -DFEATURE_cxx2a=ON | |
| -sse2/sse3/-ssse3/-sse4.1 | | | | -sse2/-sse3/-ssse3/-sse4.1 | -DFEATURE_sse4=ON | |
| -mips_dsp/-mips_dspr2 | | | | -mips_dsp/-mips_dspr2 | -DFEATURE_mips_dsp=ON | |
| -qreal <type> | -DQT_COORD_TYPE=<type> | | | -qreal <type> | -DQT_COORD_TYPE=<type> | |
| -R <string> | -DQT_EXTRA_RPATHS=path1;path2 | | | -R <string> | -DQT_EXTRA_RPATHS=path1;path2 | |
| -rpath | negative CMAKE_SKIP_BUILD_RPATH | | | -rpath | negative CMAKE_SKIP_BUILD_RPATH | |
@ -69,7 +69,9 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -ltcg | | | | -ltcg | | |
| -linker [bfd,gold,lld] | -DINPUT_linker=<name> or | | | -linker [bfd,gold,lld] | -DINPUT_linker=<name> or | |
| | -DFEATURE_use_<name>_linker=ON | | | | -DFEATURE_use_<name>_linker=ON | |
| -incredibuild-xge | | | | -incredibuild-xge | n/a | This option enables remote distribution of Visual Studio |
| | | custom build steps for moc, uic, and rcc. |
| | | This lacks support in CMake. |
| -ccache | -DQT_USE_CCACHE=ON | | | -ccache | -DQT_USE_CCACHE=ON | |
| -make-tool <tool> | n/a | | | -make-tool <tool> | n/a | |
| -mp | n/a | | | -mp | n/a | |
@ -78,8 +80,10 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -silent | n/a | | | -silent | n/a | |
| -sysroot <dir> | -DCMAKE_SYSROOT=<dir> | Should be provided by a toolchain file that's | | -sysroot <dir> | -DCMAKE_SYSROOT=<dir> | Should be provided by a toolchain file that's |
| | | passed via -DCMAKE_TOOLCHAIN_FILE=<filename> | | | | passed via -DCMAKE_TOOLCHAIN_FILE=<filename> |
| -no-gcc-sysroot | | | | -no-gcc-sysroot | n/a | The corresponding CMake variables are CMAKE_SYSROOT_LINK |
| -no-pkg-config | | | | | | and CMAKE_SYSROOT_COMPILE. |
| | | They are usually set in a toolchain file. |
| -no-pkg-config | -DFEATURE_pkg_config=OFF | |
| -D <string> | -DQT_EXTRA_DEFINES=<string1>;<string2> | | | -D <string> | -DQT_EXTRA_DEFINES=<string1>;<string2> | |
| -I <string> | -DQT_EXTRA_INCLUDEPATHS=<string1>;<string2> | | | -I <string> | -DQT_EXTRA_INCLUDEPATHS=<string1>;<string2> | |
| -L <string> | -DQT_EXTRA_LIBDIRS=<string1>;<string2> | | | -L <string> | -DQT_EXTRA_LIBDIRS=<string1>;<string2> | |
@ -97,59 +101,64 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -nomake <part> | -DBUILD_TESTING=OFF | A way to turn off tools explicitly is missing. | | -nomake <part> | -DBUILD_TESTING=OFF | A way to turn off tools explicitly is missing. |
| | -DBUILD_EXAMPLES=OFF | | | | -DBUILD_EXAMPLES=OFF | |
| -compile-examples | | | | -compile-examples | | |
| -gui | | | | -no-gui | | |
| -widgets | | | | -no-widgets | -DFEATURE_widgets=OFF | |
| -no-dbus | | | | -no-dbus | -DFEATURE_dbus=OFF | |
| -dbus-linked | | | | -dbus [linked/runtime] | -DINPUT_dbus=[linked/runtime] | |
| -dbus-runtime | | | | -dbus-linked | -DINPUT_dbus=linked | |
| -accessibility | | | | -dbus-runtime | -DINPUT_dbus=runtime | |
| -doubleconversion | | | | -accessibility | -DFEATURE_accessibility=ON | |
| -glib | | | | -doubleconversion | -DFEATURE_doubleconversion=ON | |
| -eventfd | | | | | -DFEATURE_system_doubleconversion=ON/OFF | |
| -inotify | | | | -glib | -DFEATURE_glib=ON | |
| -icu | | | | -eventfd | -DFEATURE_eventfd=ON | |
| -pcre | | | | -inotify | -DFEATURE_inotify=ON | |
| -pps | | | | -icu | -DFEATURE_icu=ON | |
| -zlib | | | | -pcre | -DFEATURE_pcre2=ON | |
| -ssl | | | | -pcre [system/qt] | -DFEATURE_system_pcre2=ON/OFF | |
| -no-openssl | | | | -pps | n/a | QNX feature. Not available for 6.0. |
| -openssl-linked | | | | -zlib [system/qt] | -DFEATURE_system_zlib=ON/OFF | |
| -openssl-runtime | | | | -ssl | -DFEATURE_ssl=ON | |
| -schannel | | | | -openssl [no/yes/linked/runtime] | -DINPUT_openssl=no/yes/linked/runtime | |
| -securetransport | | | | -openssl-linked | -DINPUT_openssl=linked | |
| -sctp | | | | -openssl-runtime | -DINPUT_openssl=runtime | |
| -libproxy | | | | -schannel | -DFEATURE_schannel=ON | |
| -system-proxies | | | | -securetransport | -DFEATURE_securetransport=ON | |
| -cups | | | | -sctp | -DFEATURE_sctp=ON | |
| -fontconfig | | | | -libproxy | -DFEATURE_libproxy=ON | |
| -freetype | | | | -system-proxies | -DFEATURE_system_proxies=ON | |
| -harfbuzz | | | | -cups | -DFEATURE_cups=ON | |
| -gtk | | | | -fontconfig | -DFEATURE_fontconfig=ON | |
| -lgmon | | | | -freetype [no/qt/system] | -DFEATURE_freetype=ON/OFF | |
| | -DFEATURE_system_freetype=ON/OFF | |
| -harfbuzz [no/qt/system] | -DFEATURE_harfbuzz=ON | |
| | -DFEATURE_system_harfbuzz=ON/OFF | |
| -gtk | -DFEATURE_gtk3=ON | |
| -lgmon | n/a | QNX-specific |
| -no-opengl | | | | -no-opengl | | |
| -opengl <api> | | | | -opengl <api> | | |
| -opengles3 | | | | -opengles3 | | |
| -egl | | | | -egl | | |
| -qpa <name> | | | | -qpa <name> | | |
| -xcb-xlib | | | | -xcb-xlib | -DFEATURE_xcb_xlib=ON | |
| -direct2d | | | | -direct2d | -DFEATURE_direct2d=ON | |
| -directfb | | | | -directfb | -DFEATURE_directfb=ON | |
| -eglfs | | | | -eglfs | -DFEATURE_eglfs=ON | |
| -gbm | | | | -gbm | -DFEATURE_gbm=ON | |
| -kms | | | | -kms | -DFEATURE_kms=ON | |
| -linuxfb | | | | -linuxfb | -DFEATURE_linuxfb=ON | |
| -xcb | | | | -xcb | -DFEATURE_xcb=ON | |
| -libudev | | | | -libudev | -DFEATURE_libudev=ON | |
| -evdev | | | | -evdev | -DFEATURE_evdev=ON | |
| -imf | | | | -imf | n/a | QNX-specific |
| -libinput | | | | -libinput | -DFEATURE_libinput=ON | |
| -mtdev | | | | -mtdev | -DFEATURE_mtdev=ON | |
| -tslib | -DFEATURE_tslib=ON | | | -tslib | -DFEATURE_tslib=ON | |
| -bundled-xcb-xinput | | | | -bundled-xcb-xinput | -DFEATURE_system_xcb_xinput=OFF | |
| -xkbcommon | | | | -xkbcommon | -DFEATURE_xkbcommon=ON | |
| -gif | | | | -gif | -DFEATURE_gif=ON | |
| -ico | | | | -ico | -DFEATURE_ico=ON | |
| -libpng | | | | -libpng | -DFEATURE_libpng=ON | |
| -libjpeg | | | | -libjpeg | -DFEATURE_libjpeg=ON | |
| -sql-<driver> | | | | -sql-<driver> | -DFEATURE_sql_<driver>=ON | |
| -sqlite | | | | -sqlite [qt/system] | -DFEATURE_system_sqlite=OFF/ON | |