[angelscript] Update to 2.35.0 (#15852)

* [angelscript] Update to 2.35.0

* Update version

* Fix formatting

* Update version

* [angelscript] backport patch from trunk

* Update version
This commit is contained in:
Stanislav Ershov 2021-01-26 04:53:02 +05:00 committed by GitHub
parent 1d415e8dc3
commit b759049a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 103 additions and 11 deletions

View File

@ -1,7 +0,0 @@
Source: angelscript
Version: 2.34.0
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.
Supports: !arm
Feature: addons
Description: Installs all addons for use in compiling scripts addons

View File

@ -1,7 +1,9 @@
vcpkg_fail_port_install(ON_ARCH "arm")
vcpkg_download_distfile(ARCHIVE
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.34.0.zip"
FILENAME "angelscript_2.34.0.zip"
SHA512 c26dba452ab52c300da9c95fde8398acf4840cbc0e653ededf978d4a3e942cfe5b77292c74c49dc0279250a27cfd324c696c49d139a97c844b2a1eead9aae2f4
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.35.0.zip"
FILENAME "angelscript_2.35.0.zip"
SHA512 e54b58e78b21c2ff6aa34d5f55b18fcf8737d057c86aef8901ac0c11f14739fe7f1494f9bcfdbca6a8e54b6d0b36a04dd098780bcd02dea5764fd6d22984b6b0
)
vcpkg_extract_source_archive_ex(
@ -9,6 +11,7 @@ vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
PATCHES
mark-threads-private.patch
precxx11.patch
)
vcpkg_configure_cmake(
@ -17,6 +20,7 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Angelscript)

View File

@ -0,0 +1,78 @@
commit 4684264c7ed39ff397f9c38c64370284ddac44b0
Author: angelcode <angelcode@404ce1b2-830e-0410-a2e2-b09542c77caf>
Date: Thu Dec 10 19:13:44 2020 +0000
Changed code to be compatible with pre-C++11
git-svn-id: https://svn.code.sf.net/p/angelscript/code/trunk@2686 404ce1b2-830e-0410-a2e2-b09542c77caf
diff --git a/angelscript/source/as_module.cpp b/angelscript/source/as_module.cpp
index 5ec55423..ddd3ed73 100644
--- a/angelscript/source/as_module.cpp
+++ b/angelscript/source/as_module.cpp
@@ -1536,28 +1536,28 @@ int asCModule::UnbindAllImportedFunctions()
void asCModule::AddClassType(asCObjectType* type)
{
m_classTypes.PushLast(type);
- m_typeLookup.Insert({type->nameSpace, type->name}, type);
+ m_typeLookup.Insert(asSNameSpaceNamePair(type->nameSpace, type->name), type);
}
// internal
void asCModule::AddEnumType(asCEnumType* type)
{
m_enumTypes.PushLast(type);
- m_typeLookup.Insert({type->nameSpace, type->name}, type);
+ m_typeLookup.Insert(asSNameSpaceNamePair(type->nameSpace, type->name), type);
}
// internal
void asCModule::AddTypeDef(asCTypedefType* type)
{
m_typeDefs.PushLast(type);
- m_typeLookup.Insert({type->nameSpace, type->name}, type);
+ m_typeLookup.Insert(asSNameSpaceNamePair(type->nameSpace, type->name), type);
}
// internal
void asCModule::AddFuncDef(asCFuncdefType* type)
{
m_funcDefs.PushLast(type);
- m_typeLookup.Insert({type->nameSpace, type->name}, type);
+ m_typeLookup.Insert(asSNameSpaceNamePair(type->nameSpace, type->name), type);
}
// internal
@@ -1569,8 +1569,8 @@ void asCModule::ReplaceFuncDef(asCFuncdefType* type, asCFuncdefType* newType)
m_funcDefs[i] = newType;
// Replace it in the lookup map too
- asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = nullptr;
- if(m_typeLookup.MoveTo(&result, {type->nameSpace, type->name}))
+ asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = 0;
+ if(m_typeLookup.MoveTo(&result, asSNameSpaceNamePair(type->nameSpace, type->name)))
{
asASSERT( result->value == type );
result->value = newType;
@@ -1581,8 +1581,8 @@ void asCModule::ReplaceFuncDef(asCFuncdefType* type, asCFuncdefType* newType)
// internal
asCTypeInfo *asCModule::GetType(const asCString &type, asSNameSpace *ns) const
{
- asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = nullptr;
- if(m_typeLookup.MoveTo(&result, {ns, type}))
+ asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = 0;
+ if(m_typeLookup.MoveTo(&result, asSNameSpaceNamePair(ns, type)))
{
return result->value;
}
@@ -1592,8 +1592,8 @@ asCTypeInfo *asCModule::GetType(const asCString &type, asSNameSpace *ns) const
// internal
asCObjectType *asCModule::GetObjectType(const char *type, asSNameSpace *ns) const
{
- asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = nullptr;
- if(m_typeLookup.MoveTo(&result, {ns, type}))
+ asSMapNode<asSNameSpaceNamePair, asCTypeInfo*>* result = 0;
+ if(m_typeLookup.MoveTo(&result, asSNameSpaceNamePair(ns, type)))
{
return CastToObjectType(result->value);
}

View File

@ -0,0 +1,12 @@
{
"name": "angelscript",
"version-string": "2.35.0",
"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",
"supports": "!arm",
"features": {
"addons": {
"description": "Installs all addons for use in compiling scripts addons"
}
}
}

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c88c2eec1943cd3f46d8fe2b77f4d75f3d35cba2",
"version-string": "2.35.0",
"port-version": 0
},
{
"git-tree": "bca26a9780ffe5a26b45abb86e05603a4eec0719",
"version-string": "2.34.0",

View File

@ -73,7 +73,7 @@
"port-version": 0
},
"angelscript": {
"baseline": "2.34.0",
"baseline": "2.35.0",
"port-version": 0
},
"angle": {