early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/angelscript/mark-threads-private.patch
vendored
Executable file
13
externals/vcpkg/ports/angelscript/mark-threads-private.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/angelscript/projects/cmake/CMakeLists.txt b/angelscript/projects/cmake/CMakeLists.txt
|
||||
index 7c800c5..982ad8b 100644
|
||||
--- a/angelscript/projects/cmake/CMakeLists.txt
|
||||
+++ b/angelscript/projects/cmake/CMakeLists.txt
|
||||
@@ -145,7 +145,7 @@ endif()
|
||||
|
||||
# Don't override the default library output path to avoid conflicts when building for multiple target platforms
|
||||
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)
|
||||
-target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} Threads::Threads)
|
||||
+target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE Threads::Threads)
|
||||
|
||||
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
|
||||
|
||||
29
externals/vcpkg/ports/angelscript/portfile.cmake
vendored
Executable file
29
externals/vcpkg/ports/angelscript/portfile.cmake
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.35.1.zip"
|
||||
FILENAME "angelscript_2.35.1.zip"
|
||||
SHA512 b15083c7a77434c291e72ea82cfbab7734fa79df654d911a822f306d526669ebe9e55a981e8a1914deda0d2a52ebdc0ffb51a4179f307632c8c7d74b1abc69fa
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
PATCHES
|
||||
mark-threads-private.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()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/docs/manual/doc_license.html" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
24
externals/vcpkg/ports/angelscript/vcpkg.json
vendored
Executable file
24
externals/vcpkg/ports/angelscript/vcpkg.json
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "angelscript",
|
||||
"version": "2.35.1",
|
||||
"port-version": 1,
|
||||
"description": "The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.",
|
||||
"homepage": "https://angelcode.com/angelscript",
|
||||
"license": "Zlib",
|
||||
"supports": "!arm",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"addons": {
|
||||
"description": "Installs all addons for use in compiling scripts addons"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user