OPTION(ALLOW_NAVIGATION_SUPPORT "Support for allow-navigation" ON)
OPTION(SMACK "Enable smack support" ON)
OPTION(DECRYPT_SUPPORT "Enable appmanager capabilities" ON)
+OPTION(X11_SUPPORT "Enable X11" ON)
+OPTION(WAYLAND_SUPPORT "Enable Wayland" OFF)
+
IF(DECRYPT_SUPPORT)
ADD_DEFINITIONS("-DDECRYPT")
ENDIF(DECRYPT_SUPPORT)
%bcond_with livebox
%bcond_with decrypt
%bcond_with osp
+%bcond_with wayland
+%bcond_with x
+
Name: wrt-installer
Summary: Installer for tizen Webruntime
Version: 0.1.138
BuildRequires: pkgconfig(wrt-commons-i18n-dao-ro)
BuildRequires: pkgconfig(wrt-commons-widget-interface-dao)
BuildRequires: pkgconfig(security-install)
+%if %{with x}
BuildRequires: pkgconfig(ecore-x)
+%endif
+%if %{with wayland}
+BuildRequires: pkgconfig(ecore-wayland)
+%endif
BuildRequires: pkgconfig(xmlsec1)
BuildRequires: pkgconfig(libidn)
BuildRequires: pkgconfig(libiri)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(cert-svc)
-BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(wrt-plugins-types)
BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(shortcut)
%else
-DDECRYPT_SUPPORT=Off \
%endif
+%if %{with wayland}
+ -DWAYLAND_SUPPORT=On \
+%else
+ -DWAYLAND_SUPPORT=Off \
+%endif
+%if %{with x}
+ -DX11_SUPPORT=On \
+%else
+ -DX11_SUPPORT=Off \
+%endif
-DSYSCONFDIR=%{_sysconfdir} \
-DSMACK=Off \
-DDPL_LOG=ON \
ADD_DEFINITIONS("-DLIVEBOX")
ENDIF(LIVEBOX_SUPPORT)
+IF(X11_SUPPORT)
PKG_CHECK_MODULES(SYS_INSTALLER_STATIC_DEP
appsvc
libxml-2.0
libprivilege-control
REQUIRED
)
+ELSE(WAYLAND_SUPPORT)
+PKG_CHECK_MODULES(SYS_INSTALLER_STATIC_DEP
+ appsvc
+ libxml-2.0
+ openssl
+ cert-svc-vcore
+ security-install
+ ecore-wayland
+ xmlsec1
+ libidn
+ libiri
+ libpcrecpp
+ ail
+ elementary
+ tapi
+ shortcut
+ capi-appfw-app-manager
+ app2sd
+ libprivilege-control
+ REQUIRED
+)
+ENDIF(X11_SUPPORT)
INCLUDE_DIRECTORIES( SYSTEM ${SYS_INSTALLER_STATIC_DEP_INCLUDE_DIRS})