mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 01:47:49 +08:00
7aed17856b
* [angelscript] fix build dependency errors * update version * update portfile.cmake * update version --------- Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
31 lines
979 B
CMake
31 lines
979 B
CMake
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.36.1.zip"
|
|
FILENAME "angelscript_2.36.1.zip"
|
|
SHA512 d6d213ce72135c89e47e67521f654611ff67673f3decd9db3da4b7bf317a04a3f91c5c6ae36658ec3f2b20498facd069af02a91255a24ec79c96d8c90d6b554e
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
PATCHES
|
|
mark-threads-private.patch
|
|
fix-dependency.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/angelscript/projects/cmake"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Angelscript)
|
|
|
|
# Copy the addon files
|
|
if("addons" IN_LIST FEATURES)
|
|
file(INSTALL "${SOURCE_PATH}/add_on/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/angelscript" FILES_MATCHING PATTERN "*.h" PATTERN "*.cpp")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/manual/doc_license.html")
|