qimgv/qimgv-nosharedlib.patch

19 lines
672 B
Diff

Index: qimgv-0.8.1/qimgv_libs/qimgv_player_mpv/CMakeLists.txt
===================================================================
--- qimgv-0.8.1.orig/qimgv_libs/qimgv_player_mpv/CMakeLists.txt
+++ qimgv-0.8.1/qimgv_libs/qimgv_player_mpv/CMakeLists.txt
@@ -10,7 +10,7 @@ find_package(Qt5Widgets REQUIRED)
include(GNUInstallDirs)
-add_library(qimgv_player_mpv SHARED
+add_library(qimgv_player_mpv STATIC
src/videoplayer.cpp
src/mpvwidget.cpp
src/videoplayermpv.cpp)
@@ -25,4 +25,3 @@ target_include_directories(qimgv_player_
add_definitions(-DQIMGV_PLAYER_MPV_LIBRARY)
-install(TARGETS qimgv_player_mpv LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})