diff options
author | hyunho kang <hhstark.kang@samsung.com> | 2015-09-09 23:46:55 +0900 |
---|---|---|
committer | hyunho kang <hhstark.kang@samsung.com> | 2015-09-09 23:47:35 +0900 |
commit | 7e32dd482b2573d3b929a0000e6a47409a7fa4b2 (patch) | |
tree | 484bfac391c0b2eff3460b0b125389c481ef5353 | |
parent | ec4b849dcdf79f9481bf55cc06a0056036135127 (diff) | |
download | message-port-7e32dd482b2573d3b929a0000e6a47409a7fa4b2.tar.gz message-port-7e32dd482b2573d3b929a0000e6a47409a7fa4b2.tar.bz2 message-port-7e32dd482b2573d3b929a0000e6a47409a7fa4b2.zip |
Make symbolic link for 2.x compatibility.submit/tizen/20150910.011113accepted/tizen/wearable/20150910.025029accepted/tizen/tv/20150910.025017accepted/tizen/mobile/20150910.025002
Change-Id: I7490d86268505828bb8e87d8a5636803b88c1c05
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
-rw-r--r-- | packaging/message-port.spec | 2 | ||||
-rwxr-xr-x | src/CMakeLists.txt | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/packaging/message-port.spec b/packaging/message-port.spec index 96f4dd8..89d8ce7 100644 --- a/packaging/message-port.spec +++ b/packaging/message-port.spec @@ -47,6 +47,7 @@ rm -rf %{buildroot} %make_install + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -54,6 +55,7 @@ rm -rf %{buildroot} %files %manifest %{name}.manifest %attr(0644,root,root) %{_libdir}/lib%{name}.so.* +%attr(0644,root,root) %{_libdir}/libcapi-message-port.so %license LICENSE.APLv2 %files devel diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8fe809e..c5fda02 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -50,6 +50,11 @@ SET(PC_NAME ${this_target}) SET(PACKAGE_DESCRIPTION "Message Port internal library") SET(VERSION ${FULLVER}) SET(PC_REQUIRED ${${this_target}_requires}) + +ADD_CUSTOM_COMMAND( + TARGET ${this_target} POST_BUILD + COMMAND ln -s ${LIBRARY_OUTPUT_PATH}/libmessage-port.so.${MAJORVER} ${LIBRARY_OUTPUT_PATH}/libcapi-message-port.so) + CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY) INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/capi-${this_target}.pc.in ${CMAKE_SOURCE_DIR}/capi-${this_target}.pc @ONLY) |