Fix ug-setting-homescreen-efl build into pure Wayland profile. 36/16536/2 accepted/tizen_3.0.2014.q3_common accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/generic/20140408.110137 accepted/tizen/ivi/20140409.182425 accepted/tizen/ivi/panda/20140408.203105 submit/tizen/20140408.110147 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorRonan Le Martret <ronan@fridu.net>
Tue, 18 Feb 2014 12:16:05 +0000 (13:16 +0100)
committerRonan Le Martret <ronan@fridu.net>
Tue, 8 Apr 2014 07:49:02 +0000 (09:49 +0200)
Change-Id: Ib0d20eced46e1e15774cd81ac2bd89e6ae98e638
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
CMakeLists.txt
packaging/ug-setting-homescreen-efl.spec

index 0f00a68..982d737 100755 (executable)
@@ -31,6 +31,10 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS}")
 
 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})
index 0def9c4..d08bea3 100755 (executable)
@@ -1,4 +1,5 @@
 %bcond_with x
+%bcond_with wayland
 
 Name:       ug-setting-homescreen-efl
 Summary:    UI Gadget : setting-homescreen-efl
@@ -36,7 +37,12 @@ cp %{SOURCE1001} .
 
 %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}
 
@@ -49,6 +55,6 @@ rm -rf %{buildroot}
 
 %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/*