diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-11-01 15:50:15 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-11-02 15:16:31 +0000 |
commit | 81c92bf00f2e1dad3e319d0bbc5ae466e2a047c6 (patch) | |
tree | 2a0caac96b85f8163c4aa70d41b393e3d4033fcc /static-res.pro | |
parent | e7bb51e497cd5836472f4414d254f560ceab2663 (diff) | |
download | qbs-81c92bf00f2e1dad3e319d0bbc5ae466e2a047c6.tar.gz |
Allow fully overriding the QML type info build and install paths
Amends 6cb626668a
Change-Id: I876f4b72a5d6ee20721b3746861f615e750c9be1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'static-res.pro')
-rw-r--r-- | static-res.pro | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/static-res.pro b/static-res.pro index 6ceae11cb..f65c82353 100644 --- a/static-res.pro +++ b/static-res.pro @@ -1,13 +1,14 @@ TEMPLATE = aux !isEmpty(QBS_APPS_DESTDIR): qbsbindir = $${QBS_APPS_DESTDIR} -else: qbsbindir = ../../../bin -qbsbindir = $$clean_path(src/app/qbs/$$qbsbindir) +else: qbsbindir = bin builddirname = qbsres typedescdir = share/qbs/qml-type-descriptions typedescdir_src = $$builddirname/default/install-root/$$typedescdir -!isEmpty(QBS_RESOURCES_BUILD_DIR): \ +!isEmpty(QBS_QML_TYPE_DESCRIPTIONS_BUILD_DIR): \ + typedescdir_dst = $$QBS_QML_TYPE_DESCRIPTIONS_BUILD_DIR +else:!isEmpty(QBS_RESOURCES_BUILD_DIR): \ typedescdir_dst = $$QBS_RESOURCES_BUILD_DIR/$$typedescdir else: \ typedescdir_dst = $$typedescdir @@ -51,9 +52,11 @@ PRE_TARGETDEPS += $$qbsqmltypes.target $$qbsbundle.target include(src/install_prefix.pri) qbstypedescfiles.files = $$qbsqmltypes.target $$qbsbundle.target -!isEmpty(QBS_RESOURCES_INSTALL_DIR): \ - installPrefix = $${QBS_RESOURCES_INSTALL_DIR} +!isEmpty(QBS_QML_TYPE_DESCRIPTIONS_INSTALL_DIR): \ + installPrefix = $${QBS_QML_TYPE_DESCRIPTIONS_INSTALL_DIR} +else:!isEmpty(QBS_RESOURCES_INSTALL_DIR): \ + installPrefix = $${QBS_RESOURCES_INSTALL_DIR}/$$typedescdir else: \ - installPrefix = $${QBS_INSTALL_PREFIX} -qbstypedescfiles.path = $${installPrefix}/$$typedescdir + installPrefix = $${QBS_INSTALL_PREFIX}/$$typedescdir +qbstypedescfiles.path = $${installPrefix} INSTALLS += qbstypedescfiles |