SET(pc_dependents "capi-base-common")
INCLUDE(FindPkgConfig)
- pkg_check_modules(dependents REQUIRED dlog lbs-location capi-base-common capi-system-info)
+ pkg_check_modules(dependents REQUIRED dlog lbs-location capi-base-common capi-system-info libtzplatform-config)
FOREACH(flag ${dependents_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libtzplatform-config)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DINCLUDEDIR=%{_includedir} \
--DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
+-DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTZ_SYS_RO_PACKAGES=%{TZ_SYS_RO_PACKAGES} -DTZ_SYS_RW_APP=%{TZ_SYS_RW_APP} \
make %{?jobs:-j%jobs}
%files test
%manifest test/capi-location-manager-test.manifest
-#/usr/share/packages/capi-location-manager-test.xml
-/opt/usr/devel/location/location_test
+%{TZ_SYS_RO_PACKAGES}/capi-location-manager-test.xml
+%{TZ_SYS_RW_APP}/test/location/location_test
%endif
TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
ENDFOREACH()
-INSTALL(TARGETS ${src_name} DESTINATION /opt/usr/devel/location/)
-#INSTALL(FILES ${fw_test}.xml DESTINATION /usr/share/packages)
+INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_RW_APP}/test/location/)
+INSTALL(FILES ${fw_test}.xml DESTINATION ${TZ_SYS_RO_PACKAGES}/)
<privilege>http://tizen.org/privilege/location</privilege>
<privilege>http://tizen.org/privilege/location.enable</privilege>
</privileges>
- <ui-application appid="capi-location-manager-test" exec="/opt/usr/devel/location/location-test" nodisplay="true" multiple="false" type="capp" taskmanage="false" launch_mode="single">
+ <ui-application appid="capi-location-manager-test" exec=${TZ_SYS_RW_APP}"/test/location/location-test" nodisplay="true" multiple="false" type="capp" taskmanage="false" launch_mode="single">
<label>Location Manager Test</label>
</ui-application>
</manifest>