Add gles dependency since wrt-client needs it when wrt-client is built with ewebkit2 98/5998/3
authorWang Quanxian <quanxian.wang@intel.com>
Wed, 24 Jul 2013 02:20:59 +0000 (10:20 +0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 1 Aug 2013 16:42:39 +0000 (09:42 -0700)
Bug Fix TDIST-277. https://bugs.tizen.org/jira/browse/TDIST-277

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

packaging/wrt.spec
src/CMakeLists.txt

index 756f857..eb3b43a 100644 (file)
@@ -1,3 +1,4 @@
+%bcond_with mesa
 %bcond_with wayland
 %bcond_with decrypt
 %bcond_with multi_user
@@ -59,6 +60,12 @@ BuildRequires:  pkgconfig(osp-appfw)
 BuildRequires:  osp-appfw-internal-devel
 Requires: osp-appfw
 %endif
+%if %{with mesa}
+BuildRequires: pkgconfig(gl)
+BuildRequires: pkgconfig(glesv2)
+%else
+BuildRequires: pkgconfig(gles20)
+%endif
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
@@ -99,6 +106,9 @@ export LDFLAGS+="-Wl,--rpath=%{_libdir}"
 %cmake . -DDPL_LOG="ON"       \
         -DPROJECT_VERSION=%{version} \
          -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
+%if %{with mesa}
+        -DUSE_MESA=On \
+%endif
 %if %{with wayland}
          -DX11_SUPPORT=Off \
 %else
index 879c80d..b9871e5 100644 (file)
@@ -113,7 +113,11 @@ IF(SMACK_ENABLED)
   LIST(APPEND SYS_WRT_BASIC_DEP libprivilege-control)
 ENDIF(SMACK_ENABLED)
 
-
+IF (USE_MESA)
+   LIST(APPEND SYS_WRT_BASIC_DEP glesv2)
+ELSE ()
+   LIST(APPEND SYS_WRT_BASIC_DEP gles20)
+ENDIF ()
 
 PKG_CHECK_MODULES(SYS_WRT_ENGINE_DEPS
     ${SYS_WRT_BASIC_DEP}