[Tizen] Remove lwe build dependancy in DA profile 34/248334/1 accepted/tizen/6.0/unified/20201126.222220 accepted/tizen/6.0/unified/20201128.020338 submit/tizen_6.0/20201126.031245 submit/tizen_6.0/20201127.133124 submit/tizen_6.0/20201127.164604
authorJiyun Yang <ji.yang@samsung.com>
Wed, 25 Nov 2020 10:52:22 +0000 (19:52 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 25 Nov 2020 10:52:22 +0000 (19:52 +0900)
Change-Id: Id6a732b4172ff47c3debf70d733141a05598340e
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
build/tizen/web-engine-lwe/configure.ac
dali-extension/web-engine-lwe/tizen-web-engine-lwe.cpp
packaging/dali-extension.spec

index 7f8bffa..1dc10db 100644 (file)
@@ -16,9 +16,18 @@ LT_INIT
 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)
index 351001b..c0b389d 100644 (file)
@@ -15,6 +15,8 @@
  *
  */
 
+#ifndef DA_PROFILE
+
 // CLASS HEADER
 #include "tizen-web-engine-lwe.h"
 
@@ -806,3 +808,5 @@ bool TizenWebEngineLWE::SendKeyEvent( const Dali::KeyEvent& event )
 
 } // namespace Plugin
 } // namespace Dali
+
+#endif // DA_PROFILE
index eb4a29c..33eebbc 100755 (executable)
@@ -169,7 +169,7 @@ 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}
+%if 0%{?tizen_55_or_greater} && "%{?_with_da_profile}" != "1"
 BuildRequires: pkgconfig(libtbm)
 BuildRequires: pkgconfig(lightweight-web-engine)
 %endif
@@ -206,6 +206,11 @@ CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
 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
@@ -217,6 +222,9 @@ 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}