2020-01-23 04:17:15 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-23 04:17:15 +08:00
|
|
|
REPO stiffstream/sobjectizer
|
2023-05-25 02:57:44 +08:00
|
|
|
REF "v.${VERSION}"
|
2023-07-14 01:21:06 +08:00
|
|
|
SHA512 b1131c25477f397e58d79ea5489b8ed42a7ca8f2ff7592f8ff2972bb7c905f1b23ec9596573b60d7c5beaa169d0dd8882210b4c39daa8213ea06134bde44ebde
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-06-22 18:38:03 +08:00
|
|
|
|
2021-02-19 04:59:36 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SOBJECTIZER_BUILD_STATIC )
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOBJECTIZER_BUILD_SHARED)
|
2017-06-22 18:38:03 +08:00
|
|
|
|
2022-01-08 06:58:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/dev"
|
2017-06-22 18:38:03 +08:00
|
|
|
OPTIONS
|
2017-12-07 00:18:31 +08:00
|
|
|
-DSOBJECTIZER_BUILD_STATIC=${SOBJECTIZER_BUILD_STATIC}
|
|
|
|
-DSOBJECTIZER_BUILD_SHARED=${SOBJECTIZER_BUILD_SHARED}
|
2017-06-22 18:38:03 +08:00
|
|
|
)
|
|
|
|
|
2022-01-08 06:58:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-06-22 18:38:03 +08:00
|
|
|
|
2022-01-08 06:58:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-23 04:17:15 +08:00
|
|
|
|
2022-01-08 06:58:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sobjectizer)
|
2017-06-30 01:07:00 +08:00
|
|
|
|
2022-01-08 06:58:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-01-23 04:17:15 +08:00
|
|
|
|