2021-07-26 03:49:48 +08:00
|
|
|
if ("experimental" IN_LIST FEATURES)
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skypjack/entt
|
|
|
|
HEAD_REF experimental
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO skypjack/entt
|
2023-01-31 09:02:34 +08:00
|
|
|
REF "v${VERSION}"
|
2023-06-17 07:00:14 +08:00
|
|
|
SHA512 51fe70e68cbb7d3a5a9ca6b5ff974d324e34248a13a1c828b6c5876461a173861ab26f1bfd0bac7287f8499d07b93bdb73622b579d11a65c916aad7b642dc6e0
|
2021-07-26 03:49:48 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
2018-03-08 06:16:07 +08:00
|
|
|
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-14 07:52:53 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-04 17:23:04 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-11-08 15:49:02 +08:00
|
|
|
OPTIONS
|
2021-01-12 13:01:09 +08:00
|
|
|
-DENTT_BUILD_TESTING=OFF
|
2018-03-08 06:16:07 +08:00
|
|
|
)
|
|
|
|
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-11-08 15:49:02 +08:00
|
|
|
|
2022-05-14 07:52:53 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2018-11-08 15:49:02 +08:00
|
|
|
else()
|
2021-12-22 12:20:36 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
|
2018-11-08 15:49:02 +08:00
|
|
|
endif()
|
|
|
|
|
2022-05-14 07:52:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
# Install natvis files
|
|
|
|
file(INSTALL "${SOURCE_PATH}/natvis/entt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
|
2018-11-08 15:49:02 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-01-31 09:02:34 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|