Keep the names simple. The CMake name conflict can be avoided.
Additionally fixed some coupling:
- don't include local copy of procotocol headers in plugin and agent code
- do a pkg-config module check on libaskuser-notification in plugin CMake
Change-Id: I539fe5a5325ac45575d2a19de0c9e39aeae5bca0
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
%files libs
%manifest default.manifest
%license LICENSE
-%{_libdir}/libaskuser-notification-ipc.so.*
+%{_libdir}/libaskuser-notification.so.*
%files devel
-%{_libdir}/libaskuser-notification-ipc.so
+%{_libdir}/libaskuser-notification.so
%{_includedir}/askuser-notification
-%{_libdir}/pkgconfig/askuser-notification-ipc.pc
+%{_libdir}/pkgconfig/askuser-notification.pc
%files test
%attr(755,root,root) %{_bindir}/askuser-notification-test
BuildRequires: pkgconfig(security-privilege-manager)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: askuser-notification-devel
%if !%{defined build_type}
%define build_type RELEASE
INCLUDE_DIRECTORIES(
${ASKUSER_PATH}/common
- ${ASKUSER_PATH}/common/protocol
${AGENT_DEP_INCLUDE_DIRS}
${ASKUSER_AGENT_PATH}
)
SET(ASKUSER_NOTIFICATION_VERSION_MAJOR 0)
SET(ASKUSER_NOTIFICATION_VERSION ${ASKUSER_NOTIFICATION_VERSION_MAJOR}.1.0)
-SET(PC_FILE "askuser-notification-ipc.pc")
+SET(PC_FILE "askuser-notification.pc")
PKG_CHECK_MODULES(ASKUSER_NOTIFICATION_DEP
REQUIRED
PROPERTIES
SOVERSION ${ASKUSER_NOTIFICATION_VERSION_MAJOR}
VERSION ${ASKUSER_NOTIFICATION_VERSION}
+ OUTPUT_NAME "askuser-notification"
)
LINK_DIRECTORIES(${ASKUSER_NOTIFICATION_DEP_LIBRARY_DIRS})
Name: askuser-notification
Description: askuser-notification library
Version: @ASKUSER_NOTIFICATION_VERSION@
-Libs: -L${libdir} -laskuser-notification-ipc
+Libs: -L${libdir} -laskuser-notification
Cflags: -I${includedir}/askuser-notification
REQUIRED
cynara-plugin
security-manager
+ askuser-notification
)
INCLUDE_DIRECTORIES(
${ASKUSER_PATH}/common/config
- ${ASKUSER_PATH}/common/protocol
SYSTEM
${PDP_DEP_INCLUDE_DIRS}
)
ADD_LIBRARY(${TARGET_PRIVACYDENIED_PLUGIN_SERVICE} SHARED ${PDP_SERVICE_SOURCES})
ADD_LIBRARY(${TARGET_PRIVACYDENIED_PLUGIN_CLIENT} SHARED ${PDP_CLIENT_SOURCES})
-TARGET_LINK_LIBRARIES(${TARGET_PRIVACYDENIED_PLUGIN_SERVICE} ${PDP_DEP_LIBRARIES} ${TARGET_ASKUSER_NOTIFICATION_LIB})
+TARGET_LINK_LIBRARIES(${TARGET_PRIVACYDENIED_PLUGIN_SERVICE} ${PDP_DEP_LIBRARIES})
TARGET_LINK_LIBRARIES(${TARGET_PRIVACYDENIED_PLUGIN_CLIENT} ${PDP_DEP_LIBRARIES})
INSTALL(TARGETS ${TARGET_PRIVACYDENIED_PLUGIN_SERVICE}