From 2493db18104dd87d1606b5b42ef4179e83d884ce Mon Sep 17 00:00:00 2001 From: SangYoun Kwak Date: Thu, 8 Jun 2023 14:16:27 +0900 Subject: [PATCH] Add 'backend' to package and .so name It is required to add 'backend' keyword to this plugin backend package and .so name to distinguish this backend package since there are other packages whose start with 'system-plugin'. Change-Id: I91e8c531fd07391ea4d8b0207d2bfce2dc772967 Signed-off-by: SangYoun Kwak --- CMakeLists.txt | 2 +- ...> system-plugin-backend-resourced-generic.manifest} | 0 packaging/system-plugin-resourced-generic.spec | 10 +++++----- src/resourced-memory-lmk/CMakeLists.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename packaging/{system-plugin-resourced-generic.manifest => system-plugin-backend-resourced-generic.manifest} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76f07ce..a42663e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(${PLUGIN_NAME} C) +PROJECT(${PLUGIN_BACKEND_NAME} C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) diff --git a/packaging/system-plugin-resourced-generic.manifest b/packaging/system-plugin-backend-resourced-generic.manifest similarity index 100% rename from packaging/system-plugin-resourced-generic.manifest rename to packaging/system-plugin-backend-resourced-generic.manifest diff --git a/packaging/system-plugin-resourced-generic.spec b/packaging/system-plugin-resourced-generic.spec index 8a93f8c..9c3806b 100644 --- a/packaging/system-plugin-resourced-generic.spec +++ b/packaging/system-plugin-resourced-generic.spec @@ -1,7 +1,7 @@ %define SYSTEM_PLUGIN_LIBDIR %{_libdir}/system/plugin -Name: system-plugin-resourced-generic -Summary: System plugin for resourced and generic profile +Name: system-plugin-backend-resourced-generic +Summary: System plugin backend for resourced and generic profile Version: 0.1.0 Release: 0 Group: System/Libraries @@ -18,14 +18,14 @@ BuildRequires: pkgconfig(libsyscommon) BuildRequires: pkgconfig(libsyscommon-plugin-api-resourced) %description -System plugin for resourced and generic profile +System plugin backend for resourced and generic profile %prep %setup -q cp %{SOURCE1} . %build -%cmake . -DPLUGIN_NAME=%{name} \ +%cmake . -DPLUGIN_BACKEND_NAME=%{name} \ -DPLUGIN_LIB_DIR=%{SYSTEM_PLUGIN_LIBDIR} \ -DPLUGIN_RESOURCED_MEMORY_LMK_ENABLE_DLOG=1 @@ -44,4 +44,4 @@ make %{?jobs:-j%jobs} %defattr(-,root,root,-) %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{SYSTEM_PLUGIN_LIBDIR}/libplugin-resourced-memory-lmk.so +%{SYSTEM_PLUGIN_LIBDIR}/libplugin-backend-resourced-memory-lmk.so diff --git a/src/resourced-memory-lmk/CMakeLists.txt b/src/resourced-memory-lmk/CMakeLists.txt index ef7722c..4ef6316 100644 --- a/src/resourced-memory-lmk/CMakeLists.txt +++ b/src/resourced-memory-lmk/CMakeLists.txt @@ -1,5 +1,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(plugin-resourced-memory-lmk C) +PROJECT(plugin-backend-resourced-memory-lmk C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) -- 2.34.1