From: Kangho Hur Date: Tue, 14 Feb 2012 09:24:11 +0000 (+0900) Subject: Apply the SOVERSION X-Git-Tag: 2.0_alpha~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f365c2f548ab9d17e74a4721898499c471e6914f;p=framework%2Fapi%2Flocation-manager.git Apply the SOVERSION --- 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 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