Skip to content

Commit 98df066

Browse files
authored
Merge pull request #146 from florian-grond/master
added HOAUgens
2 parents 6983e2d + 55cd622 commit 98df066

File tree

202 files changed

+210378
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+210378
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ option(NOVA_SIMD "Build VBAP with nova-simd support." ON)
5454
option(CPP11 "Build with c++11." ON)
5555
option(NATIVE "Optimize for this specific machine." OFF)
5656
option(SYSTEM_STK "Use STK libraries from system" OFF)
57-
57+
option(HOA_UGENS "Build with HOAUGens. Cannot be built on Windows or on embedded linux systems." OFF)
5858
option(NOVA_DISK_IO "Build with Nova's DiskIO UGens. Requires boost source tree, break warranty & eats your children." OFF)
5959

6060
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Copy the `SC3plugins` folder to your Extensions folder (evaluate `Platform.userE
7272

7373
NOTE: on macOS, if you want to install into `CMAKE_INSTALL_PREFIX`, you have to specify it by disabling the `IN_PLACE_BUILD` cmake option which defaults to ON (see below).
7474

75+
**Note for SuperCollider < 3.9.1** The Supernova server on macOS and Windows incorrectly searches for plugins in the `/Extensions/plugins` directory. The scsynth server correctly searches for plugins in `/Extensions`. If Supernova is unable to find the sc3-plugins, make sure that they are located in `/Extensions/plugins`.
76+
7577
### Cmake Options
7678

7779
+ Set install target

source/CMakeLists.txt

100644100755
Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ macro(BUILD_PLUGIN PLUGIN_NAME PLUGIN_SOURCES PLUGIN_LIBS PLUGIN_DIR)
7777

7878
endmacro()
7979

80-
8180
#-----------------------
8281
# plugins without extras
8382
#-----------------------
@@ -166,6 +165,16 @@ else()
166165
set(INSTALL_DESTINATION_DISTRO "SC3plugins")
167166
endif()
168167

168+
# HOAUGens
169+
if (HOA_UGENS)
170+
list(APPEND PLUGIN_DIRS HOAUGens)
171+
if (CMAKE_COMPILER_IS_CLANG)
172+
file(GLOB HOAUGensSources HOAUGens/*cpp)
173+
foreach(HOAUGensSourceFile ${HOAUGensSources})
174+
set_source_files_properties("${HOAUGensSourceFile}" PROPERTIES COMPILE_FLAGS "-fbracket-depth=4096")
175+
endforeach(HOAUGensSourceFile)
176+
endif()
177+
endif()
169178

170179
foreach(DIR ${PLUGIN_DIRS})
171180
FIND_AND_BUILD_PLUGINS(${DIR})
@@ -218,17 +227,17 @@ BUILD_PLUGIN(complexRes
218227
"" "DEINDUGens")
219228
include_directories(DEINDUGens/include)
220229
BUILD_PLUGIN(JPverb
221-
"DEINDUGens/JPverbRaw.cpp"
230+
"DEINDUGens/JPverbRaw.cpp"
222231
"" "DEINDUGens")
223-
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS SC_FAUST_PREFIX="\"\"")
224-
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS mydsp=JPVERB)
225-
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS NDEBUG)
232+
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS SC_FAUST_PREFIX="\"\"")
233+
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS mydsp=JPVERB)
234+
set_property(TARGET JPverb APPEND PROPERTY COMPILE_DEFINITIONS NDEBUG)
226235
BUILD_PLUGIN(Greyhole
227-
"DEINDUGens/GreyholeRaw.cpp"
236+
"DEINDUGens/GreyholeRaw.cpp"
228237
"" "DEINDUGens")
229-
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS SC_FAUST_PREFIX="\"\"")
230-
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS mydsp=GREYHOLE)
231-
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS NDEBUG)
238+
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS SC_FAUST_PREFIX="\"\"")
239+
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS mydsp=GREYHOLE)
240+
set_property(TARGET Greyhole APPEND PROPERTY COMPILE_DEFINITIONS NDEBUG)
232241

233242
# MembraneUGens
234243
BUILD_PLUGIN(MembraneUGens "MembraneUGens/Membrane_shape.c;MembraneUGens/Membrane.cpp"
@@ -244,7 +253,7 @@ endif()
244253
# OteyPianoUGens
245254
BUILD_PLUGIN(OteyPianoUGens "OteyPianoUGens/OteyPiano.cpp;OteyPianoUGens/dwgs.cpp;OteyPianoUGens/filter.cpp;OteyPianoUGens/hammer.cpp;OteyPianoUGens/reverb.cpp"
246255
"" "OteyPianoUGens")
247-
256+
248257
# PitchDetectionUGens
249258
file(GLOB PitchDetectionSources PitchDetection/*cpp)
250259

0 commit comments

Comments
 (0)