fix: workaround syspopup's header 52/16952/1 sandbox/pcoval/tizen
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 27 Feb 2014 12:30:53 +0000 (13:30 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 27 Feb 2014 12:43:57 +0000 (13:43 +0100)
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>
CMakeLists.txt
packaging/org.tizen.bt-syspopup.spec
src/bt-syspopup.c

index 7a9cbaf..671ecc6 100644 (file)
@@ -55,6 +55,13 @@ ENDIF("${ARCH}" STREQUAL "arm")
 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})
index 4b1b2bc..2b34668 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with wayland
+
 %define _optdir /opt
 %define _usrdir /usr
 %define _appdir %{_optdir}/apps
@@ -45,7 +47,15 @@ bluetooth system-popup application (bluetooth system popup).
 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
index 0609d90..20ea70c 100644 (file)
@@ -24,6 +24,7 @@
 #include <aul.h>
 #include <bluetooth-api.h>
 #include <feedback.h>
+#include <linux/input.h>
 
 #include "bt-syspopup.h"