- Update to version 2.36.1
* Bug fixes
* Fixed assert failure with void expression in initialization
list
* Fixed assert failure with unsafe references turned on and
temporary copy of value in function call
* Fixed crash when doing handle assign from object handle
received by reference parameter
* Fixed error in compiler with unsafe references turned on and
destruction of temporary variables in boolean expressions
* Fixed crash when passing null to a ?&inout param with unsafe
references turned on
* Fixed assert failure when compiling switch case with
registered global const property
* Fixed error in parser with default array and initialization
lists
* Fixed crash in compiler when same funcdef declaration is
compiled multiple times in different modules
* Fixed lookup bug with use of partial namespace in scope when
already within a namespace
* Fixed assert failure in compiler when class has invalid
opCast method with parameters
* Parser failed to understand lambda functions with explicit
argument types with &in, &out, or &inout
* Fixed bug with use of default array on types without default
constructors
* Fixed bug with named args and construct calls
* Fixed bug with variables declared in for loop being seen as
in-scope by debugger after the loop ended
* Fixed name conflict error for lambdas being rebuilt multiple
times with CompileFunction
* Fixed assert failure when explicitly casting anonymous init
list to an object
* Fixed assert failure on bitwise operation with boolean value
* Fixed issue in compiler with unsafe references enabled and
&out parameters
* Compiler now gives proper error when using temporary object
for lvalue in assignment
* BindImportedFunction was not giving error when attempting
to bind class method
* Fixed bug in save bytecode when there were multiple
variables in different scope occupying the same stack
position
* Fixed bug in as_callfunc_x64_gcc.cpp when compiling with
optimizations on gnuc
* Fixed bug in compiler with compound assignment, virtual
property, and unsafe references
* Saved bytecode didn't store the 'property' function trait
* Fixed crash with template instance referred by other
template instance being deleted prematurely
* Fixed specialization of templates with multiple subtypes
* Library
* Improved the error message when a boolean expression is
required to inform the type that was given
* Improved error message when delegate object cannot be
created
* Script language
* Compiler now recognizes when switch cases have return in
all paths
* Anonymous functions can now be declared with nameless
arguments
* Add-ons & Samples
* Improved error message when array cannot be instantiated
due to subtype not having any default constructor
* Operations with strings and primitives can now be easily
disabled by compiling the add-on with
AS_NO_IMPL_OPS_WITH_STRING_AND_PRIMITIVE=1
* ScriptBuilder no longer accepts #include directives with
non-terminated strings for the filename
* The serializer add-on is now capable of restoring objects
only referenced from handles
* Fixed compiler warnings on deprecated sprintf in scriptarray
and scriptstdstring with xcode
* Project
* Fixed cmake project for compiling on apple arm64
* Changed the cmake project to allow it to be included in
other projects directly
- Changes in version 2.36.0
* Bug fixes
* Fixed 32bit/64bit compatibility of saved bytecode with
unsafe references enabled
* Fixed 32bit/64bit compatibility of saved bytecode in
functions returning handles
* Destructor for template value types now get a unique
function with correct object type
* Fixed crash in compiler when compiling initialization lists
for a global variable with a higher index than 2^15
* Fixed crash that could happen on cleaning up stack when
unsafe references is used
* Fixed crash in context stack unwind if it happened at a
position after a branch return that returns a value object
by value
* Fixed GetAddressOfVar returning null for registered value
pod types without constructor
* Fixed GetAddressOfVar returning null for registered value
types when the same offset is shared in multiple scopes
* asIScriptEngine::AssignScriptObject didn't return any error
when a type didn't have a value assignment operator
* Fixed assert failure when two funcdefs with same name in
two different classes
* Script language
* Improved implicit conversion rules to reduce number of type
ambiguity errors for function overloads and ternary
operators
* Ternary condition will now return the result as handle if
possible to avoid unnecessary copy of objects
* Library
* Added engine property asEP_IGNORE_DUPLICATE_SHARED_INTF to
add backwards compatibility with 2.35.0 when scripts include
declaration of shared interfaces more than once
* Compiler now stores info on temporary variables too to allow
these to be inspected at runtime
* Added engine property to dynamically turn off debug output
* When asEP_ALLOW_UNSAFE_REFERENCES is turned on the
destruction of temporary objects will be deferred to end
of expressions
* Library interface
* asIScriptContext::GetAddressOfVar now supports returning the
address of a reference parameter without dereferencing it
* asIScriptContext::GetAddressOfVar now supports returning the
address of local value types even when not initialized yet
* Added asIScriptContext::GetVar to retrieve static
information on variables on the stack
* Deprecated asIScriptContext::GetVarName and GetVarTypeId
* asIScriptContext has new methods to support serialization
of context state
* Add-ons & Samples
* Fixed script array comparison for 64bit integers
* CScriptArray with CScriptHandle as sub type can now be
correctly copied
* CScriptArray::SetValue now works with CScriptHandle as
sub type
* Fixed a compatibility issue in autowrapper WRAP_MFN_PR on
clang compilers
* Project
* Added support for Linux with arm64 in gnuc project
* Added MSVC2022 project files
OBS-URL: https://build.opensuse.org/request/show/1132360
OBS-URL: https://build.opensuse.org/package/show/games/angelscript?expand=0&rev=21
154 lines
5.2 KiB
RPMSpec
154 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package angelscript
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 2_36_1
|
|
Name: angelscript
|
|
Version: 2.36.1
|
|
Release: 0
|
|
Summary: Scripting library
|
|
License: Zlib
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://www.angelcode.com/angelscript/
|
|
Source: https://www.angelcode.com/angelscript/sdk/files/%{name}_%{version}.zip
|
|
# PATCH-FEATURE-OPENSUSE angelscript-addons_lib.patch aloisio@gmx.com -- build and install addons library
|
|
Patch0: angelscript-addons_lib.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: meson >= 0.49.0
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: unzip
|
|
|
|
%description
|
|
The AngelCode Scripting Library, or AngelScript as it is also known,
|
|
is a scripting library designed to allow applications to extend their
|
|
functionality through external scripts.
|
|
|
|
It supports Unix sockets and TCP/IP sockets with optional
|
|
SSL/TLS support.
|
|
|
|
%package -n lib%{name}%{sover}
|
|
Summary: Scripting library
|
|
Group: System/Libraries
|
|
|
|
%description -n lib%{name}%{sover}
|
|
The AngelCode Scripting Library, or AngelScript as it is also known,
|
|
is a scripting library designed to allow applications to extend their
|
|
functionality through external scripts.
|
|
|
|
It supports Unix sockets and TCP/IP sockets with optional
|
|
SSL/TLS support.
|
|
|
|
%package -n lib%{name}_addons%{sover}
|
|
Summary: Scripting library
|
|
Group: System/Libraries
|
|
|
|
%description -n lib%{name}_addons%{sover}
|
|
The AngelCode Scripting Library, or AngelScript as it is also known,
|
|
is a scripting library designed to allow applications to extend their
|
|
functionality through external scripts.
|
|
|
|
It supports Unix sockets and TCP/IP sockets with optional
|
|
SSL/TLS support.
|
|
|
|
%package devel
|
|
Summary: Development files for AngelScript
|
|
Group: Development/Libraries/C and C++
|
|
Requires: lib%{name}%{sover} = %{version}
|
|
Requires: lib%{name}_addons%{sover} = %{version}
|
|
|
|
%description devel
|
|
The AngelCode Scripting Library, or AngelScript as it is also known,
|
|
is a scripting library designed to allow applications to extend their
|
|
functionality through external scripts.
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of the AngelScript library.
|
|
|
|
%prep
|
|
%autosetup -p1 -n sdk
|
|
|
|
%build
|
|
pushd %{name}/projects/meson
|
|
%meson
|
|
%meson_build
|
|
popd
|
|
|
|
%install
|
|
pushd %{name}/projects/meson
|
|
%meson_install
|
|
popd
|
|
|
|
mv docs html
|
|
|
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
%post -n lib%{name}_addons%{sover} -p /sbin/ldconfig
|
|
%postun -n lib%{name}_addons%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n lib%{name}%{sover}
|
|
%{_libdir}/libangelscript.so.*
|
|
|
|
%files -n lib%{name}_addons%{sover}
|
|
%{_libdir}/libangelscript_addons.so.*
|
|
|
|
%files devel
|
|
# manual also contains the license
|
|
%doc html
|
|
%dir %{_includedir}/AngelScript
|
|
%dir %{_includedir}/AngelScript/autowrapper
|
|
%dir %{_includedir}/AngelScript/contextmgr
|
|
%dir %{_includedir}/AngelScript/datetime
|
|
%dir %{_includedir}/AngelScript/debugger
|
|
%dir %{_includedir}/AngelScript/scriptany
|
|
%dir %{_includedir}/AngelScript/scriptarray
|
|
%dir %{_includedir}/AngelScript/scriptbuilder
|
|
%dir %{_includedir}/AngelScript/scriptdictionary
|
|
%dir %{_includedir}/AngelScript/scriptfile
|
|
%dir %{_includedir}/AngelScript/scriptgrid
|
|
%dir %{_includedir}/AngelScript/scripthandle
|
|
%dir %{_includedir}/AngelScript/scripthelper
|
|
%dir %{_includedir}/AngelScript/scriptmath
|
|
%dir %{_includedir}/AngelScript/scriptstdstring
|
|
%dir %{_includedir}/AngelScript/serializer
|
|
%dir %{_includedir}/AngelScript/weakref
|
|
%{_includedir}/AngelScript/angelscript.h
|
|
%{_includedir}/AngelScript/autowrapper/aswrappedcall.h
|
|
%{_includedir}/AngelScript/contextmgr/contextmgr.h
|
|
%{_includedir}/AngelScript/datetime/datetime.h
|
|
%{_includedir}/AngelScript/debugger/debugger.h
|
|
%{_includedir}/AngelScript/scriptany/scriptany.h
|
|
%{_includedir}/AngelScript/scriptarray/scriptarray.h
|
|
%{_includedir}/AngelScript/scriptbuilder/scriptbuilder.h
|
|
%{_includedir}/AngelScript/scriptdictionary/scriptdictionary.h
|
|
%{_includedir}/AngelScript/scriptfile/scriptfile.h
|
|
%{_includedir}/AngelScript/scriptfile/scriptfilesystem.h
|
|
%{_includedir}/AngelScript/scriptgrid/scriptgrid.h
|
|
%{_includedir}/AngelScript/scripthandle/scripthandle.h
|
|
%{_includedir}/AngelScript/scripthelper/scripthelper.h
|
|
%{_includedir}/AngelScript/scriptmath/scriptmath.h
|
|
%{_includedir}/AngelScript/scriptmath/scriptmathcomplex.h
|
|
%{_includedir}/AngelScript/scriptstdstring/scriptstdstring.h
|
|
%{_includedir}/AngelScript/serializer/serializer.h
|
|
%{_includedir}/AngelScript/weakref/weakref.h
|
|
%{_libdir}/libangelscript.so
|
|
%{_libdir}/libangelscript_addons.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/pkgconfig/%{name}_addons.pc
|
|
|
|
%changelog
|