Skip to content

Commit

Permalink
make LadspaUGen optional but ON by default
Browse files Browse the repository at this point in the history
Signed-off-by: Yvan Volochine <[email protected]>
  • Loading branch information
gusano committed Jun 5, 2019
1 parent 42a1bc6 commit 3f75fa9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ else()
endif()

option(AY "Build with AY ugens" ON)
option(LADSPA "Build with Ladspa ugen" ON)
option(QUARKS "Install plugins as quarks")
option(OSX_PACKAGE "Package dmg for Apple")
option(IN_PLACE_BUILD "Build and install in cmake build folder" ON)
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,17 @@ ambisonics) subproject.
* (default on linux `/usr/local`)
* `cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..`
+ Install in cmake build folder instead of `CMAKE_INSTALL_PREFIX`
* (OSX ONLY, default=ON)
* (macOS ONLY, default=ON)
* `cmake -DIN_PLACE_BUILD=ON`
+ Build the plugins as quarks
* (default 'OFF')
* `cmake -DQUARKS=ON ..`
+ Build supernova-plugins
* (default 'OFF')
* `cmake -DSUPERNOVA=ON ..`
+ Build Ladspa UGen
* (macOS AND LINUX ONLY, default=ON)
* `sc3-plugins/build/$ cmake -DLADSPA=ON ..`
+ Print all cmake options
* `sc3-plugins/build/$ cmake -L ..`

Expand Down
6 changes: 3 additions & 3 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ set(PLUGIN_DIRS_EXTRA
BetablockerUGens
ChaosUGens
DEINDUGens
LadspaUGen
MembraneUGens
NCAnalysisUGens
OteyPianoUGens
Expand Down Expand Up @@ -245,7 +244,8 @@ BUILD_PLUGIN(MembraneUGens "MembraneUGens/Membrane_shape.c;MembraneUGens/Membran
"" "MembraneUGens")

# LadspaUGen
if(NOT WIN32)
if(LADSPA AND NOT WIN32)
list(APPEND PLUGIN_DIRS_EXTRA LadspaUGen)
BUILD_PLUGIN(LadspaUGen "LadspaUGen/LadspaUGen.cpp;LadspaUGen/search.c" "${CMAKE_DL_LIBS}" "LadspaUGen")
add_executable(ladspalist LadspaUGen/ladspalist.c LadspaUGen/search.c)
target_link_libraries(ladspalist "${CMAKE_DL_LIBS}")
Expand Down Expand Up @@ -359,7 +359,7 @@ if (NOT APPLE)
DESTINATION ${INSTALL_DESTINATION})
endif()

if(NOT WIN32)
if(LADSPA AND NOT WIN32)
install(TARGETS ladspalist
DESTINATION ${INSTALL_DESTINATION_LADSPALIST})
endif()
Expand Down

0 comments on commit 3f75fa9

Please sign in to comment.