summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2012-02-14 18:20:17 +0900
committerKangho Hur <kangho.hur@samsung.com>2012-02-14 18:20:17 +0900
commit475284bd3bfa2ca171e0a70f69c891b339216c75 (patch)
tree719436c5c3d4b5b21ea1c85610e03d9d54451cd2
parent3831f4f47cf35f3a6d943127e6c46d92b417644e (diff)
downloadaudio-io-475284bd3bfa2ca171e0a70f69c891b339216c75.tar.gz
audio-io-475284bd3bfa2ca171e0a70f69c891b339216c75.tar.bz2
audio-io-475284bd3bfa2ca171e0a70f69c891b339216c75.zip
Apply the SOVERSION
-rwxr-xr-xCMakeLists.txt14
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules5
3 files changed, 24 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fca1155..7ba6694 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,8 +33,22 @@ SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
aux_source_directory(src SOURCES)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
+SET_TARGET_PROPERTIES(${fw_name}
+ PROPERTIES
+ VERSION ${FULLVER}
+ SOVERSION ${MAJORVER}
+ CLEAN_DIRECT_OUTPUT 1
+)
+
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
+SET_TARGET_PROPERTIES(${fw_name}
+ PROPERTIES
+ VERSION ${FULLVER}
+ SOVERSION ${MAJORVER}
+ CLEAN_DIRECT_OUTPUT 1
+)
+
INSTALL(TARGETS ${fw_name} DESTINATION lib)
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/media
diff --git a/debian/changelog b/debian/changelog
index 263258f..fad8284 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+capi-media-audio-io (0.1.0-5) unstable; urgency=low
+
+ * Apply the SOVERSION
+
+ -- Kangho Hur <kangho.hur@samsung.com> Tue, 14 Feb 2012 18:19:52 +0900
+
capi-media-audio-io (0.1.0-4) unstable; urgency=low
* Initial release.
diff --git a/debian/rules b/debian/rules
index fb18921..235c5ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
CFLAGS = -Wall -g
+FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1)
+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -13,7 +16,7 @@ CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp
configure: configure-stamp
configure-stamp:
dh_testdir
- mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake ..
+ mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER}
touch configure-stamp