fix: workaround syspopup's header sandbox/pcoval/devel
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:40:07 +0000 (13:40 +0100)
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 7a9cbafde921790770350ad12c91eab8faa2566b..671ecc61213b91c853af84abe0b01bde461b1f86 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 4b1b2bc8ba72826e41ab92798d96c0f9477cae91..2b346689b99437853c3a55b0977865af1fe4fc72 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 0609d9098f2039a84d224ee3756be1f4339ce365..20ea70c7355ca6fee6a258ade920db8d62208c03 100644 (file)
@@ -24,6 +24,7 @@
 #include <aul.h>
 #include <bluetooth-api.h>
 #include <feedback.h>
+#include <linux/input.h>
 
 #include "bt-syspopup.h"