DALI_EXTENSION_VERSION=dali_version
AC_SUBST(DALI_EXTENSION_VERSION)
+AC_ARG_WITH([da_profile],
+ [AC_HELP_STRING([--with-da-profile],
+ [Use this conditional when use da profile])],
+ [with_da_profile=yes],
+ [with_da_profile=no])
+
PKG_CHECK_MODULES([DALI], [dali2-core dali2-adaptor dali2-toolkit])
+
+if test "x$with_da_profile" = "xno"; then
PKG_CHECK_MODULES(WAYLAND, libtbm)
PKG_CHECK_MODULES([WEB_ENGINE_LWE], [lightweight-web-engine-dali-plugin])
+fi
devincludepath=${includedir}
AC_SUBST(devincludepath)
%package web-engine-lwe-plugin
Summary: Plugin to support WebView for Dali
Group: System/Libraries
-%if 0%{?tizen_55_or_greater}
+%if 0%{?tizen_55_or_greater} && "%{?_with_da_profile}" != "1"
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(lightweight-web-engine)
%endif
configure_flags="--enable-ecore-wl2"
%endif
+%if "%{?_with_da_profile}" == "1"
+CFLAGS+=" -DDA_PROFILE"
+CXXFLAGS+=" -DDA_PROFILE"
+%endif
+
libtoolize --force
cd %{_builddir}/%{name}-%{version}/build/tizen
autoreconf --install
%if 0%{?tizen_55_or_greater}
--with-tizen-55-or-greater \
%endif
+%if "%{?_with_da_profile}" == "1"
+ --with-da-profile \
+%endif
--enable-ecore-wl2 \
--enable-keyextension
%if 0%{?use_image_loader}