Skip to content

Commit

Permalink
Remove the -no-compile-examples configure switch
Browse files Browse the repository at this point in the history
If '-make examples -no-compile-examples' was specified, sources of Qt's
examples would be installed, but the examples would not be built.

This switch has always been a source for confusion and is only
interesting for distributors, who can just package the examples
directory tree.

Change-Id: I0291d70e4951d98b553a4abf217db49d05316d3a
Reviewed-by: Kai Koehne <[email protected]>
  • Loading branch information
jobor committed Sep 10, 2020
1 parent 6ae7a02 commit 069fc33
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 29 deletions.
1 change: 0 additions & 1 deletion .prev_qt_cmdline.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ qt_commandline_option(avx512 TYPE boolean NAME avx512f)
qt_commandline_option(c++std TYPE cxxstd)
qt_commandline_option(ccache TYPE boolean NAME ccache)
qt_commandline_option(commercial TYPE void)
qt_commandline_option(compile-examples TYPE boolean NAME compile_examples)
qt_commandline_option(confirm-license TYPE void)
qt_commandline_option(coverage TYPE coverage)
qt_commandline_option(dbus TYPE optionalString VALUES no yes linked runtime)
Expand Down
1 change: 0 additions & 1 deletion cmake/configure-cmake-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| | -DBUILD_EXAMPLES=ON | |
| -nomake <part> | -DBUILD_TESTING=OFF | A way to turn off tools explicitly is missing. |
| | -DBUILD_EXAMPLES=OFF | |
| -compile-examples | | |
| -no-gui | | |
| -no-widgets | -DFEATURE_widgets=OFF | |
| -no-dbus | -DFEATURE_dbus=OFF | |
Expand Down
2 changes: 0 additions & 2 deletions config_help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ Component selection:
[libs and examples, also tools if not cross-building,
also tests if -developer-build]
-nomake <part> ....... Exclude <part> from the list of parts to be built.
-compile-examples .... When unset, install only the sources of examples
[no on WebAssembly, otherwise yes]
-gui ................. Build the Qt GUI module and dependencies [yes]
-widgets ............. Build the Qt Widgets module and dependencies [yes]
-no-dbus ............. Do not build the Qt D-Bus module
Expand Down
5 changes: 0 additions & 5 deletions configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -889,11 +889,6 @@ qt_feature("libudev" PRIVATE
LABEL "udev"
CONDITION Libudev_FOUND
)
qt_feature("compile_examples"
LABEL "Compile examples"
AUTODETECT NOT WASM
)
qt_feature_config("compile_examples" QMAKE_PRIVATE_CONFIG)
qt_feature("ccache"
LABEL "Using ccache"
AUTODETECT 1
Expand Down
6 changes: 0 additions & 6 deletions configure.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"c++std": "cxxstd",
"ccache": { "type": "boolean", "name": "ccache" },
"commercial": "void",
"compile-examples": { "type": "boolean", "name": "compile_examples" },
"confirm-license": "void",
"coverage": "coverage",
"dbus": { "type": "optionalString", "values": [ "no", "yes", "linked", "runtime" ] },
Expand Down Expand Up @@ -1364,11 +1363,6 @@
"condition": "libs.libudev",
"output": [ "privateFeature" ]
},
"compile_examples": {
"label": "Compile examples",
"autoDetect": "!config.wasm",
"output": [ "privateConfig" ]
},
"incredibuild_xge": {
"label": "IncrediBuild",
"emitIf": "var.QMAKE_HOST.os == 'Windows'",
Expand Down
13 changes: 1 addition & 12 deletions mkspecs/features/qt_example_installs.prf
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,4 @@ equals(TEMPLATE, app)|equals(TEMPLATE, lib) {
}
}

!equals(TEMPLATE, subdirs):!compile_examples {
TEMPLATE = aux
CONFIG -= have_target qt staticlib dll
SOURCES =
OBJECTIVE_SOURCES =
INSTALLS -= target
QMAKE_SUBSTITUTES =
QMAKE_EXTRA_COMPILERS =
COPIES =
} else {
CONFIG += relative_qt_rpath # Examples built as part of Qt should be relocatable
}
CONFIG += relative_qt_rpath # Examples built as part of Qt should be relocatable
1 change: 0 additions & 1 deletion qt_cmdline.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ qt_commandline_option(avx512 TYPE boolean NAME avx512f)
qt_commandline_option(c++std TYPE cxxstd)
qt_commandline_option(ccache TYPE boolean NAME ccache)
qt_commandline_option(commercial TYPE void)
qt_commandline_option(compile-examples TYPE boolean NAME compile_examples)
qt_commandline_option(confirm-license TYPE void)
qt_commandline_option(coverage TYPE coverage)
qt_commandline_option(dbus TYPE optionalString VALUES no yes linked runtime)
Expand Down
1 change: 0 additions & 1 deletion util/cmake/configurejson2cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ def parseInput(ctx, sinput, data, cm_fh):
"c++std",
"ccache",
"commercial",
"compile-examples",
"confirm-license",
"dbus",
"dbus-runtime",
Expand Down

0 comments on commit 069fc33

Please sign in to comment.