[Tizen] vector_animation_renderer: rive tizen build versioning 47/257947/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 30 Apr 2021 10:38:01 +0000 (19:38 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Fri, 7 May 2021 04:15:34 +0000 (13:15 +0900)
Change-Id: I72e65cf27993a72bed6cfbdfbafa1062b0057f18

build/tizen/vector-animation-renderer/Makefile.am
build/tizen/vector-animation-renderer/configure.ac

index d09f6ed..72a1953 100644 (file)
@@ -42,6 +42,8 @@ libdali2_vector_animation_renderer_plugin_la_LIBADD = \
 libdali2_vector_animation_renderer_plugin_la_LDFLAGS = \
                       -rdynamic
 
+if RIVE
+
 lib_LTLIBRARIES += libdali2-rive-animation-renderer-plugin.la
 
 libdali2_rive_animation_renderer_plugin_la_SOURCES = \
@@ -65,3 +67,4 @@ libdali2_rive_animation_renderer_plugin_la_LIBADD = \
 libdali2_rive_animation_renderer_plugin_la_LDFLAGS = \
                       -rdynamic
 
+endif
index dc06dc3..cd3641e 100644 (file)
@@ -18,8 +18,14 @@ AC_SUBST(DALI_EXTENSION_VERSION)
 
 PKG_CHECK_MODULES([DALI], [dali2-core dali2-adaptor dali2-toolkit])
 PKG_CHECK_MODULES(RLOTTIE, rlottie)
-PKG_CHECK_MODULES(THORVG, thorvg)
-PKG_CHECK_MODULES(RIVE_TIZEN, rive_tizen)
+
+if test "x$with_tizen_65_or_greater" = "xyes"; then
+  PKG_CHECK_MODULES(THORVG, thorvg)
+  PKG_CHECK_MODULES(RIVE_TIZEN, rive_tizen)
+  AM_CONDITIONAL([RIVE], [true])
+else
+  AM_CONDITIONAL([RIVE], [false])
+fi
 
 devincludepath=${includedir}
 AC_SUBST(devincludepath)