2018-12-18 08:28:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-06-22 05:18:40 +08:00
|
|
|
REPO owent/libcopp
|
2023-02-11 02:48:00 +08:00
|
|
|
REF "v${VERSION}"
|
2023-05-06 02:13:22 +08:00
|
|
|
SHA512 aa594e1cab9e8489feb864539834a66f700be51000e551840456cbb27971894b3481b300be88a8273f7efc189e3003ecc680eabb3ae8131a90daa2ba90447973
|
2018-12-18 08:28:13 +08:00
|
|
|
HEAD_REF v2
|
2022-04-30 02:40:30 +08:00
|
|
|
PATCHES fix-x86-windows.patch
|
2018-12-18 08:28:13 +08:00
|
|
|
)
|
|
|
|
|
2021-06-22 05:18:40 +08:00
|
|
|
# atframework/cmake-toolset needed as a submodule for configure cmake
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH ATFRAMEWORK_CMAKE_TOOLSET
|
|
|
|
REPO atframework/cmake-toolset
|
2023-04-10 12:46:11 +08:00
|
|
|
REF v1.10.1
|
|
|
|
SHA512 7ea18e41fabd35af5fd72fb954a1c60480ba85a9ff820104785d263e719751ba699eeca801ce5155041d8bf51fb2c37ea53f6ed404e4a4e7e810f1eb9bacead4
|
2021-06-22 05:18:40 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2024-06-12 04:26:30 +08:00
|
|
|
vcpkg_list(SET options)
|
|
|
|
if(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
vcpkg_list(APPEND options
|
|
|
|
-DCMAKE_CXX_EXTENSIONS=OFF
|
|
|
|
-DCOMPILER_OPTION_CURRENT_MAX_CXX_STANDARD=20
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-11-30 09:17:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-04-11 23:25:55 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2024-06-12 04:26:30 +08:00
|
|
|
OPTIONS
|
|
|
|
${options}
|
|
|
|
"-DATFRAMEWORK_CMAKE_TOOLSET_DIR=${ATFRAMEWORK_CMAKE_TOOLSET}"
|
2018-12-18 08:28:13 +08:00
|
|
|
)
|
2020-07-08 04:47:32 +08:00
|
|
|
|
2021-11-30 09:17:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-12-18 08:28:13 +08:00
|
|
|
|
2023-02-11 02:48:00 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/BOOST_LICENSE_1_0.txt" "${SOURCE_PATH}/LICENSE")
|
2018-12-18 08:28:13 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-30 09:17:26 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libcopp)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libcopp/libcopp-config.cmake" "set(\${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR \"${SOURCE_PATH}\")" "")
|
2018-12-18 08:28:13 +08:00
|
|
|
|
2020-07-08 04:47:32 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|