Don't precompile QML files with disable-prebuilts

This binds us against the exact compile-time version of Qt with no
forwards or backwards compatibility, so it must not be used when we
could load Qt libraries from a location outside of our app bundle.
This commit is contained in:
Cameron Gutman 2024-07-04 15:45:48 -05:00
parent 17a2548480
commit d73df12367

View File

@ -12,11 +12,14 @@ include(../globaldefs.pri)
# Precompile QML files to avoid writing qmlcache on portable versions. # Precompile QML files to avoid writing qmlcache on portable versions.
# Since this binds the app against the Qt runtime version, we will only # Since this binds the app against the Qt runtime version, we will only
# do this for Windows and Mac, since they ship with the Qt runtime. # do this for Windows and Mac (when disable-prebuilts is not defined),
win32|macx { # since they always ship with the matching build of the Qt runtime.
!disable-prebuilts {
win32|macx {
CONFIG(release, debug|release) { CONFIG(release, debug|release) {
CONFIG += qtquickcompiler CONFIG += qtquickcompiler
} }
}
} }
TEMPLATE = app TEMPLATE = app