diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-06-18 08:12:44 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-06-17 17:12:44 -0700 |
| commit | 09d8df72aabf7bae33a88615d09a3f4591400936 (patch) | |
| tree | 3477c53d471c4d23e226d38ce1eac36f0df6b7ee | |
| parent | 0b24f31aadfff8e0b43903dc7632640d32d6a343 (diff) | |
| download | vcpkg-09d8df72aabf7bae33a88615d09a3f4591400936.tar.gz vcpkg-09d8df72aabf7bae33a88615d09a3f4591400936.zip | |
[qt5-declarative]Fix error when building release-only. (#6927)
| -rw-r--r-- | ports/qt5-declarative/CONTROL | 2 | ||||
| -rw-r--r-- | ports/qt5-declarative/portfile.cmake | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ports/qt5-declarative/CONTROL b/ports/qt5-declarative/CONTROL index 1ef033d17..1e7e6f6e6 100644 --- a/ports/qt5-declarative/CONTROL +++ b/ports/qt5-declarative/CONTROL @@ -1,4 +1,4 @@ Source: qt5-declarative -Version: 5.12.3 +Version: 5.12.3-1 Description: Qt5 Declarative (Quick 2) Module. Includes QtQuick, QtQuickParticles, QtQuickWidgets, QtQml, and QtPacketProtocol. Build-Depends: qt5-modularscripts, qt5-base diff --git a/ports/qt5-declarative/portfile.cmake b/ports/qt5-declarative/portfile.cmake index badeab882..1056d1b9f 100644 --- a/ports/qt5-declarative/portfile.cmake +++ b/ports/qt5-declarative/portfile.cmake @@ -6,7 +6,9 @@ qt_modular_library(qtdeclarative 0caddcfee36cbf52bacd3a400d304511255715e2b5a58c1 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/tools/qt5-declarative/plugins/platforminputcontexts) -set(qt5decpath ${CURRENT_PACKAGES_DIR}/share/qt5/debug/mkspecs/modules/qt_lib_qmldevtools_private.pri) -file(READ "${qt5decpath}" _contents) -string(REPLACE [[QT.qmldevtools_private.libs = $$QT_MODULE_HOST_LIB_BASE]] [[QT.qmldevtools_private.libs = $$QT_MODULE_LIB_BASE]] _contents "${_contents}") -file(WRITE "${qt5decpath}" "${_contents}")
\ No newline at end of file +if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + set(qt5decpath ${CURRENT_PACKAGES_DIR}/share/qt5/debug/mkspecs/modules/qt_lib_qmldevtools_private.pri) + file(READ "${qt5decpath}" _contents) + string(REPLACE [[QT.qmldevtools_private.libs = $$QT_MODULE_HOST_LIB_BASE]] [[QT.qmldevtools_private.libs = $$QT_MODULE_LIB_BASE]] _contents "${_contents}") + file(WRITE "${qt5decpath}" "${_contents}") +endif()
\ No newline at end of file |
