From: SangYoun Kwak Date: Tue, 11 Apr 2023 10:27:37 +0000 (+0900) Subject: Modify the .spec and CMakeLists.txt of resourced-memory-lmk module X-Git-Tag: accepted/tizen/unified/20230607.160238~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21cb24450d947c09d0146aacdadcff8d22b858f4;p=platform%2Fcore%2Fsystem%2Fplugin%2Fresourced-generic.git Modify the .spec and CMakeLists.txt of resourced-memory-lmk module Since the path and the name of .so file, .spec file and cmake file for resourced-memory-lmk are modified. Signed-off-by: SangYoun Kwak --- diff --git a/packaging/resourced-generic.spec b/packaging/resourced-generic.spec index 5d86c2f..99ed640 100644 --- a/packaging/resourced-generic.spec +++ b/packaging/resourced-generic.spec @@ -1,7 +1,7 @@ -%define PLUGIN_LIBDIR %{_libdir}/plugin +%define PLUGIN_LIBDIR %{_libdir}/system/plugin Name: resourced-generic -Summary: Resourced plugin backend for rpi targets +Summary: Resourced plugin backend for generic profile Version: 0.1.0 Release: 0 Group: System/Libraries @@ -18,7 +18,7 @@ BuildRequires: pkgconfig(libsyscommon) BuildRequires: pkgconfig(plugin-api-resourced) %description -Resourced plugin backend for rpi targets +Resourced plugin backend for generic profile %prep %setup -q @@ -27,7 +27,7 @@ cp %{SOURCE1} . %build %cmake . -DPLUGIN_NAME=%{name} \ -DPLUGIN_LIB_DIR=%{PLUGIN_LIBDIR} \ - -DPLUGIN_BACKEND_RESOURCED_MEMORY_LMK_ENABLE_DLOG=1 + -DPLUGIN_RESOURCED_MEMORY_LMK_ENABLE_DLOG=1 make %{?jobs:-j%jobs} @@ -44,4 +44,4 @@ make %{?jobs:-j%jobs} %defattr(-,root,root,-) %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{PLUGIN_LIBDIR}/libplugin-backend-resourced-memory-lmk.so +%{PLUGIN_LIBDIR}/libplugin-resourced-memory-lmk.so diff --git a/src/resourced-memory-lmk/CMakeLists.txt b/src/resourced-memory-lmk/CMakeLists.txt index 141bb86..371aef0 100644 --- a/src/resourced-memory-lmk/CMakeLists.txt +++ b/src/resourced-memory-lmk/CMakeLists.txt @@ -1,15 +1,15 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(plugin-backend-resourced-memory-lmk C) +PROJECT(plugin-resourced-memory-lmk C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) -if (${PLUGIN_BACKEND_RESOURCED_MEMORY_LMK_ENABLE_DLOG}) +if (${PLUGIN_RESOURCED_MEMORY_LMK_ENABLE_DLOG}) SET(PKG_MODULES libsyscommon plugin-api-resourced glib-2.0) ADD_DEFINITIONS("-DENABLE_DLOG") - ADD_DEFINITIONS("-DLOG_TAG=\"PLUGIN_BACKEND_RESOURCED_MEMORY_LMK\"") + ADD_DEFINITIONS("-DLOG_TAG=\"PLUGIN_RESOURCED_MEMORY_LMK\"") else() SET(PKG_MODULES libsyscommon