mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 03:03:05 +08:00
[Bitsery] New port (#6226)
This commit is contained in:
parent
0619aaec65
commit
7b3d86b933
3
ports/bitsery/CONTROL
Normal file
3
ports/bitsery/CONTROL
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Source: bitsery
|
||||||
|
Version: 4.6.0
|
||||||
|
Description: Header only C++ binary serialization library
|
16
ports/bitsery/fix-install-paths.patch
Executable file
16
ports/bitsery/fix-install-paths.patch
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 8125a28..8daee28 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -34,9 +34,9 @@ install(TARGETS bitsery
|
||||||
|
install(EXPORT bitseryTargets
|
||||||
|
FILE "BitseryConfig.cmake"
|
||||||
|
NAMESPACE Bitsery::
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/bitsery)
|
||||||
|
+ DESTINATION share/bitsery)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/BitseryConfigVersion.cmake
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/bitsery)
|
||||||
|
+ DESTINATION share/bitsery)
|
||||||
|
install(DIRECTORY include/bitsery
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
23
ports/bitsery/portfile.cmake
Normal file
23
ports/bitsery/portfile.cmake
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
include(vcpkg_common_functions)
|
||||||
|
|
||||||
|
vcpkg_from_github(
|
||||||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
|
REPO fraillt/bitsery
|
||||||
|
REF v4.6.0
|
||||||
|
SHA512 519aec8730f4b6f8d26aff17d984101990ade02888664eb2c40bc1085e4dcffbbe83b08216149da234c8195d1940ec06744f16312f60e362f7005b205aa829a6
|
||||||
|
HEAD_REF master
|
||||||
|
PATCHES fix-install-paths.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_configure_cmake(
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PREFER_NINJA
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
|
# Delete redundant and empty directories
|
||||||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||||
|
|
||||||
|
# Install license
|
||||||
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/bitsery RENAME copyright)
|
Loading…
Reference in New Issue
Block a user