Build with JUCE 7.0.6

This commit is contained in:
Nikolai Rodionov 2023-09-18 14:59:21 +02:00
parent 3c4baf43da
commit ee5dc2ada3
No known key found for this signature in database
GPG Key ID: 906851F91B1DA3EF
2 changed files with 24 additions and 24 deletions

View File

@ -7,7 +7,7 @@
# information can be found in the CMake docs. # information can be found in the CMake docs.
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
set (CMAKE_CXX_STANDARD 20)
if (WIN32) if (WIN32)
#set (CMAKE_GENERATOR_TOOLSET ClangCL) #set (CMAKE_GENERATOR_TOOLSET ClangCL)
@ -22,7 +22,7 @@ if (APPLE)
set (CMAKE_OSX_DEPLOYMENT_TARGET "10.10" CACHE INTERNAL "") set (CMAKE_OSX_DEPLOYMENT_TARGET "10.10" CACHE INTERNAL "")
if (UniversalBinary) if (UniversalBinary)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "") set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE INTERNAL "")
#set(CMAKE_OSX_ARCHITECTURES arm64 x86_64) #set(CMAKE_OSX_ARCHITECTURES arm64 x86_64)
endif() endif()
endif() endif()
@ -54,7 +54,7 @@ set(BUILDVERSION 112)
set(CMAKE_XCODE_GENERATE_SCHEME OFF) set(CMAKE_XCODE_GENERATE_SCHEME OFF)
# No ZERO_CHECK target (it helps bust cache for cmake) # No ZERO_CHECK target (it helps bust cache for cmake)
set(CMAKE_SUPPRESS_REGENERATION true) set(CMAKE_SUPPRESS_REGENERATION true)
# prevent install all # prevent install all
#set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true) #set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true)
@ -99,7 +99,7 @@ endif()
if (AAX_SDK_PATH) if (AAX_SDK_PATH)
juce_set_aax_sdk_path (${AAX_SDK_PATH}) juce_set_aax_sdk_path (${AAX_SDK_PATH})
if (APPLE OR (NOT ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32"))) if (APPLE OR (NOT ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32")))
list (APPEND AaxFormatsToBuild AAX) list (APPEND AaxFormatsToBuild AAX)
endif() endif()
@ -142,7 +142,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
set (vst3cats Instrument Network) set (vst3cats Instrument Network)
set (vst2cat "kPlugCategSynth") set (vst2cat "kPlugCategSynth")
else() else()
set (vst3cats Fx Network) set (vst3cats Fx Network)
set (vst2cat "kPlugCategEffect") set (vst2cat "kPlugCategEffect")
endif() endif()
@ -154,7 +154,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
COMPANY_NAME "Sonosaurus" COMPANY_NAME "Sonosaurus"
BUNDLE_ID "com.sonosaurus.paulxstretch" BUNDLE_ID "com.sonosaurus.paulxstretch"
MICROPHONE_PERMISSION_ENABLED TRUE MICROPHONE_PERMISSION_ENABLED TRUE
ICON_BIG "images/paulxstretch_icon_1024_rounded.png" ICON_BIG "images/paulxstretch_icon_1024_rounded.png"
ICON_SMALL "images/paulxstretch_icon_256_rounded.png" ICON_SMALL "images/paulxstretch_icon_256_rounded.png"
NEEDS_WEB_BROWSER FALSE NEEDS_WEB_BROWSER FALSE
@ -162,15 +162,15 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
VST3_CATEGORIES "${vst3cats}" VST3_CATEGORIES "${vst3cats}"
AAX_CATEGORY "AAX_EPlugInCategory_Effect" AAX_CATEGORY "AAX_EPlugInCategory_Effect"
# mac settings # mac settings
HARDENED_RUNTIME_ENABLED TRUE HARDENED_RUNTIME_ENABLED TRUE
HARDENED_RUNTIME_OPTIONS "com.apple.security.device.audio-input" HARDENED_RUNTIME_OPTIONS "com.apple.security.device.audio-input"
PLIST_TO_MERGE "${MacPList}" PLIST_TO_MERGE "${MacPList}"
AU_MAIN_TYPE "kAudioUnitType_MusicEffect" AU_MAIN_TYPE "kAudioUnitType_MusicEffect"
COPY_PLUGIN_AFTER_BUILD FALSE # Set to TRUE to auto-install COPY_PLUGIN_AFTER_BUILD FALSE # Set to TRUE to auto-install
# other settings... # other settings...
PLUGIN_MANUFACTURER_CODE Sono PLUGIN_MANUFACTURER_CODE Sono
PLUGIN_CODE ${plugincode} PLUGIN_CODE ${plugincode}
@ -337,8 +337,8 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
Source/pffft/pffft.c Source/pffft/pffft.c
) )
target_sources("${target_name}" PRIVATE target_sources("${target_name}" PRIVATE
${SourceFiles} ${SourceFiles}
) )
# No, we don't want our source buried in extra nested folders # No, we don't want our source buried in extra nested folders
@ -355,7 +355,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
# INTERFACE # INTERFACE
# $<TARGET_PROPERTY:"${target_name}",INCLUDE_DIRECTORIES>) # $<TARGET_PROPERTY:"${target_name}",INCLUDE_DIRECTORIES>)
target_include_directories("${target_name}" target_include_directories("${target_name}"
PUBLIC PUBLIC
@ -365,7 +365,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
# Require at least C++17 to build `my_target` # Require at least C++17 to build `my_target`
target_compile_features("${target_name}" PRIVATE cxx_std_17) target_compile_features("${target_name}" PRIVATE cxx_std_17)
# This cleans up the folder organization, especially on Xcode. # This cleans up the folder organization, especially on Xcode.
# It tucks the Plugin varieties into a "Targets" folder and generate an Xcode Scheme manually # It tucks the Plugin varieties into a "Targets" folder and generate an Xcode Scheme manually
@ -378,17 +378,17 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
set_target_properties(${target_name}_${target} PROPERTIES set_target_properties(${target_name}_${target} PROPERTIES
# Tuck the actual plugin targets into a folder where they won't bother us # Tuck the actual plugin targets into a folder where they won't bother us
FOLDER "Targets" FOLDER "Targets"
# MacOS only: Sets the default executable that Xcode will open on build # MacOS only: Sets the default executable that Xcode will open on build
# For this exact path to to work, manually build the AudioPluginHost.xcodeproj in the JUCE subdir # For this exact path to to work, manually build the AudioPluginHost.xcodeproj in the JUCE subdir
# XCODE_SCHEME_EXECUTABLE "${CMAKE_CURRENT_SOURCE_DIR}/deps/juce/extras/AudioPluginHost/Builds/MacOSX/build/Debug/AudioPluginHost.app" # XCODE_SCHEME_EXECUTABLE "${CMAKE_CURRENT_SOURCE_DIR}/deps/juce/extras/AudioPluginHost/Builds/MacOSX/build/Debug/AudioPluginHost.app"
# Let us build the target in Xcode # Let us build the target in Xcode
XCODE_GENERATE_SCHEME ON) XCODE_GENERATE_SCHEME ON)
endif() endif()
endforeach() endforeach()
target_compile_definitions("${target_name}" target_compile_definitions("${target_name}"
PUBLIC PUBLIC
JUCE_WEB_BROWSER=0 JUCE_WEB_BROWSER=0
@ -447,7 +447,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
-march=native -march=native
) )
endif() endif()
if (TARGET ${target_name}_Standalone) if (TARGET ${target_name}_Standalone)
# make linux executable all lower case # make linux executable all lower case
string(TOLOWER ${target_name} tmptargname) string(TOLOWER ${target_name} tmptargname)
@ -465,13 +465,13 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
${LIB_PATHS} ${LIB_PATHS}
) )
target_link_libraries("${target_name}" target_link_libraries("${target_name}"
PRIVATE PRIVATE
juce::juce_audio_utils juce::juce_audio_utils
juce::juce_dsp juce::juce_dsp
juce::juce_audio_plugin_client juce::juce_audio_plugin_client
juce::juce_cryptography juce::juce_cryptography
${target_name}_PSData ${target_name}_PSData
${FFTW_DEPLIBS} ${FFTW_DEPLIBS}
@ -481,7 +481,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr
juce::juce_recommended_lto_flags juce::juce_recommended_lto_flags
# juce::juce_recommended_warning_flags # juce::juce_recommended_warning_flags
) )
endfunction() endfunction()
# most of the targets # most of the targets

@ -1 +1 @@
Subproject commit a4265bcc85488292504b6a298a4e243e688316fb Subproject commit 10bc7d4ddb82eab4796b1ce7d1d2dadd46552f27