2019-10-07 19:35:13 +02:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2024-09-04 02:05:15 +08:00
|
|
|
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_${VERSION}.zip"
|
|
|
|
FILENAME "angelscript_${VERSION}.zip"
|
|
|
|
SHA512 ba7d88a42e1443fd12196da723538b24d999bc7ade92c0231237e4c5b8b0cb586931262c941898c62f454fd453d653724c74b6857e8a43eea6e34669795fc9cd
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2022-05-10 01:12:37 +02:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-10-07 19:35:13 +02:00
|
|
|
PATCHES
|
2022-05-10 01:12:37 +02:00
|
|
|
mark-threads-private.patch
|
2023-05-31 11:55:10 -07:00
|
|
|
fix-dependency.patch
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
|
|
|
|
2021-11-28 12:31:55 +05:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-10 01:12:37 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}/angelscript/projects/cmake"
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
|
|
|
|
2021-11-28 12:31:55 +05:00
|
|
|
vcpkg_cmake_install()
|
2021-01-26 04:53:02 +05:00
|
|
|
vcpkg_copy_pdbs()
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2022-05-10 01:12:37 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2021-11-28 12:31:55 +05:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Angelscript)
|
2019-10-07 19:35:13 +02:00
|
|
|
|
|
|
|
# Copy the addon files
|
|
|
|
if("addons" IN_LIST FEATURES)
|
2022-05-10 01:12:37 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/add_on/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/angelscript" FILES_MATCHING PATTERN "*.h" PATTERN "*.cpp")
|
2019-10-07 19:35:13 +02:00
|
|
|
endif()
|
|
|
|
|
2023-05-23 02:45:57 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/manual/doc_license.html")
|