2020-06-11 09:08:48 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
|
|
|
|
2017-05-23 14:10:42 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO saprykin/plibsys
|
2018-05-26 14:21:40 +02:00
|
|
|
REF 0.0.4
|
|
|
|
SHA512 61957666fb454469e1ff68435463eaf426e960caed33540dbb495e1aa7c446c9803d100f33f1a6ea70d5f2ee2d0d19ec315f3a8c651747f65a186ad061c05e51
|
2017-05-23 14:10:42 -07:00
|
|
|
HEAD_REF master
|
2020-06-11 09:08:48 +08:00
|
|
|
PATCHES
|
|
|
|
fix_configuration.patch
|
2017-05-21 17:40:58 +02:00
|
|
|
)
|
|
|
|
|
2020-06-11 09:08:48 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PLIBSYS_STATIC)
|
2017-05-21 17:40:58 +02:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2017-05-21 17:40:58 +02:00
|
|
|
OPTIONS
|
|
|
|
-DPLIBSYS_TESTS=OFF
|
|
|
|
-DPLIBSYS_COVERAGE=OFF
|
2020-06-11 09:08:48 +08:00
|
|
|
-DPLIBSYS_BUILD_DOC=OFF
|
2017-05-21 17:40:58 +02:00
|
|
|
-DPLIBSYS_BUILD_STATIC=${PLIBSYS_STATIC}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2020-06-11 09:08:48 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2017-05-21 17:40:58 +02:00
|
|
|
|
2020-06-11 09:08:48 +08:00
|
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY)
|
|
|
|
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2017-05-21 17:40:58 +02:00
|
|
|
|
|
|
|
|