From 7f427f737798d1454ba92277f38a2783ce1b2cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCri=20Valdmann?= Date: Tue, 26 Mar 2019 10:34:08 +0100 Subject: Document QTQUICK_COMPILER_SKIPPED_RESOURCES Document the qmake variable for skipping resource files. Copied from the old Qt Quick Compiler docs (https://doc.qt.io/QtQuickCompiler/). Fixes: QTBUG-74078 Change-Id: I7fc2fa5171aad7ec380a46495298b29caf86b6a2 Reviewed-by: Simon Hausmann Reviewed-by: Leena Miettinen --- doc/src/qmlapp/deployment.qdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/src/qmlapp/deployment.qdoc b/doc/src/qmlapp/deployment.qdoc index a370aabbc..534ea2f26 100644 --- a/doc/src/qmlapp/deployment.qdoc +++ b/doc/src/qmlapp/deployment.qdoc @@ -105,6 +105,16 @@ One added benefit of this way of developing and deploying the application is that you will be notified of syntax errors in your QML documents at application compile time, instead of run-time when loading the file. +If you have \c .qml or \c .js files which should not be compiled but just +bundled by the resource system (for example, \c .js files used with \l{Qt +WebEngine}), then you can omit them from the compilation by specifying the +resources files that contain them in the \c QTQUICK_COMPILER_SKIPPED_RESOURCES +variable in your project file, like below: + +\code +QTQUICK_COMPILER_SKIPPED_RESOURCES += bundle_only.qrc +\endcode + \section2 Limitations Currently this feature will tie your application to the Qt version you are -- cgit v1.2.3