The libaul-rsc-mgr library is added.
Change-Id: I33d077778e33488a66cfc0e934e0e633f0247313
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
--- /dev/null
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
Source1001: %{name}.manifest
Source1002: %{name}-server.manifest
Source1003: %{name}-exec-checker-plugin.manifest
+Source1004: %{name}-rsc-mgr.manifest
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/systemctl
%description server-devel
Application Utility Library (devel)
+#################################################
+# aul-rsc-mgr
+#################################################
+%package rsc-mgr
+Summary: Application Utility Library (Resource Manager)
+Group: Development/Libraries
+
+%description rsc-mgr
+Application Utility Library (Resource Manager)
+
+%package rsc-mgr-devel
+Summary: Application Utility Library (Resource Manager)
+Group: Development/Libraries
+Requires: %{name}-rsc-mgr = %{version}-%{release}
+
+%description rsc-mgr-devel
+Application Utility Library (devel)
+
%package unittests
Summary: %{name} unittests binary
cp %{SOURCE1001} .
cp %{SOURCE1002} .
cp %{SOURCE1003} .
+cp %{SOURCE1004} .
%build
%if 0%{?gcov:1}
%post server
/sbin/ldconfig
+%postun rsc-mgr
+/sbin/ldconfig
+
+%post rsc-mgr
+/sbin/ldconfig
+
%files
%license LICENSE
%manifest %{name}.manifest
%{_libdir}/libaul-server.so
%{_libdir}/pkgconfig/aul-server.pc
+%files rsc-mgr
+%manifest %{name}-rsc-mgr.manifest
+%attr(0644,root,root) %{_libdir}/libaul-rsc-mgr.so.*
+
+%files rsc-mgr-devel
+%{_includedir}/aul/rsc-mgr/*.h
+%{_libdir}/libaul-rsc-mgr.so
+%{_libdir}/pkgconfig/aul-rsc-mgr.pc
+
%files unittests
%attr(0755,root,root) %{_bindir}/aul-unit-tests
%attr(0755,root,root) %{_bindir}/app-control-tests
ADD_SUBDIRECTORY(aul)
ADD_SUBDIRECTORY(parser)
+ADD_SUBDIRECTORY(rsc-mgr)
ADD_SUBDIRECTORY(server)
ADD_SUBDIRECTORY(tool)
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../
${CMAKE_CURRENT_SOURCE_DIR}/include
- ${CMAKE_CURRENT_SOURCE_DIR}/include/internal
${CMAKE_CURRENT_SOURCE_DIR}/api
${CMAKE_CURRENT_SOURCE_DIR}/app_control
${CMAKE_CURRENT_SOURCE_DIR}/app_manager
INIPARSER_DEPS
LIBSMACK_DEPS
LIBTZPLATFORM_CONFIG_DEPS
- LIBXML_DEPS
PARCEL_DEPS
PKGMGR_INFO_DEPS
STORAGE_DEPS
--- /dev/null
+SET(TARGET_AUL_RSC_MGR "aul-rsc-mgr")
+
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} AUL_RSC_MGR_SRCS)
+
+ADD_LIBRARY(${TARGET_AUL_RSC_MGR} SHARED ${AUL_RSC_MGR_SRCS})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_RSC_MGR} PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include
+)
+
+SET_TARGET_PROPERTIES(${TARGET_AUL_RSC_MGR} PROPERTIES SOVERSION ${MAJORVER})
+SET_TARGET_PROPERTIES(${TARGET_AUL_RSC_MGR} PROPERTIES VERSION ${FULLVER})
+
+APPLY_PKG_CONFIG(${TARGET_AUL_RSC_MGR} PUBLIC
+ BUNDLE_DEPS
+ CAPI_SYSTEM_INFO_DEPS
+ DLOG_DEPS
+ GLIB_DEPS
+ LIBXML_DEPS
+ VCONF_DEPS
+)
+
+TARGET_LINK_LIBRARIES(${TARGET_AUL_RSC_MGR} PRIVATE ${TARGET_AUL})
+
+INSTALL(TARGETS ${TARGET_AUL_RSC_MGR} DESTINATION ${LIB_INSTALL_DIR}
+ COMPONENT RuntimeLibraries)
+
+CONFIGURE_FILE(${TARGET_AUL_RSC_MGR}.pc.in ${TARGET_AUL_RSC_MGR}.pc @ONLY)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${TARGET_AUL_RSC_MGR}.pc
+ DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
+ DESTINATION include/aul/rsc-mgr
+ FILES_MATCHING
+ PATTERN "*.h"
+)
--- /dev/null
+# Package Information for pkg-config
+
+prefix=@PREFIX@
+exec_prefix=@EXEC_PREFIX@
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+
+Name: libaul-rsc-mgr
+Description: Application Utility Libarary (Resource Manager)
+Version: @VERSION@
+Requires: bundle glib-2.0
+Libs: -L${libdir} -laul-rsc-mgr
+Cflags: -I${includedir} -I${includedir}/aul/rsc-mgr
#include <system_info.h>
#include "aul.h"
-#include "aul_api.h"
#include "aul_rsc_mgr.h"
#include "aul_rsc_mgr_internal.h"
+#undef API
+#define API __attribute__ ((visibility("default")))
+
#define WEIGHT_SCREEN_DPI 10000
#define WEIGHT_SCREEN_DPI_RANGE 10000
#define WEIGHT_SCREEN_BPP 1000