aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2021-10-12 20:27:43 +0200
committerGitHub <noreply@github.com>2021-10-12 11:27:43 -0700
commit5fb4257c3c7ff24b676dc379adbab0e9a668e42d (patch)
treeb77b81e10fc859d3aef16be888253e7b3ebbc836 /ports
parent677eae74c020ff36842ce2fa1a8e50387a359038 (diff)
downloadvcpkg-5fb4257c3c7ff24b676dc379adbab0e9a668e42d.tar.gz
vcpkg-5fb4257c3c7ff24b676dc379adbab0e9a668e42d.zip
[boost-modular-build-helper] Fixup mingw lib names (#20576)
* Fixup mingw lib names on windows * Update versions * Bump boost-modular-build-helper port-version. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/boost-modular-build-helper/boost-modular-build.cmake14
-rw-r--r--ports/boost-modular-build-helper/vcpkg.json2
2 files changed, 15 insertions, 1 deletions
diff --git a/ports/boost-modular-build-helper/boost-modular-build.cmake b/ports/boost-modular-build-helper/boost-modular-build.cmake
index 4e7dfb456..8d082b26b 100644
--- a/ports/boost-modular-build-helper/boost-modular-build.cmake
+++ b/ports/boost-modular-build-helper/boost-modular-build.cmake
@@ -130,6 +130,20 @@ function(boost_modular_build)
file(RENAME ${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME} ${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME})
endif()
endforeach()
+ # Similar for mingw
+ file(GLOB INSTALLED_LIBS "${CURRENT_PACKAGES_DIR}/debug/lib/*-mgw10-*.a" "${CURRENT_PACKAGES_DIR}/lib/*-mgw10-*.a")
+ foreach(LIB IN LISTS INSTALLED_LIBS)
+ get_filename_component(OLD_FILENAME "${LIB}" NAME)
+ get_filename_component(DIRECTORY_OF_LIB_FILE "${LIB}" DIRECTORY)
+ string(REGEX REPLACE "-mgw[0-9]+-.*[0-9](\\.dll\\.a|\\.a)$" "\\1" NEW_FILENAME "${OLD_FILENAME}")
+ if("${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}" STREQUAL "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
+ # nothing to do
+ elseif(EXISTS "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
+ file(REMOVE "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
+ else()
+ file(RENAME "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}" "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
+ endif()
+ endforeach()
# boost-regex[icu] and boost-locale[icu] generate has_icu.lib
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/has_icu.lib")
diff --git a/ports/boost-modular-build-helper/vcpkg.json b/ports/boost-modular-build-helper/vcpkg.json
index e81e9a0fc..71d528590 100644
--- a/ports/boost-modular-build-helper/vcpkg.json
+++ b/ports/boost-modular-build-helper/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "boost-modular-build-helper",
"version": "1.77.0",
- "port-version": 1,
+ "port-version": 2,
"description": "Internal vcpkg port used to build Boost libraries",
"dependencies": [
"boost-uninstall"