Skip to content

Commit

Permalink
Merge pull request LMMS#2803 from jasp00/opt-dll
Browse files Browse the repository at this point in the history
Make some libraries optional in Windows installation
  • Loading branch information
jasp00 committed May 30, 2016
2 parents ca46566 + e58fa7f commit d1ef5c3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ ENDIF(WANT_JACK)
PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)


# check for FLTK
FIND_PACKAGE(FLTK)


# check for Fluidsynth
IF(WANT_SF2)
PKG_CHECK_MODULES(FLUIDSYNTH fluidsynth>=1.0.7)
Expand Down
2 changes: 0 additions & 2 deletions plugins/zynaddsubfx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ IF(MINGW_PREFIX)
SET(FLTK_SKIP_FLUID TRUE)
ENDIF()

FIND_PACKAGE(FLTK)

IF(NOT FLTK_FOUND)
RETURN()
ENDIF()
Expand Down
30 changes: 25 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,8 @@ IF(LMMS_BUILD_WIN32)
"${MINGW_PREFIX}/bin/libvorbisfile-3.dll"
"${MINGW_PREFIX}/bin/libjpeg-9.dll"
"${MINGW_PREFIX}/bin/libogg-0.dll"
"${MINGW_PREFIX}/bin/libfltk.dll"
"${MINGW_PREFIX}/bin/libfluidsynth.dll"
"${MINGW_PREFIX}/bin/libfftw3f-3.dll"
"${MINGW_PREFIX}/bin/libFLAC-8.dll"
"${MINGW_PREFIX}/bin/libgig-6.dll"
"${MINGW_PREFIX}/bin/libportaudio-2.dll"
"${MINGW_PREFIX}/lib/libsoundio.dll"
"${MINGW_PREFIX}/bin/libpng16-16.dll"
"${MINGW_PREFIX}/bin/SDL.dll"
"${MINGW_PREFIX}/bin/libglib-2.0-0.dll"
Expand All @@ -204,6 +199,31 @@ IF(LMMS_BUILD_WIN32)
"${MINGW_PREFIX}/bin/libstdc++-6.dll"
DESTINATION .)
ENDIF()
IF(FLTK_FOUND)
INSTALL(FILES
"${MINGW_PREFIX}/bin/libfltk.dll"
DESTINATION .)
ENDIF()
IF(FLUIDSYNTH_FOUND)
INSTALL(FILES
"${MINGW_PREFIX}/bin/libfluidsynth.dll"
DESTINATION .)
ENDIF()
IF(GIG_FOUND)
INSTALL(FILES
"${MINGW_PREFIX}/bin/libgig-6.dll"
DESTINATION .)
ENDIF()
IF(PORTAUDIO_FOUND)
INSTALL(FILES
"${MINGW_PREFIX}/bin/libportaudio-2.dll"
DESTINATION .)
ENDIF()
IF(SOUNDIO_FOUND)
INSTALL(FILES
"${MINGW_PREFIX}/lib/libsoundio.dll"
DESTINATION .)
ENDIF()

ELSE(LMMS_BUILD_WIN32)
IF(NOT LMMS_BUILD_APPLE)
Expand Down

0 comments on commit d1ef5c3

Please sign in to comment.