Also define WAYLAND symbol used in syspop, could be removed once
syspop and projects using it switch to conventions detailed at :
https://wiki.tizen.org/wiki/X11_equivalent_Wayland_calls_and_notes
Bug-Tizen: PTREL-653
Change-Id: I2501e7275f9bd04e67028f12c5b066c22e3f0a18
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DSLP_DEBUG")
+IF(WAYLAND_SUPPORT)
+ ADD_DEFINITIONS(
+ "-DHAVE_WAYLAND"
+ "-DWAYLAND" # used by syspopup
+ )
+ENDIF(WAYLAND_SUPPORT)
+
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
+%bcond_with wayland
+
%define _optdir /opt
%define _usrdir /usr
%define _appdir %{_optdir}/apps
export CFLAGS+=" -fpie -fvisibility=hidden"
export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
-cmake . -DCMAKE_INSTALL_PREFIX=%{_appdir}/org.tizen.bt-syspopup
+cmake . \
+ -DCMAKE_INSTALL_PREFIX=%{_appdir}/org.tizen.bt-syspopup \
+%if %{with wayland}
+ -DWAYLAND_SUPPORT=On \
+%else
+ -DWAYLAND_SUPPORT=Off \
+%endif
+ #eol
+
make %{?jobs:-j%jobs}
%install
#include <aul.h>
#include <bluetooth-api.h>
#include <feedback.h>
+#include <linux/input.h>
#include "bt-syspopup.h"