Bug Fix TDIST-277. https://bugs.tizen.org/jira/browse/TDIST-277
Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>
+%bcond_with mesa
%bcond_with wayland
%bcond_with decrypt
%bcond_with multi_user
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
%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
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}