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
|
|
|
|
REF 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0
|
|
|
|
SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
2018-03-08 06:16:07 +08:00
|
|
|
|
2018-11-08 15:49:02 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-06-04 17:23:04 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-11-08 15:49:02 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2021-01-12 13:01:09 +08:00
|
|
|
-DENTT_BUILD_TESTING=OFF
|
2018-03-08 06:16:07 +08:00
|
|
|
)
|
|
|
|
|
2018-11-08 15:49:02 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
else()
|
2020-05-23 12:57:41 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/EnTT/cmake)
|
2018-11-08 15:49:02 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-05-23 12:57:41 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|