Skip to content

Instantly share code, notes, and snippets.

@lauromoura
Created February 15, 2012 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lauromoura/1836652 to your computer and use it in GitHub Desktop.
Save lauromoura/1836652 to your computer and use it in GitHub Desktop.
Patch qt-components to check $INSTALL_ROOT when bumping the qml files.
commit 28d31cf7a98462553e599acd0a9121bd13667eef
Author: Lauro Neto <lauro.neto@openbossa.org>
Date: Wed Feb 15 16:15:51 2012 +0100
Use INSTALL_ROOT to bump the QML files version.
When installing with INSTALL_ROOT, Makefile searched the
original path for the files to change, making the command useless.
diff --git a/qml.pri b/qml.pri
index 3ef110b..25feb90 100644
--- a/qml.pri
+++ b/qml.pri
@@ -144,7 +144,7 @@ equals(QT_MAJOR_VERSION, 5):if(!debug_and_release|CONFIG(release, debug|release)
isEmpty($${install}.files): next()
bump_qml_version_installed.depends += install_$${install}
- bump_qml_version_installed.commands += && $$bumpQmlVersion($$eval($${install}.path), 2.0)
+ bump_qml_version_installed.commands += && $$bumpQmlVersion(\$\(INSTALL_ROOT\)$$eval($${install}.path), 2.0)
}
INSTALLS += bump_qml_version_installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment