Commit 7a5aff20 authored by Jarosław Staniek's avatar Jarosław Staniek

* Global versioning for KOfice shared libraries *

Always use GENERIC_KOFFICE_LIB_VERSION and GENERIC_KOFFICE_LIB_SOVERSION variables in

set_target_properties(libraryname PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )

Thus, we'll just increase the version in one place (koffice/CMakeLists.txt) when needed for major releases.


svn path=/trunk/koffice/; revision=548663
parent 3ef3ef68
......@@ -2,6 +2,11 @@ project(koffice)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
# define the generic version of the KOffice libraries here
# this makes it easy to advance it when the next KOffice release comes
set(GENERIC_KOFFICE_LIB_VERSION "5.0.0")
set(GENERIC_KOFFICE_LIB_SOVERSION "5")
# search packages used by KDE
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
......@@ -77,7 +82,7 @@ if(LIBART_FOUND)
endif(LIBART_FOUND)
add_subdirectory(kdgantt)
add_subdirectory(kchart)
#add_subdirectory(kexi)
add_subdirectory(kexi)
add_subdirectory(kformula)
add_subdirectory(kivio)
add_subdirectory(koshell)
......
......@@ -13,7 +13,7 @@ kde4_add_library(kochart SHARED ${kochart_LIB_SRCS})
target_link_libraries(kochart ${KDE4_KDECORE_LIBS} kofficecore )
set_target_properties(kochart PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kochart PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kochart )
......
......@@ -13,7 +13,7 @@ kde4_add_library(krita_cmyk_u16 SHARED ${krita_cmyk_u16_LIB_SRCS})
target_link_libraries(krita_cmyk_u16 ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(krita_cmyk_u16 PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_cmyk_u16 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_cmyk_u16 )
......
......@@ -13,7 +13,7 @@ kde4_add_library(krita_gray_u16 SHARED ${krita_gray_u16_LIB_SRCS})
target_link_libraries(krita_gray_u16 ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(krita_gray_u16 PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_gray_u16 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_gray_u16 )
......
......@@ -16,7 +16,7 @@ kde4_add_library(kritagrayscale SHARED ${kritagrayscale_LIB_SRCS})
target_link_libraries(kritagrayscale ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(kritagrayscale PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritagrayscale PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritagrayscale )
......
......@@ -13,7 +13,7 @@ kde4_add_library(krita_lms_f32 SHARED ${krita_lms_f32_LIB_SRCS})
target_link_libraries(krita_lms_f32 ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(krita_lms_f32 PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_lms_f32 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_lms_f32 )
......
......@@ -16,7 +16,7 @@ kde4_add_library(krita_rgb_f16half SHARED ${krita_rgb_f16half_LIB_SRCS})
target_link_libraries(krita_rgb_f16half ${KDE4_KDECORE_LIBS} kritacolor ${OPENEXR_LIBRARIES})
set_target_properties(krita_rgb_f16half PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_rgb_f16half PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_rgb_f16half )
......
......@@ -16,7 +16,7 @@ kde4_add_library(krita_rgb_f32 SHARED ${krita_rgb_f32_LIB_SRCS})
target_link_libraries(krita_rgb_f32 ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(krita_rgb_f32 PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_rgb_f32 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_rgb_f32 )
......
......@@ -16,7 +16,7 @@ kde4_add_library(krita_rgb_u16 SHARED ${krita_rgb_u16_LIB_SRCS})
target_link_libraries(krita_rgb_u16 ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(krita_rgb_u16 PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krita_rgb_u16 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krita_rgb_u16 )
......
......@@ -18,7 +18,7 @@ kde4_add_library(kritargb SHARED ${kritargb_LIB_SRCS})
target_link_libraries(kritargb ${KDE4_KDECORE_LIBS} kritacolor )
set_target_properties(kritargb PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritargb PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritargb )
......
......@@ -80,7 +80,7 @@ kde4_add_library(kritaimage SHARED ${kritaimage_LIB_SRCS})
target_link_libraries(kritaimage ${KDE4_KDECORE_LIBS} kritacolor kofficecore kopainter)
set_target_properties(kritaimage PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritaimage PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritaimage )
......
......@@ -25,7 +25,7 @@ kde4_add_library(kritacolor SHARED ${kritacolor_LIB_SRCS})
target_link_libraries(kritacolor ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} ${LCMS_LIBRARIES} ${LINK_OPENEXR_LIB} pigment kofficecore)
set_target_properties(kritacolor PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritacolor PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritacolor )
......
......@@ -10,7 +10,7 @@ kde4_add_library(kritascripting SHARED ${kritascripting_LIB_SRCS})
target_link_libraries(kritascripting kritaui krossmain)
set_target_properties(kritascripting PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritascripting PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritascripting )
......
......@@ -127,7 +127,7 @@ if(HAVE_XINPUTEXT)
target_link_libraries(kritaui ${X11_Xinput_LIB})
endif(HAVE_XINPUTEXT)
set_target_properties(kritaui PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kritaui PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kritaui )
......
......@@ -32,7 +32,7 @@ kde4_add_library(flake SHARED ${flake_SRCS})
target_link_libraries(flake ${KDE4_KDECORE_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDEUI_LIBS})
set_target_properties(flake PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(flake PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} flake )
......
......@@ -48,7 +48,7 @@ kde4_add_library(kformulalib SHARED ${kformulalib_LIB_SRCS})
target_link_libraries(kformulalib ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} kotext kofficeui)
set_target_properties(kformulalib PROPERTIES VERSION 4.0.0 SOVERSION 4 )
set_target_properties(kformulalib PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kformulalib )
......
......@@ -81,7 +81,7 @@ kde4_add_library(kofficecore SHARED ${kofficecore_LIB_SRCS})
target_link_libraries(kofficecore ${KDE4_KPARTS_LIBS} kstore kabc ${KDE4_KDEPRINT_LIBS} kowmf)
set_target_properties(kofficecore PROPERTIES VERSION 3.0.0 SOVERSION 3 )
set_target_properties(kofficecore PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kofficecore )
......
......@@ -51,7 +51,7 @@ kde4_add_library(kofficeui SHARED ${kofficeui_LIB_SRCS})
target_link_libraries(kofficeui ${KDE4_KDECORE_LIBS} kofficecore )
set_target_properties(kofficeui PROPERTIES VERSION 3.0.0 SOVERSION 3 )
set_target_properties(kofficeui PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kofficeui )
......
......@@ -25,7 +25,7 @@ kde4_add_library(kopainter SHARED ${kopainter_LIB_SRCS})
target_link_libraries(kopainter ${KDE4_KDECORE_LIBS} kofficeui )
set_target_properties(kopainter PROPERTIES VERSION 2.0.0 SOVERSION 2 )
set_target_properties(kopainter PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kopainter )
......
......@@ -21,7 +21,7 @@ kde4_add_library(kopalette SHARED ${kopalette_LIB_SRCS})
target_link_libraries(kopalette ${KDE4_KDECORE_LIBS} kofficecore )
set_target_properties(kopalette PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kopalette PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kopalette )
......
......@@ -46,7 +46,7 @@ kde4_add_library(koproperty SHARED ${koproperty_LIB_SRCS})
target_link_libraries(koproperty ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} )
set_target_properties(koproperty PROPERTIES VERSION 3.0.0 SOVERSION 3 )
set_target_properties(koproperty PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} koproperty )
......
......@@ -89,7 +89,7 @@ kde4_add_library(kotext SHARED ${kotext_LIB_SRCS})
target_link_libraries(kotext ${KDE4_KSPELL2_LIBS} kutils kofficecore kofficeui )
set_target_properties(kotext PROPERTIES VERSION 3.0.0 SOVERSION 3 )
set_target_properties(kotext PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kotext )
......
......@@ -29,7 +29,7 @@ kde4_add_library(krossapi SHARED ${krossapi_LIB_SRCS})
target_link_libraries(krossapi ${KDE4_KDECORE_LIBS} )
set_target_properties(krossapi PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krossapi PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krossapi )
......
......@@ -20,7 +20,7 @@ kde4_add_library(krossmain SHARED ${krossmain_LIB_SRCS})
target_link_libraries(krossmain ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KNEWSTUFF_LIBS} krossapi )
set_target_properties(krossmain PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(krossmain PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} krossmain )
......
......@@ -13,7 +13,7 @@ kde4_add_library(kwmf SHARED ${kwmf_LIB_SRCS})
target_link_libraries(kwmf ${KDE4_KDECORE_LIBS} )
set_target_properties(kwmf PROPERTIES VERSION 1.0.0 SOVERSION 1 )
set_target_properties(kwmf PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kwmf )
......@@ -32,7 +32,7 @@ kde4_add_library(kowmf SHARED ${kowmf_LIB_SRCS})
target_link_libraries(kowmf ${KDE4_KDECORE_LIBS} )
set_target_properties(kowmf PROPERTIES VERSION 2.0.0 SOVERSION 2 )
set_target_properties(kowmf PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kowmf )
......
......@@ -21,7 +21,7 @@ kde4_add_library(kstore SHARED ${kstore_LIB_SRCS})
target_link_libraries(kstore ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} )
set_target_properties(kstore PROPERTIES VERSION 3.0.0 SOVERSION 3 )
set_target_properties(kstore PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install_targets(${LIB_INSTALL_DIR} kstore )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment