Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ add_subdirectory( "cmake-proxies/mod-nyq-bench" )
add_subdirectory( "cmake-proxies/mod-script-pipe" )

# Only need the sc4_1882 Ladspa plug-in on Windows and Mac
#if( CMAKE_SYSTEM_NAME MATCHES "Windows|Darwin" )
# add_subdirectory( "cmake-proxies/ladspa-plugins" )
#endif()
if( CMAKE_SYSTEM_NAME MATCHES "Windows|Darwin" )
add_subdirectory( "cmake-proxies/ladspa-plugins" )
endif()

# Uncomment what follows for symbol values.
#[[
Expand Down
2 changes: 1 addition & 1 deletion cmake-proxies/ladspa-plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ list( APPEND SOURCES
list( APPEND INCLUDES
PRIVATE
${_SRCDIR}
${topdir}/src/effects/ladspa
)

list( APPEND OPTIONS
PRIVATE
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-D_init=__attribute__\(\(constructor\)\)_${TARGET}_init>
$<$<BOOL:HAVE_LRINTF>:-DHAVE_LRINTF=1>
)

set_target_property_all( ${TARGET}
Expand Down
2 changes: 2 additions & 0 deletions cmake-proxies/ladspa-plugins/ladspa-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ typedef union {
} ls_pcast32;

// Sometimes it doesn't get defined, even though it eists and C99 is declared
#if !defined(HAVE_LRINTF)
long int lrintf (float x);
#endif

// 1.0 / ln(2)
#define LN2R 1.442695041f
Expand Down
Loading