diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-11-09 15:21:19 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-11-09 15:21:19 -0800 |
| commit | 2b3d703513d37a9b01b81be37b04c5b38b528e2c (patch) | |
| tree | 37fbd5afb57f091810f0d1fa5463f9cddfe27127 | |
| parent | 083e0a611f33496714b7e31161887e8026a29411 (diff) | |
| parent | 15f3aa7ce624894ee4a4e3b2efa6f96a9014d41d (diff) | |
| download | vcpkg-2b3d703513d37a9b01b81be37b04c5b38b528e2c.tar.gz vcpkg-2b3d703513d37a9b01b81be37b04c5b38b528e2c.zip | |
Merge branch 'master' of https://github.com/microsoft/vcpkg; branch 'qt5-plugin-fix' of https://github.com/Barath-Kannan/vcpkg into Barath-Kannan-qt5-plugin-fix
| -rw-r--r-- | ports/qt5/portfile.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ports/qt5/portfile.cmake b/ports/qt5/portfile.cmake index f65bee4ba..6b11a8abe 100644 --- a/ports/qt5/portfile.cmake +++ b/ports/qt5/portfile.cmake @@ -50,6 +50,7 @@ vcpkg_execute_required_process( -hostbindir ${CURRENT_PACKAGES_DIR}/tools -archdatadir ${CURRENT_PACKAGES_DIR}/share/qt5 -datadir ${CURRENT_PACKAGES_DIR}/share/qt5 + -plugindir ${CURRENT_PACKAGES_DIR}/plugins WORKING_DIRECTORY ${OUTPUT_PATH} LOGNAME configure-${TARGET_TRIPLET} ) @@ -115,9 +116,20 @@ file(REMOVE ${DEBUG_LIB_FILES}) file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Qt5Gamepad.lib ${CURRENT_PACKAGES_DIR}/lib/Qt5Gamepad.lib) file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/Qt5Gamepad.prl ${CURRENT_PACKAGES_DIR}/lib/Qt5Gamepad.prl) file(GLOB BINARY_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*.exe") - file(INSTALL ${BINARY_TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools) file(REMOVE ${BINARY_TOOLS}) +file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/plugins") +file(GLOB_RECURSE DEBUG_PLUGINS + "${CURRENT_PACKAGES_DIR}/plugins/*d.dll" + "${CURRENT_PACKAGES_DIR}/plugins/*d.pdb" +) +foreach(file ${DEBUG_PLUGINS}) + get_filename_component(file_n ${file} NAME) + file(RELATIVE_PATH file_rel "${CURRENT_PACKAGES_DIR}/plugins" ${file}) + get_filename_component(rel_dir ${file_rel} DIRECTORY) + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/plugins/${rel_dir}") + file(RENAME ${file} "${CURRENT_PACKAGES_DIR}/debug/plugins/${rel_dir}/${file_n}") +endforeach() if(DEFINED VCPKG_CRT_LINKAGE AND VCPKG_CRT_LINKAGE STREQUAL dynamic) file(GLOB RELEASE_DLLS "${CURRENT_PACKAGES_DIR}/bin/*.dll") |
