Switched to full static release + enable lto for the docker release image
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
add_library(lmsartwork SHARED
|
||||
add_library(lmsartwork STATIC
|
||||
impl/ImageCache.cpp
|
||||
impl/ArtworkService.cpp
|
||||
)
|
||||
@@ -24,6 +24,3 @@ target_link_libraries(lmsartwork PUBLIC
|
||||
lmscore
|
||||
std::filesystem
|
||||
)
|
||||
|
||||
install(TARGETS lmsartwork DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
add_library(lmsauth SHARED
|
||||
add_library(lmsauth STATIC
|
||||
impl/AuthTokenService.cpp
|
||||
impl/AuthServiceBase.cpp
|
||||
impl/EnvService.cpp
|
||||
@@ -50,6 +50,3 @@ if (USE_PAM)
|
||||
target_include_directories(lmsauth PRIVATE ${PAM_INCLUDE_DIR})
|
||||
target_link_libraries(lmsauth PRIVATE ${PAM_LIBRARIES})
|
||||
endif (USE_PAM)
|
||||
|
||||
install(TARGETS lmsauth DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
add_library(lmsfeedback SHARED
|
||||
add_library(lmsfeedback STATIC
|
||||
impl/internal/InternalBackend.cpp
|
||||
impl/listenbrainz/FeedbacksParser.cpp
|
||||
impl/listenbrainz/FeedbacksSynchronizer.cpp
|
||||
@@ -25,5 +25,3 @@ target_link_libraries(lmsfeedback PRIVATE
|
||||
target_link_libraries(lmsfeedback PUBLIC
|
||||
lmsdatabase
|
||||
)
|
||||
|
||||
install(TARGETS lmsfeedback DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
add_library(lmsrecommendation SHARED
|
||||
add_library(lmsrecommendation STATIC
|
||||
impl/clusters/ClustersEngine.cpp
|
||||
impl/features/FeaturesEngineCache.cpp
|
||||
impl/features/FeaturesEngine.cpp
|
||||
@@ -25,6 +25,3 @@ target_link_libraries(lmsrecommendation PRIVATE
|
||||
lmssom
|
||||
std::filesystem
|
||||
)
|
||||
|
||||
install(TARGETS lmsrecommendation DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
add_library(lmsscanner SHARED
|
||||
add_library(lmsscanner STATIC
|
||||
impl/scanners/AudioFileScanner.cpp
|
||||
impl/scanners/ImageFileScanner.cpp
|
||||
impl/scanners/LyricsFileScanner.cpp
|
||||
@@ -43,6 +43,3 @@ target_link_libraries(lmsscanner PUBLIC
|
||||
std::filesystem
|
||||
Wt::Wt
|
||||
)
|
||||
|
||||
install(TARGETS lmsscanner DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
add_library(lmsscrobbling SHARED
|
||||
add_library(lmsscrobbling STATIC
|
||||
impl/internal/InternalBackend.cpp
|
||||
impl/listenbrainz/ListenBrainzBackend.cpp
|
||||
impl/listenbrainz/ListenTypes.cpp
|
||||
@@ -26,8 +26,6 @@ target_link_libraries(lmsscrobbling PUBLIC
|
||||
lmsdatabase
|
||||
)
|
||||
|
||||
install(TARGETS lmsscrobbling DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user