2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-11-28 15:31:55 +08:00
|
|
|
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.35.1.zip"
|
|
|
|
FILENAME "angelscript_2.35.1.zip"
|
|
|
|
SHA512 b15083c7a77434c291e72ea82cfbab7734fa79df654d911a822f306d526669ebe9e55a981e8a1914deda0d2a52ebdc0ffb51a4179f307632c8c7d74b1abc69fa
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
PATCHES
|
|
|
|
mark-threads-private.patch
|
|
|
|
)
|
|
|
|
|
2021-11-28 15:31:55 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-10-08 01:35:13 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/angelscript/projects/cmake
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
2021-11-28 15:31:55 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-01-26 07:53:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2021-11-28 15:31:55 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Angelscript)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
|
|
|
# Copy the addon files
|
|
|
|
if("addons" IN_LIST FEATURES)
|
2021-11-28 15:31:55 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/add_on/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/angelscript FILES_MATCHING PATTERN "*.h" PATTERN "*.cpp")
|
2019-10-08 01:35:13 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL ${CURRENT_PORT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|