Change-Id: Ib0d20eced46e1e15774cd81ac2bd89e6ae98e638
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+IF(WAYLAND_SUPPORT)
+ ADD_DEFINITIONS("-DWAYLAND")
+ENDIF(WAYLAND_SUPPORT)
+
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0.1.0)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
%bcond_with x
+%bcond_with wayland
Name: ug-setting-homescreen-efl
Summary: UI Gadget : setting-homescreen-efl
%build
-cmake . -DCMAKE_INSTALL_PREFIX=%{/usr/ug/lib}/
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}/ug/lib/ \
+%if %{with wayland}
+ -DWAYLAND_SUPPORT=On
+%else
+ -DWAYLAND_SUPPORT=Off
+%endif
make %{?jobs:-j%jobs}
%files
%manifest %{name}.manifest
-/etc/smack/accesses2.d/ug.setting-homescreen-efl.include
-/usr/ug/lib/*
-/usr/ug/res/*
+%{_sysconfdir}/smack/accesses2.d/ug.setting-homescreen-efl.include
+%{_prefix}/ug/lib/*
+%{_prefix}/ug/res/*