File rssguard-4.8.1-add_library_version.patch of Package rssguard
Index: rssguard-4.8.1/localization/CMakeLists.txt
===================================================================
--- rssguard-4.8.1.orig/localization/CMakeLists.txt
+++ rssguard-4.8.1/localization/CMakeLists.txt
@@ -8,7 +8,7 @@ if(UPDATE_TRANSLATIONS AND BUILD_WITH_QT
"${CMAKE_SOURCE_DIR}/src/librssguard*/*.h"
"${CMAKE_SOURCE_DIR}/src/librssguard*/*.ui")
- qt_add_lupdate(rssguard
+ qt_add_lupdate(rssguard-${APP_VERSION}
TS_FILES "${CMAKE_CURRENT_SOURCE_DIR}/rssguard_en.ts"
SOURCES ${ALL_SOURCES}
INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/src/librssguard"
@@ -21,7 +21,7 @@ FILE(GLOB TS_FILES ${CMAKE_CURRENT_SOUR
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}")
if(BUILD_WITH_QT6)
- qt_add_lrelease(rssguard
+ qt_add_lrelease(rssguard-${APP_VERSION}
TS_FILES ${TS_FILES}
QM_FILES_OUTPUT_VARIABLE QM_FILES
OPTIONS "-compress"
@@ -33,5 +33,5 @@ else()
)
add_custom_target(rssguard_lrelease DEPENDS ${QM_FILES})
- add_dependencies(rssguard rssguard_lrelease)
+ add_dependencies(rssguard-${APP_VERSION} rssguard_lrelease)
endif()
Index: rssguard-4.8.1/src/librssguard/CMakeLists.txt
===================================================================
--- rssguard-4.8.1.orig/src/librssguard/CMakeLists.txt
+++ rssguard-4.8.1/src/librssguard/CMakeLists.txt
@@ -503,11 +503,11 @@ if(WIN32)
list(APPEND SOURCES "${CMAKE_BINARY_DIR}/rssguard.rc")
endif()
-add_library(rssguard SHARED ${SOURCES} ${QM_FILES})
+add_library(rssguard-${APP_VERSION} SHARED ${SOURCES} ${QM_FILES})
# Bundle icons on some platforms which do not provide system-wide icon themes.
if(FORCE_BUNDLE_ICONS)
- target_compile_definitions(rssguard
+ target_compile_definitions(rssguard-${APP_VERSION}
PRIVATE
FORCE_BUNDLE_ICONS
)
@@ -515,7 +515,7 @@ if(FORCE_BUNDLE_ICONS)
message(STATUS "Forcibly bundling icon themes.")
endif()
-target_include_directories(rssguard
+target_include_directories(rssguard-${APP_VERSION}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/gui
@@ -531,24 +531,24 @@ target_include_directories(rssguard
)
if(SQLite3_FOUND)
- target_include_directories(rssguard AFTER
+ target_include_directories(rssguard-${APP_VERSION} AFTER
PRIVATE
${SQLite3_INCLUDE_DIRS}
)
- target_compile_definitions(rssguard
+ target_compile_definitions(rssguard-${APP_VERSION}
PRIVATE
SYSTEM_SQLITE3
)
- target_link_libraries(rssguard PRIVATE
+ target_link_libraries(rssguard-${APP_VERSION} PRIVATE
${SQLite3_LIBRARIES}
)
endif()
# Qt.
-target_link_libraries(rssguard PUBLIC
+target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Network
@@ -560,97 +560,97 @@ target_link_libraries(rssguard PUBLIC
)
if(QT_VERSION_MAJOR EQUAL 6)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::Core5Compat
)
endif()
if(WIN32)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::GuiPrivate
)
endif()
if(NO_LITE)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::WebEngineWidgets
)
endif()
if(WIN32 AND NOT BUILD_WITH_QT6)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::WinExtras
)
endif()
if(NOT OS2)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::Multimedia
)
endif()
if(ENABLE_MEDIAPLAYER_QTMULTIMEDIA)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::OpenGL
Qt${QT_VERSION_MAJOR}::MultimediaWidgets
)
elseif(ENABLE_MEDIAPLAYER_LIBMPV)
if(MEDIAPLAYER_FORCE_OPENGL)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::OpenGL
)
if(BUILD_WITH_QT6)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::OpenGLWidgets
)
endif()
endif()
- target_include_directories(rssguard AFTER
+ target_include_directories(rssguard-${APP_VERSION} AFTER
PRIVATE
${LibMPV_INCLUDE_DIRS}
)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
${LibMPV_LIBRARIES}
)
endif()
if(UNIX AND NOT APPLE AND NOT ANDROID)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
Qt${QT_VERSION_MAJOR}::DBus
)
endif()
if(APPLE)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
"-framework AppKit"
)
elseif(WIN32)
- target_link_libraries(rssguard PUBLIC
+ target_link_libraries(rssguard-${APP_VERSION} PUBLIC
shell32
odbc32
)
endif()
if((WIN32 AND NOT BUILD_MSYS2) OR OS2)
- install(TARGETS rssguard DESTINATION .)
+ install(TARGETS rssguard-${APP_VERSION} DESTINATION .)
set(HEADERS_FOLDER "include/librssguard")
elseif((MINGW AND BUILD_MSYS2) OR (UNIX AND NOT APPLE AND NOT ANDROID))
include (GNUInstallDirs)
- install(TARGETS rssguard
+ install(TARGETS rssguard-${APP_VERSION}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
set(HEADERS_FOLDER "${CMAKE_INSTALL_INCLUDEDIR}/librssguard")
elseif(APPLE)
- install(TARGETS rssguard DESTINATION Contents/MacOS)
+ install(TARGETS rssguard-${APP_VERSION} DESTINATION Contents/MacOS)
set(HEADERS_FOLDER "Contents/Resources/Include")
endif()
# Add specific definitions.
-target_compile_definitions(rssguard
+target_compile_definitions(rssguard-${APP_VERSION}
PRIVATE
RSSGUARD_DLLSPEC=Q_DECL_EXPORT
RSSGUARD_LIBDIR="${CMAKE_INSTALL_LIBDIR}"
Index: rssguard-4.8.1/src/rssguard/CMakeLists.txt
===================================================================
--- rssguard-4.8.1.orig/src/rssguard/CMakeLists.txt
+++ rssguard-4.8.1/src/rssguard/CMakeLists.txt
@@ -21,7 +21,7 @@ target_link_libraries(app PUBLIC
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
Qt${QT_VERSION_MAJOR}::Widgets
- rssguard
+ rssguard-${APP_VERSION}
)
if(QT_VERSION_MAJOR EQUAL 6)
Index: rssguard-4.8.1/src/cmake_plugins.cmake
===================================================================
--- rssguard-4.8.1.orig/src/cmake_plugins.cmake
+++ rssguard-4.8.1/src/cmake_plugins.cmake
@@ -15,7 +15,7 @@ function(prepare_rssguard_plugin plugin_
add_library(${PLUGIN_TARGET} SHARED ${SOURCES} ${QM_FILES})
target_link_libraries(${plugin_target_name} PUBLIC
- rssguard
+ rssguard-${APP_VERSION}
)
target_compile_definitions(${plugin_target_name}