Disable build of some packages by tizen version 36/205136/1
authorJiyun Yang <ji.yang@samsung.com>
Mon, 29 Apr 2019 10:44:17 +0000 (19:44 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Mon, 29 Apr 2019 10:45:08 +0000 (19:45 +0900)
* Vector Animation Rendering: Tizen5.5~
* Web Engine Chromium Plugin: Tizen5.5~
* Web Engine LWE Plugin     : Tizen5.5~

Change-Id: I828cdb5aed6b83aa0fdfb21ea27575dc7d36b91f
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
build/tizen/configure.ac
packaging/dali-extension.spec

index 903cf8c..0676946 100755 (executable)
@@ -14,15 +14,24 @@ LT_INIT
 DALI_EXTENSION_VERSION=dali_version
 AC_SUBST(DALI_EXTENSION_VERSION)
 
+AC_ARG_WITH([tizen_55_or_greater],
+            [AC_HELP_STRING([--with-tizen-55-or-greater],
+                            [Use this conditional when Tizen version is 5.5 or greater])],
+            [with_tizen_55_or_greater=yes],
+            [with_tizen_55_or_greater=no])
+
 PKG_CHECK_MODULES([DALI], [dali-core dali-adaptor dali-toolkit])
 
 AC_CONFIG_SUBDIRS(key)
 AC_CONFIG_SUBDIRS(video-player)
-AC_CONFIG_SUBDIRS(web-engine-chromium)
 AC_CONFIG_SUBDIRS(image-loader)
-AC_CONFIG_SUBDIRS(vector-animation-renderer)
 AC_CONFIG_SUBDIRS(color-controller)
-AC_CONFIG_SUBDIRS(web-engine-lwe)
+
+if test "x$with_tizen_55_or_greater" = "xyes"; then
+  AC_CONFIG_SUBDIRS(vector-animation-renderer)
+  AC_CONFIG_SUBDIRS(web-engine-chromium)
+  AC_CONFIG_SUBDIRS(web-engine-lwe)
+fi
 
 devincludepath=${includedir}
 AC_SUBST(devincludepath)
index 09e3214..5dbcdd5 100755 (executable)
@@ -26,6 +26,16 @@ BuildRequires:  pkgconfig(dlog)
 %description
 dali-extension
 
+%if 0%{?tizen_version_major} >= 4
+%define tizen_40_or_greater 1
+%if 0%{?tizen_version_major} >= 5
+%define tizen_50_or_greater 1
+%if 0%{?tizen_version_minor} >= 5
+%define tizen_55_or_greater 1
+%endif
+%endif
+%endif
+
 ##############################
 # devel
 ##############################
@@ -69,9 +79,11 @@ VideoPlayer plugin to play a video file for Dali
 %package web-engine-chromium-plugin
 Summary:    Plugin to support WebView for Dali
 Group:      System/Libraries
+%if 0%{?tizen_55_or_greater}
 BuildRequires: pkgconfig(libtbm)
 BuildRequires: pkgconfig(chromium-efl)
 BuildRequires: pkgconfig(elementary)
+%endif
 
 %description web-engine-chromium-plugin
 Web Engine chromium plugin to support WebView for Dali
@@ -90,11 +102,12 @@ Image Loader plugin to image loading file for Dali
 ####################################
 # Vector Animation Renderer Plugin
 ####################################
-
 %package vector-animation-renderer-plugin
 Summary:    Plugin to render a vector animation
 Group:      System/Libraries
+%if 0%{?tizen_55_or_greater}
 BuildRequires:  pkgconfig(rlottie)
+%endif
 
 %description vector-animation-renderer-plugin
 Plugin to render a vector animation
@@ -117,8 +130,10 @@ Plugin to load color theme
 %package web-engine-lwe-plugin
 Summary:    Plugin to support WebView for Dali
 Group:      System/Libraries
+%if 0%{?tizen_55_or_greater}
 BuildRequires: pkgconfig(libtbm)
 BuildRequires: pkgconfig(lightweight-web-engine)
+%endif
 
 %description web-engine-lwe-plugin
 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
@@ -151,6 +166,12 @@ cd %{_builddir}/%{name}-%{version}/build/tizen
 autoreconf --install
 
 %configure --prefix=$PREFIX \
+%if 0%{?tizen_50_or_greater}
+           --with-tizen-50-or-greater \
+%endif
+%if 0%{?tizen_55_or_greater}
+           --with-tizen-55-or-greater \
+%endif
            --enable-keyextension
 %if 0%{?use_image_loader}
 %configure \
@@ -190,28 +211,34 @@ exit 0
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %post web-engine-chromium-plugin
 pushd %{_libdir}
 ln -sf libdali-web-engine-chromium-plugin.so libdali-web-engine-plugin.so
 popd
 /sbin/ldconfig
 exit 0
+%endif
 
 %post image-loader-plugin
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %post vector-animation-renderer-plugin
 /sbin/ldconfig
 exit 0
+%endif
 
 %post color-controller-plugin
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %post web-engine-lwe-plugin
 /sbin/ldconfig
 exit 0
+%endif
 
 ##############################
 #   Pre Uninstall old package
@@ -234,25 +261,31 @@ exit 0
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %postun web-engine-chromium-plugin
 /sbin/ldconfig
 exit 0
+%endif
 
 %postun image-loader-plugin
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %postun vector-animation-renderer-plugin
 /sbin/ldconfig
 exit 0
+%endif
 
 %postun color-controller-plugin
 /sbin/ldconfig
 exit 0
 
+%if 0%{?tizen_55_or_greater}
 %postun web-engine-lwe-plugin
 /sbin/ldconfig
 exit 0
+%endif
 
 ##############################
 # Files in Binary Packages
@@ -281,11 +314,13 @@ exit 0
 %{_libdir}/libdali-video-player-plugin.so*
 %license LICENSE
 
+%if 0%{?tizen_55_or_greater}
 %files web-engine-chromium-plugin
 %manifest dali-extension.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libdali-web-engine-chromium-plugin.so*
 %license LICENSE
+%endif
 
 %if 0%{?use_image_loader}
 %files image-loader-plugin
@@ -295,11 +330,13 @@ exit 0
 %license LICENSE
 %endif
 
+%if 0%{?tizen_55_or_greater}
 %files vector-animation-renderer-plugin
 %manifest dali-extension.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libdali-vector-animation-renderer-plugin.so*
 %license LICENSE
+%endif
 
 %files color-controller-plugin
 %manifest dali-extension.manifest
@@ -307,8 +344,10 @@ exit 0
 %{_libdir}/libdali-color-controller-plugin.so*
 %license LICENSE
 
+%if 0%{?tizen_55_or_greater}
 %files web-engine-lwe-plugin
 %manifest dali-extension.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libdali-web-engine-lwe-plugin.so*
 %license LICENSE
+%endif