From: huiyu <35286162+huiyueun@users.noreply.github.com> Date: Thu, 25 Apr 2024 06:01:13 +0000 (+0900) Subject: [NUI.Extension] Use rive-tizen so file (#6107) X-Git-Tag: accepted/tizen/unified/20240516.163544~1^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a37f0323770dac5b87cac28f7b28a6499842aec;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI.Extension] Use rive-tizen so file (#6107) Refer : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/309648/ Signed-off-by: huiyu.eun --- diff --git a/src/Tizen.NUI.Extension/Interop/Interop.RiveAnimationView.cs b/src/Tizen.NUI.Extension/Interop/Interop.RiveAnimationView.cs index bd7a86e..d515fa8 100644 --- a/src/Tizen.NUI.Extension/Interop/Interop.RiveAnimationView.cs +++ b/src/Tizen.NUI.Extension/Interop/Interop.RiveAnimationView.cs @@ -21,40 +21,42 @@ namespace Tizen.NUI.Extension { internal static partial class RiveAnimationView { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_New__SWIG_0")] + public const string Lib = "libdali2-csharp-binder-rive-animation.so"; + + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_New__SWIG_0")] public static extern global::System.IntPtr New(string url); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_EnableAnimation")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_EnableAnimation")] public static extern void EnableAnimation(global::System.Runtime.InteropServices.HandleRef handle, string animationName, bool on); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeFillColor")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeFillColor")] public static extern void SetShapeFillColor(global::System.Runtime.InteropServices.HandleRef handle, string shapeFillName, global::System.Runtime.InteropServices.HandleRef color); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeStrokeColor")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetShapeStrokeColor")] public static extern void SetShapeStrokeColor(global::System.Runtime.InteropServices.HandleRef handle, string shapeStrokeName, global::System.Runtime.InteropServices.HandleRef color); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeOpacity")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeOpacity")] public static extern void SetNodeOpacity(global::System.Runtime.InteropServices.HandleRef handle, string nodeOpacity, float opacity); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeScale")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeScale")] public static extern void SetNodeScale(global::System.Runtime.InteropServices.HandleRef handle, string nodeScale, global::System.Runtime.InteropServices.HandleRef scale); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeRotation")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodeRotation")] public static extern void SetNodeRotation(global::System.Runtime.InteropServices.HandleRef handle, string nodeRotation, global::System.Runtime.InteropServices.HandleRef degree); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodePosition")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetNodePosition")] public static extern void SetNodePosition(global::System.Runtime.InteropServices.HandleRef handle, string nodeName, global::System.Runtime.InteropServices.HandleRef position); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PlayAnimation")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PlayAnimation")] public static extern void Play(global::System.Runtime.InteropServices.HandleRef handle); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PauseAnimation")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_PauseAnimation")] public static extern void Pause(global::System.Runtime.InteropServices.HandleRef handle); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_StopAnimation")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_StopAnimation")] public static extern void Stop(global::System.Runtime.InteropServices.HandleRef handle); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetAnimationElapsedTime")] + [global::System.Runtime.InteropServices.DllImport(Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetAnimationElapsedTime")] public static extern void SetAnimationElapsedTime(global::System.Runtime.InteropServices.HandleRef handle, string animationName, float elapsed); } }