From 4616a53eb2efd574fa169812fec9dfc42f6c7042 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 2 Jan 2011 23:40:43 +0100 Subject: [PATCH] ZynAddSubFX: fixed improved packaging of ZynAddSubFxCore library When packaging the ZynAddSubFxCore library (Windows builds), there's no need for including the DLL import library, so skip it. Furthermore make sure to strip the ZynAddSubFxCore library which decreases its size from 8 MB to about 1 MB. --- plugins/zynaddsubfx/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/zynaddsubfx/CMakeLists.txt b/plugins/zynaddsubfx/CMakeLists.txt index 93bde3bf9..9eee0f82c 100644 --- a/plugins/zynaddsubfx/CMakeLists.txt +++ b/plugins/zynaddsubfx/CMakeLists.txt @@ -78,7 +78,7 @@ ADD_LIBRARY(ZynAddSubFxCore SHARED LocalZynAddSubFx.cpp) TARGET_LINK_LIBRARIES(ZynAddSubFxCore ${ZASF_CORE_LIBS} ${FFTW3F_LIBRARIES} ${QT_LIBRARIES} -lz -lpthread) IF(LMMS_BUILD_WIN32) TARGET_LINK_LIBRARIES(ZynAddSubFxCore -lws2_32) - INSTALL(TARGETS ZynAddSubFxCore DESTINATION ${PLUGIN_DIR}) + INSTALL(TARGETS ZynAddSubFxCore RUNTIME DESTINATION ${PLUGIN_DIR}) ELSE(LMMS_BUILD_WIN32) INSTALL(TARGETS ZynAddSubFxCore LIBRARY DESTINATION ${PLUGIN_DIR}) ENDIF(LMMS_BUILD_WIN32) @@ -117,6 +117,7 @@ ENDIF(LMMS_BUILD_LINUX) IF(LMMS_BUILD_WIN32) + ADD_CUSTOM_COMMAND(TARGET ZynAddSubFxCore POST_BUILD COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/libZynAddSubFxCore.dll) ADD_CUSTOM_COMMAND(TARGET RemoteZynAddSubFx POST_BUILD COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/RemoteZynAddSubFx.exe) ENDIF(LMMS_BUILD_WIN32)