[libusb] build fails on windows due to symlink in extracted archive (#12656)

* Update CONTROL

* Change CONTROL file to use new Version and Port-Version setup
* Increment Port-Version from 1 to 2

* Update portfile.cmake

* Remove the README file after the file extract process from archive
* The README file is a symlink to README.md but symlinks cause issues with MSBUILD on windows

* Update portfile.cmake
This commit is contained in:
General Jack O'Neill 2020-08-05 17:08:40 -04:00 committed by GitHub
parent 1ed263bc52
commit 3ecb635ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Source: libusb
Version: 1.0.23-1
Version: 1.0.23
Port-Version: 2
Homepage: https://github.com/libusb/libusb
Description: a cross-platform library to access USB devices
Supports: !uwp

View File

@ -39,6 +39,10 @@ if(VCPKG_TARGET_IS_WINDOWS)
endif()
endif()
# The README file in the archive is a symlink to README.md
# which causes issues with the windows MSBUILD process
file(REMOVE ${SOURCE_PATH}/README)
vcpkg_install_msbuild(
SOURCE_PATH ${SOURCE_PATH}
PROJECT_SUBPATH msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj