2021-07-25 21:49:48 +02: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
|
2022-04-20 02:12:10 +09:30
|
|
|
REF v3.10.0
|
|
|
|
SHA512 b123ac1909f4062312d872d823846f2476eb8911c40673cdceb6a1480b38c3fb3b86f843173247d0765870cbe87bf1d10f87e076fa2623fa20327743d1d7061b
|
2021-07-25 21:49:48 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
endif()
|
2018-03-07 23:16:07 +01:00
|
|
|
|
2021-12-22 04:20:36 +00:00
|
|
|
vcpkg_cmake_configure(
|
2018-11-08 10:49:02 +03:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-06-04 17:23:04 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-11-08 10:49:02 +03:00
|
|
|
OPTIONS
|
2021-01-12 13:01:09 +08:00
|
|
|
-DENTT_BUILD_TESTING=OFF
|
2018-03-07 23:16:07 +01:00
|
|
|
)
|
|
|
|
|
2021-12-22 04:20:36 +00:00
|
|
|
vcpkg_cmake_install()
|
2018-11-08 10:49:02 +03:00
|
|
|
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
2021-12-22 04:20:36 +00:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2018-11-08 10:49:02 +03:00
|
|
|
else()
|
2021-12-22 04:20:36 +00:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
|
2018-11-08 10:49:02 +03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-05-23 06:57:41 +02:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|