SET(SETTING_PKG_NAME org.tizen.setting)
SET(PREFIX "/usr/apps/org.tizen.setting")
+
+#SET(LIBDIR "${PREFIX}/lib")
+#SET(INCLUDEDIR "${PREFIX}/include")
+
SET(BINDIR "${PREFIX}/bin")
SET(RESDIR "${PREFIX}/res")
SET(DATADIR "${PREFIX}/data")
<manifest>
<define>
<domain name="org.tizen.setting"/>
- <provide>
- <label name="org.tizen.setting::default-resources"/>
- <label name="org.tizen.setting::private"/>
- </provide>
<request>
<smack request="pkgmgr::svc" type="rx"/>
<smack request="pkgmgr::info" type="r"/>
<filesystem path="/usr/ug/lib/*" label="_"/>
<filesystem path="/usr/ug/res/*" label="_"/>
- <filesystem path="/opt/usr/apps/org.tizen.setting/data/langlist.xml" label="org.tizen.setting"/>
- <filesystem path="/opt/usr/apps/org.tizen.setting/data/langlist_all.xml" label="org.tizen.setting"/>
- <filesystem path="/opt/usr/apps/org.tizen.setting/data/test.db" label="org.tizen.setting"/>
- <filesystem path="/opt/usr/apps/org.tizen.setting/data/*" label="org.tizen.setting"/>
+ <filesystem path="/opt/usr/apps/org.tizen.setting/data/langlist.xml" label="_"/>
+ <filesystem path="/opt/usr/apps/org.tizen.setting/data/langlist_all.xml" label="_"/>
+ <filesystem path="/opt/usr/apps/org.tizen.setting/data/test.db" label="_"/>
+ <filesystem path="/opt/usr/apps/org.tizen.setting/data/*" label="_"/>
<filesystem path="/opt/usr/share/settings" label="_"/>
<filesystem path="/opt/usr/share/settings/*" label="_"/>
- <filesystem path="/usr/apps/org.tizen.setting/firewall" label="org.tizen.setting::firewall-security"/>
- <filesystem path="/home/app/.firewall/*" label="org.tizen.setting::firewall-security"/>
+ <filesystem path="/usr/apps/org.tizen.setting/firewall" label="_"/>
+ <filesystem path="/home/app/.firewall/*" label="_"/>
<filesystem path="/usr/ug/bin/*" label="_" exec_label="_"/>
%endif
%ifarch %{arm}
- cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DARCH=arm \
+ cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DARCH=arm -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
%if %{with wayland} && !%{with x}
-Dwith_wayland=TRUE
%else
-Dwith_x=TRUE
%endif
%else
- cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DARCH=x86 \
+ cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DARCH=x86 -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
%if %{with wayland} && !%{with x}
-Dwith_wayland=TRUE
%else
TARGET_LINK_LIBRARIES(${SETTING_APPLICATIONS_UG} ${pkgs_display_LDFLAGS})
INSTALL(TARGETS ${SETTING_APPLICATIONS_UG} DESTINATION ${PREFIX}/lib/ug)
+
TARGET_LINK_LIBRARIES(${LIB_SETTING_COMMON} ${pkgs_common_data_LDFLAGS})
SET_TARGET_PROPERTIES(${LIB_SETTING_COMMON} PROPERTIES VERSION 0.1.0 SOVERSION 1)
-INSTALL(TARGETS ${LIB_SETTING_COMMON} DESTINATION /usr/lib)
+INSTALL(TARGETS ${LIB_SETTING_COMMON} DESTINATION ${LIBDIR})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-type.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-draw-widget.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-general-func.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-resource.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-cfg.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-edj-define.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-error.h DESTINATION /usr/include)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-search.h DESTINATION /usr/include)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-type.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-draw-widget.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-general-func.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-resource.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-cfg.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-edj-define.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-data-error.h DESTINATION ${INCLUDEDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/setting-common-search.h DESTINATION ${INCLUDEDIR})
+++ /dev/null
-<manifest>
- <define>
- <domain name="org.tizen.setting"/>
- <request>
- <smack request="system::homedir" type="arwxt" />
- <smack request="system::use_internet" type="r" />
- <smack request="xorg" type="w" />
- <smack request="system::vconf" type="arwxt" />
- <smack request="ail::db" type="rw" />
- <smack request="dbus" type="w" />
- <smack request="ug_bluetooth" type="r" />
- <smack request="isf" type="rwx" />
- <smack request="pkgmgr" type="r" />
- <smack request="media-data::db" type="rw" />
- <smack request="worldclock::db" type="rw" />
- <smack request="system::system_bklight" type="w" />
- <smack request="efreet" type="rx" />
- <smack request="contacts-service" type="rw" />
- <smack request="contacts-service::db" type="rw" />
- <smack request="msg-service" type="w" />
- <smack request="location_fw::db" type="rw" />
- </request>
- <permit>
- <smack permit="dbus" type="w" />
- </permit>
- </define>
- <request>
- <domain name="org.tizen.setting"/>
- </request>
-</manifest>
####FOR TEST>>>>########
TARGET_LINK_LIBRARIES(${PROJECT_NAME} -L${CMAKE_BINARY_DIR}/${SETTING_COMMON} -lsetting-common)
-#TARGET_LINK_LIBRARIES(${PROJECT_NAME} -L/usr/apps/${SETTING_PKG_NAME}/lib -lsetting-common)
-# /usr/apps/${SETTING_PKG_NAME}/lib
# util to turn off assistive light
${CMAKE_CURRENT_SOURCE_DIR}/setting-common-internal.pc
@ONLY
)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/setting-common-internal.pc DESTINATION /usr/lib/pkgconfig)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/setting-common-internal.pc DESTINATION ${LIBDIR}/pkgconfig)
#-----------------------------------------------------------------------------------
# install firewall script for FOTA(210.org.tizen.setting.patch.sh)