1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

Fix missing AU, VST, and Ladspa effects

This also prevents a link error if you specifically link against the
10.9 SDK or older.
This commit is contained in:
Leland Lucius 2020-02-21 10:16:17 -06:00
parent 3332c9451e
commit 26827bc5e5
2 changed files with 29 additions and 16 deletions

View File

@ -45,6 +45,9 @@ elseif( APPLE )
set( CMAKE_OSX_SYSROOT macosx CACHE INTERNAL "" ) set( CMAKE_OSX_SYSROOT macosx CACHE INTERNAL "" )
set( CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "" CACHE INTERNAL "" ) set( CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "" CACHE INTERNAL "" )
# This prevents a link error when building with the 10.9 or older SDKs
set( CMAKE_XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME OFF )
# Shouldn't cmake do this??? # Shouldn't cmake do this???
string( APPEND CMAKE_CXX_FLAGS " -stdlib=libc++" ) string( APPEND CMAKE_CXX_FLAGS " -stdlib=libc++" )
endif() endif()

View File

@ -11,6 +11,32 @@ add_executable( ${TARGET} )
def_vars() def_vars()
# Handle Audio Units option
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
cmd_option(
${_OPT}use_audio_units
"Use Audio Units plug-in support [on, off]"
ON
)
set( USE_AUDIO_UNITS ${${_OPT}use_audio_units} CACHE INTERNAL "" )
endif()
# Handle Ladspa option
cmd_option(
${_OPT}use_ladspa
"Use LADSPA plug-in support [on, off]"
ON
)
set( USE_LADSPA ${${_OPT}use_ladspa} CACHE INTERNAL "" )
# Handle VST option
cmd_option(
${_OPT}use_vst
"Use VST2 plug-in support [on, off]"
ON
)
set( USE_VST ${${_OPT}use_vst} CACHE INTERNAL "" )
# #
# #
# #
@ -1068,22 +1094,6 @@ if( CMAKE_VERSION VERSION_GREATER_EQUAL "3.16" AND NOT CCACHE_PROGRAM )
set( PRECOMP AudacityHeaders.h ) set( PRECOMP AudacityHeaders.h )
endif() endif()
# Handle Ladspa option
cmd_option(
${_OPT}use_ladspa
"Use LADSPA plug-in support [on, off]"
ON
)
set( USE_LADSPA ${${_OPT}use_ladspa} )
# Handle VST option
cmd_option(
${_OPT}use_vst
"Use VST2 plug-in support [on, off]"
ON
)
set( USE_VST ${${_OPT}use_vst} )
set( AUDACITY_NAME "Audacity" ) set( AUDACITY_NAME "Audacity" )
set( BUILDING_AUDACITY 1 ) set( BUILDING_AUDACITY 1 )
set( INSTALL_PREFIX "${_PREFIX}" ) set( INSTALL_PREFIX "${_PREFIX}" )