2019-06-19 01:27:42 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ladislav-zezula/CascLib
|
2021-11-17 21:27:02 +01:00
|
|
|
REF 07bfe85fd0804cba49f072819af716274d82b855
|
|
|
|
SHA512 b333fe6318aa95629aa67613287ac71b1931c6443985e7e52412066d769f7996bffca1c19e890851eba976f572c7a11f14a8ff5fb95433577e1c9af8de0f34af
|
2019-06-19 01:27:42 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2021-11-17 21:27:02 +01:00
|
|
|
fix-shared-windows-builds.patch
|
2019-06-19 01:27:42 +02:00
|
|
|
)
|
|
|
|
|
2021-11-17 21:27:02 +01:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CASC_BUILD_SHARED_LIB)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CASC_BUILD_STATIC_LIB)
|
2019-06-19 01:27:42 +02:00
|
|
|
|
2021-11-17 21:27:02 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DCASC_BUILD_SHARED_LIB=${CASC_BUILD_SHARED_LIB}
|
|
|
|
-DCASC_BUILD_STATIC_LIB=${CASC_BUILD_STATIC_LIB}
|
2021-12-02 11:22:53 +08:00
|
|
|
-DCASC_UNICODE=ON
|
2019-06-19 01:27:42 +02:00
|
|
|
)
|
|
|
|
|
2021-11-17 21:27:02 +01:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CascLib)
|
2019-06-19 01:27:42 +02:00
|
|
|
|
2021-11-17 21:27:02 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-08-02 22:31:48 +02:00
|
|
|
|
2021-11-17 21:27:02 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|