Split rive-tizen binding from dali-csharp-binder.so 48/309648/7
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 15 Apr 2024 03:57:14 +0000 (12:57 +0900)
committerhuiyu eun <huiyu.eun@samsung.com>
Wed, 24 Apr 2024 09:02:36 +0000 (09:02 +0000)
Change-Id: I83d56d90784cff37c8ed297a229846b893de15fb
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
build/tizen/CMakeLists.txt
build/tizen/dali-rive-animation/CMakeLists.txt [new file with mode: 0755]
dali-csharp-binder/file.list
packaging/dali-csharp-binder.spec

index 79921eb399ccbb3c3fe2e68d1109a6b855b73571..96de4287e83cd75ca8c98eec604e974a10d7992f 100644 (file)
@@ -268,6 +268,7 @@ MESSAGE( STATUS "Use pkg configure:             " ${ENABLE_PKG_CONFIGURE} )
 MESSAGE( STATUS "Use 2d physics:                " ${ENABLE_PHYSICS_2D} )
 MESSAGE( STATUS "Use 3d physics:                " ${ENABLE_PHYSICS_3D} )
 MESSAGE( STATUS "Use scene 3d:                  " ${ENABLE_SCENE3D} )
+MESSAGE( STATUS "Use rive animation   :         " ${ENABLE_RIVE_ANIMATION} )
 MESSAGE( STATUS "CXXFLAGS:                      " ${CMAKE_CXX_FLAGS} )
 MESSAGE( STATUS "LDFLAGS:                       " ${CMAKE_SHARED_LINKER_FLAGS_INIT}${CMAKE_SHARED_LINKER_FLAGS} )
 
@@ -275,6 +276,10 @@ IF( ENABLE_SCENE3D )
   ADD_SUBDIRECTORY( dali-scene3d )
 ENDIF()
 
+IF( ENABLE_RIVE_ANIMATION )
+  ADD_SUBDIRECTORY( dali-rive-animation )
+ENDIF()
+
 IF( ENABLE_PHYSICS_2D )
   ADD_SUBDIRECTORY( dali-physics-2d )
 ENDIF()
diff --git a/build/tizen/dali-rive-animation/CMakeLists.txt b/build/tizen/dali-rive-animation/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..39ecd82
--- /dev/null
@@ -0,0 +1,29 @@
+SET(RIVE_ANIMATION_TARGET dali2-csharp-binder-rive-animation)
+
+SET( RIVE_ANIMATION_SOURCES ${dali_csharp_binder_rive_animation_src_files})
+
+ADD_LIBRARY( ${RIVE_ANIMATION_TARGET} SHARED ${RIVE_ANIMATION_SOURCES} )
+
+PKG_CHECK_MODULES(DALIEXTRIVEANIMATION dali2-extension-rive-animation-view)
+
+TARGET_LINK_LIBRARIES( ${RIVE_ANIMATION_TARGET} PUBLIC
+  ${DLOG_LDFLAGS}
+  ${DALICORE_LDFLAGS}
+  ${DALIADAPTOR_LDFLAGS}
+  ${DALITOOLKIT_LDFLAGS}
+  ${DALIEXTRIVEANIMATION_LDFLAGS}
+)
+
+TARGET_COMPILE_OPTIONS( ${RIVE_ANIMATION_TARGET} PUBLIC
+  ${DLOG_CFLAGS}
+  ${DALICORE_CFLAGS}
+  ${DALIADAPTOR_CFLAGS}
+  ${DALITOOLKIT_CFLAGS}
+  ${DALI_PROFILE_CFLAGS}
+  ${DALIEXTRIVEANIMATION_CFLAGS}
+  ${}
+  -I../../../
+  -Wall
+)
+
+INSTALL( TARGETS ${RIVE_ANIMATION_TARGET} DESTINATION ${LIB_DIR} )
index a01b63c8e9c097748011ea7ff5a60d5f99fac390..a65b23af2a43f0d366e18a786131948c3ef46394 100755 (executable)
@@ -94,8 +94,8 @@ SET( dali_csharp_binder_tizen_src_files
 )
 
 # added for rive animation view for tizen
-# module: csharp-binder, backend: mobile,tv,ivi,watch
-SET( dali_csharp_binder_tizen_rive_src_files
+# module: csharp-binder(rive-animation.so), backend: mobile,tv,ivi,watch
+SET( dali_csharp_binder_rive_animation_src_files
   ${dali_csharp_binder_dir}/dali-extension/rive-animation-view-wrap.cpp
 )
 
index 8eb49d80afd2b2e156167d771e343c614b7ff23e..5577a659450246fe51240ac6cff449ecc8153a48 100644 (file)
@@ -192,7 +192,6 @@ Requires:   %{name} = %{version}-%{release}
 %description physics3d
 3D Physics for Dali
 
-
 ##############################
 # Preparation
 ##############################
@@ -543,6 +542,7 @@ exit 0
 %{_libdir}/libdali2-csharp-binder.so
 %{_libdir}/libdali2-csharp-binder.so.2
 %{_libdir}/libdali2-csharp-binder.so.2.0.0
+%{_libdir}/libdali2-csharp-binder-rive-animation.so*
 
 #################################################