aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-11-07 21:35:08 -0800
committerRobert Schumacher <roschuma@microsoft.com>2016-11-07 21:35:08 -0800
commit5e058c21928de5092242cb6e0c590c3a2d758c6c (patch)
treec5fb313bc7b485597f9ff9c3a2dba5d5a51ff98f
parent1bc75b551d3a8cf3e148b98b9341f3c29e0026b4 (diff)
downloadvcpkg-5e058c21928de5092242cb6e0c590c3a2d758c6c.tar.gz
vcpkg-5e058c21928de5092242cb6e0c590c3a2d758c6c.zip
[qt5] Don't copy PDBs for tools. Skip plugins directory (it's empty?).
-rw-r--r--ports/qt5/portfile.cmake26
1 files changed, 1 insertions, 25 deletions
diff --git a/ports/qt5/portfile.cmake b/ports/qt5/portfile.cmake
index d1181911b..f65bee4ba 100644
--- a/ports/qt5/portfile.cmake
+++ b/ports/qt5/portfile.cmake
@@ -115,31 +115,7 @@ 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(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()
-foreach(BINARY ${BINARY_TOOLS})
- execute_process(COMMAND dumpbin /PDBPATH ${BINARY}
- COMMAND findstr PDB
- OUTPUT_VARIABLE PDB_LINE
- ERROR_QUIET
- RESULT_VARIABLE error_code
- )
- if(NOT error_code AND PDB_LINE MATCHES "PDB file found at")
- string(REGEX MATCH '.*' PDB_PATH ${PDB_LINE}) # Extract the path which is in single quotes
- string(REPLACE ' "" PDB_PATH ${PDB_PATH}) # Remove single quotes
- file(INSTALL ${PDB_PATH} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
- file(REMOVE ${PDB_PATH})
- endif()
-endforeach()
+
file(INSTALL ${BINARY_TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
file(REMOVE ${BINARY_TOOLS})