2018-03-12 15:45:18 +08:00
|
|
|
set(EVPP_VERSION 0.7.0)
|
2018-03-12 15:37:53 +08:00
|
|
|
|
2019-09-12 05:24:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Qihoo360/evpp
|
|
|
|
REF v${EVPP_VERSION}
|
|
|
|
SHA512 ddcef8d2af6b3c46473d755c0f0994d63d56240ea85d6b44ceb6b77724c3c56bbf1156f7188e270fb5f9f36f25bfc2f96669d7249a34c921922671e3fe267e88
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-rapidjson-1-1.patch
|
|
|
|
fix-linux-build.patch
|
2020-07-08 05:03:12 +08:00
|
|
|
fix-osx-build.patch
|
2022-06-24 06:29:07 +08:00
|
|
|
compile-features.patch
|
2022-07-15 05:56:20 +08:00
|
|
|
Add-static-shared-handling.patch
|
|
|
|
Export-unofficial-target.patch
|
2024-03-05 18:23:38 +08:00
|
|
|
use-cxx14-standard.patch
|
2019-09-12 05:24:37 +08:00
|
|
|
)
|
2020-07-08 05:03:12 +08:00
|
|
|
|
2022-07-15 05:56:20 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty/rapidjson" "${SOURCE_PATH}/3rdparty/concurrentqueue")
|
2017-05-28 14:09:55 +08:00
|
|
|
|
2022-07-15 05:56:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-07-08 05:03:12 +08:00
|
|
|
OPTIONS
|
|
|
|
-DEVPP_VCPKG_BUILD=ON
|
2017-05-28 14:09:55 +08:00
|
|
|
)
|
|
|
|
|
2022-07-15 05:56:20 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-05-28 14:09:55 +08:00
|
|
|
|
2022-07-15 05:56:20 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-evpp)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2017-05-28 14:09:55 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-07-15 05:56:20 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|