summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2012-02-14 18:24:11 +0900
committerKangho Hur <kangho.hur@samsung.com>2012-02-14 18:24:11 +0900
commitf365c2f548ab9d17e74a4721898499c471e6914f (patch)
tree6db06057764d269ed2f3e71196a3282fec9e71d8
parent7b3e5b52906bfd248b1b5b7e2fc6f1401d87f3c0 (diff)
downloadlocation-manager-f365c2f548ab9d17e74a4721898499c471e6914f.tar.gz
location-manager-f365c2f548ab9d17e74a4721898499c471e6914f.tar.bz2
location-manager-f365c2f548ab9d17e74a4721898499c471e6914f.zip
Apply the SOVERSION
-rwxr-xr-xCMakeLists.txt7
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules5
3 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2d956d..7b6ff02 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,6 +33,13 @@ 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})
INSTALL(TARGETS ${fw_name} DESTINATION lib)
diff --git a/debian/changelog b/debian/changelog
index 79789cb..ef04f7a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+capi-location-manager (0.1.0-8) unstable; urgency=low
+
+ * Apply the SOVERSION
+
+ -- Kangho Hur <kangho.hur@samsung.com> Tue, 14 Feb 2012 18:24:02 +0900
+
capi-location-manager (0.1.0-7) unstable; urgency=low
* Support to location_manager_get_last_known_position(), location_manager_is_supported_method(), and interval setting.
diff --git a/debian/rules b/debian/rules
index 4944343..b527b14 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