2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-05-23 02:45:57 +08:00
|
|
|
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.36.1.zip"
|
|
|
|
FILENAME "angelscript_2.36.1.zip"
|
|
|
|
SHA512 d6d213ce72135c89e47e67521f654611ff67673f3decd9db3da4b7bf317a04a3f91c5c6ae36658ec3f2b20498facd069af02a91255a24ec79c96d8c90d6b554e
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2022-05-10 07:12:37 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-10-08 01:35:13 +08:00
|
|
|
PATCHES
|
2022-05-10 07:12:37 +08:00
|
|
|
mark-threads-private.patch
|
2023-06-01 02:55:10 +08:00
|
|
|
fix-dependency.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
2021-11-28 15:31:55 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-10 07:12:37 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}/angelscript/projects/cmake"
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2022-05-10 07:12:37 +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)
|
2022-05-10 07:12:37 +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()
|
|
|
|
|
2023-05-23 02:45:57 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/manual/doc_license.html")
|