update XCode project from Projucer (e.g. for C++17, and to put VST SDKs on include path)

This commit is contained in:
Alex Birch 2019-06-22 22:59:28 +01:00
parent 9ee566b251
commit 06691aa744
No known key found for this signature in database
GPG Key ID: 305EB1F98D44ACBA
13 changed files with 2199 additions and 1498 deletions

View File

@ -15,6 +15,15 @@ if (APPLE)
project ("juicysfplugin" C CXX)
add_library (VST MODULE
"../../../../../../Applications/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp"
"../../JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp"
"PkgInfo"
)
set_source_files_properties ("PkgInfo" PROPERTIES MACOSX_PACKAGE_LOCATION .)
set_source_files_properties ("../../../../../../Applications/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
add_library (VST3 MODULE
"../../../../../../Applications/JUCE/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp"
"../../../../../../Applications/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST3.cpp"
@ -2805,12 +2814,99 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
execute_process (COMMAND uname -m OUTPUT_VARIABLE JUCE_ARCH_LABEL OUTPUT_STRIP_TRAILING_WHITESPACE)
target_include_directories (VST3 PRIVATE
target_include_directories (VST PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
target_compile_definitions (VST PRIVATE
"_DEBUG=1"
"DEBUG=1"
"JUCER_XCODE_MAC_F6D2F4CF=1"
"JUCE_APP_VERSION=1.0.0"
"JUCE_APP_VERSION_HEX=0x10000"
"JucePlugin_Build_VST=1"
"JucePlugin_Build_VST3=0"
"JucePlugin_Build_AU=0"
"JucePlugin_Build_AUv3=0"
"JucePlugin_Build_RTAS=0"
"JucePlugin_Build_AAX=0"
"JucePlugin_Build_Standalone=0"
"JucePlugin_Build_Unity=0"
)
target_compile_options (VST PRIVATE
-mmacosx-version-min=10.11
-O0
-stdlib=libc++
)
set_target_properties (VST PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
CXX_EXTENSIONS OFF
XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME NO
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES YES
XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "$(PROJECT_DIR)/build/$(CONFIGURATION)"
XCODE_ATTRIBUTE_COPY_PHASE_STRIP NO
XCODE_ATTRIBUTE_DEPLOYMENT_LOCATION YES
XCODE_ATTRIBUTE_DSTROOT /
XCODE_ATTRIBUTE_GCC_DYNAMIC_NO_PIC NO
XCODE_ATTRIBUTE_GCC_VERSION com.apple.compilers.llvm.clang.1_0
XCODE_ATTRIBUTE_GENERATE_PKGINFO_FILE YES
XCODE_ATTRIBUTE_INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Debug-Info-VST.plist"
XCODE_ATTRIBUTE_INFOPLIST_PREPROCESS NO
XCODE_ATTRIBUTE_INSTALL_PATH "$(HOME)/Library/Audio/Plug-Ins/VST/"
XCODE_ATTRIBUTE_LIBRARY_STYLE Bundle
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER uk.co.birchlabs.juicysfplugin
XCODE_ATTRIBUTE_PRODUCT_NAME "juicysfplugin"
XCODE_ATTRIBUTE_USE_HEADERMAP NO
XCODE_ATTRIBUTE_WRAPPER_EXTENSION vst
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Debug-Info-VST.plist"
XCODE_ATTRIBUTE_PRODUCT_NAME "juicysfplugin"
BUNDLE TRUE
BUNDLE_EXTENSION vst
XCODE_ATTRIBUTE_MACH_O_TYPE "mh_bundle"
)
target_link_libraries (VST PRIVATE
SHARED_CODE
"-Llib"
"-lfluidsynth"
"-framework Accelerate"
"-framework AudioToolbox"
"-framework Carbon"
"-framework Cocoa"
"-framework CoreAudio"
"-framework CoreMIDI"
"-framework DiscRecording"
"-framework IOKit"
"-framework QuartzCore"
"-framework WebKit"
)
add_custom_command (TARGET VST POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory "$ENV{HOME}/Library/Audio/Plug-Ins/VST/juicysfplugin.vst"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/juicysfplugin.vst" "$ENV{HOME}/Library/Audio/Plug-Ins/VST/juicysfplugin.vst"
COMMENT "Copying \"juicysfplugin.vst\" to \"$ENV{HOME}/Library/Audio/Plug-Ins/VST/\""
)
target_include_directories (VST3 PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
@ -2888,10 +2984,13 @@ add_custom_command (TARGET VST3 POST_BUILD
target_include_directories (AU PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
@ -2931,10 +3030,13 @@ if (RC_COMPILER)
-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I "$(DEVELOPER_DIR)/Extras/CoreAudio/AudioUnits/AUPublic/AUBase"
-isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
-I "$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
-I "$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
-I "${PROJECT_SOURCE_DIR}/../../JuceLibraryCode"
-I "/Applications/JUCE/modules"
-I "${PROJECT_SOURCE_DIR}/../../include"
-I "${PROJECT_SOURCE_DIR}/../../modules"
-I "$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
-I "$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
-I "/Applications/JUCE/modules/juce_audio_plugin_client"
${AU_REZ_SOURCES}
-o ${AU_REZ_OUTPUT}
@ -2999,10 +3101,13 @@ add_custom_command (TARGET AU POST_BUILD
target_include_directories (STANDALONE_PLUGIN PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
@ -3066,10 +3171,13 @@ target_link_libraries (STANDALONE_PLUGIN PRIVATE
target_include_directories (SHARED_CODE PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
@ -3079,7 +3187,7 @@ target_compile_definitions (SHARED_CODE PRIVATE
"JUCER_XCODE_MAC_F6D2F4CF=1"
"JUCE_APP_VERSION=1.0.0"
"JUCE_APP_VERSION_HEX=0x10000"
"JucePlugin_Build_VST=0"
"JucePlugin_Build_VST=1"
"JucePlugin_Build_VST3=1"
"JucePlugin_Build_AU=1"
"JucePlugin_Build_AUv3=0"
@ -3141,8 +3249,93 @@ if (CMAKE_BUILD_TYPE STREQUAL Release)
execute_process (COMMAND uname -m OUTPUT_VARIABLE JUCE_ARCH_LABEL OUTPUT_STRIP_TRAILING_WHITESPACE)
target_include_directories (VST PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
"../../modules"
"/Applications/JUCE/modules/juce_audio_plugin_client"
)
target_compile_definitions (VST PRIVATE
"_NDEBUG=1"
"NDEBUG=1"
"JUCER_XCODE_MAC_F6D2F4CF=1"
"JUCE_APP_VERSION=1.0.0"
"JUCE_APP_VERSION_HEX=0x10000"
"JucePlugin_Build_VST=1"
"JucePlugin_Build_VST3=0"
"JucePlugin_Build_AU=0"
"JucePlugin_Build_AUv3=0"
"JucePlugin_Build_RTAS=0"
"JucePlugin_Build_AAX=0"
"JucePlugin_Build_Standalone=0"
"JucePlugin_Build_Unity=0"
)
target_compile_options (VST PRIVATE
-mmacosx-version-min=10.11
-O3
-flto
-stdlib=libc++
)
set_target_properties (VST PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
CXX_EXTENSIONS OFF
XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME NO
XCODE_ATTRIBUTE_COMBINE_HIDPI_IMAGES YES
XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "$(PROJECT_DIR)/build/$(CONFIGURATION)"
XCODE_ATTRIBUTE_DEAD_CODE_STRIPPING YES
XCODE_ATTRIBUTE_DEPLOYMENT_LOCATION YES
XCODE_ATTRIBUTE_DSTROOT /
XCODE_ATTRIBUTE_GCC_GENERATE_DEBUGGING_SYMBOLS NO
XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES
XCODE_ATTRIBUTE_GCC_VERSION com.apple.compilers.llvm.clang.1_0
XCODE_ATTRIBUTE_GENERATE_PKGINFO_FILE YES
XCODE_ATTRIBUTE_INFOPLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Release-Info-VST.plist"
XCODE_ATTRIBUTE_INFOPLIST_PREPROCESS NO
XCODE_ATTRIBUTE_INSTALL_PATH "$(HOME)/Library/Audio/Plug-Ins/VST/"
XCODE_ATTRIBUTE_LIBRARY_STYLE Bundle
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER uk.co.birchlabs.juicysfplugin
XCODE_ATTRIBUTE_PRODUCT_NAME "juicysfplugin"
XCODE_ATTRIBUTE_USE_HEADERMAP NO
XCODE_ATTRIBUTE_WRAPPER_EXTENSION vst
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Release-Info-VST.plist"
XCODE_ATTRIBUTE_PRODUCT_NAME "juicysfplugin"
BUNDLE TRUE
BUNDLE_EXTENSION vst
XCODE_ATTRIBUTE_MACH_O_TYPE "mh_bundle"
)
target_link_libraries (VST PRIVATE
SHARED_CODE
"-Llib"
"-lfluidsynth"
"-framework Accelerate"
"-framework AudioToolbox"
"-framework Carbon"
"-framework Cocoa"
"-framework CoreAudio"
"-framework CoreMIDI"
"-framework DiscRecording"
"-framework IOKit"
"-framework QuartzCore"
"-framework WebKit"
)
add_custom_command (TARGET VST POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory "$ENV{HOME}/Library/Audio/Plug-Ins/VST/juicysfplugin.vst"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/juicysfplugin.vst" "$ENV{HOME}/Library/Audio/Plug-Ins/VST/juicysfplugin.vst"
COMMENT "Copying \"juicysfplugin.vst\" to \"$ENV{HOME}/Library/Audio/Plug-Ins/VST/\""
)
target_include_directories (VST3 PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
@ -3226,6 +3419,7 @@ add_custom_command (TARGET VST3 POST_BUILD
target_include_directories (AU PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
@ -3270,6 +3464,7 @@ if (RC_COMPILER)
-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I "$(DEVELOPER_DIR)/Extras/CoreAudio/AudioUnits/AUPublic/AUBase"
-isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
-I "$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
-I "$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
-I "${PROJECT_SOURCE_DIR}/../../JuceLibraryCode"
-I "/Applications/JUCE/modules"
-I "${PROJECT_SOURCE_DIR}/../../include"
@ -3339,6 +3534,7 @@ add_custom_command (TARGET AU POST_BUILD
target_include_directories (STANDALONE_PLUGIN PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
@ -3408,6 +3604,7 @@ target_link_libraries (STANDALONE_PLUGIN PRIVATE
target_include_directories (SHARED_CODE PRIVATE
"$ENV{HOME}/SDKs/VST_SDK/VST3_SDK"
"$ENV{HOME}/SDKs/VST_SDK/VST2_SDK"
"../../JuceLibraryCode"
"/Applications/JUCE/modules"
"../../include"
@ -3421,7 +3618,7 @@ target_compile_definitions (SHARED_CODE PRIVATE
"JUCER_XCODE_MAC_F6D2F4CF=1"
"JUCE_APP_VERSION=1.0.0"
"JUCE_APP_VERSION_HEX=0x10000"
"JucePlugin_Build_VST=0"
"JucePlugin_Build_VST=1"
"JucePlugin_Build_VST3=1"
"JucePlugin_Build_AU=1"
"JucePlugin_Build_AUv3=0"
@ -3497,6 +3694,13 @@ pkg_search_module (WEBKIT2GTK-4.0 REQUIRED webkit2gtk-4.0)
pkg_search_module (GTK+-X11-3.0 REQUIRED gtk+-x11-3.0)
pkg_search_module (LIBCURL REQUIRED libcurl)
add_library (VST MODULE
"../../../../JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp"
"../../JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp"
)
set_source_files_properties ("../../../../JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_VST2.cpp" PROPERTIES HEADER_FILE_ONLY TRUE)
add_executable (STANDALONE_PLUGIN
"../../../../JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_Standalone.cpp"
"../../JuceLibraryCode/include_juce_audio_plugin_client_Standalone.cpp"
@ -6243,6 +6447,9 @@ set_source_files_properties ("../../../../../../Applications/JUCE/modules/juce_g
set_source_files_properties ("../../JuceLibraryCode/AppConfig.h" PROPERTIES HEADER_FILE_ONLY TRUE)
set_source_files_properties ("../../JuceLibraryCode/JuceHeader.h" PROPERTIES HEADER_FILE_ONLY TRUE)
set_target_properties (VST PROPERTIES PREFIX "")
set_target_properties (VST PROPERTIES SUFFIX ".so")
set_target_properties (STANDALONE_PLUGIN PROPERTIES SUFFIX "")
set_target_properties (SHARED_CODE PROPERTIES SUFFIX ".a")
@ -6256,6 +6463,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
execute_process (COMMAND uname -m OUTPUT_VARIABLE JUCE_ARCH_LABEL OUTPUT_STRIP_TRAILING_WHITESPACE)
include_directories (
"~/JUCE/modules/juce_audio_processors/format_types/VST3_SDK"
"../../JuceLibraryCode"
"~/JUCE/modules"
"../../include"
@ -6282,6 +6490,55 @@ find_library (RT rt
find_library (FLUIDSYNTH fluidsynth
)
set_target_properties (VST PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
CXX_EXTENSIONS OFF
)
target_compile_definitions (VST PRIVATE
LINUX=1
DEBUG=1
_DEBUG=1
JUCER_LINUX_MAKE_7346DA2A=1
JUCE_APP_VERSION=1.0.0
JUCE_APP_VERSION_HEX=0x10000
JucePlugin_Build_VST=1
JucePlugin_Build_VST3=0
JucePlugin_Build_AU=0
JucePlugin_Build_AUv3=0
JucePlugin_Build_RTAS=0
JucePlugin_Build_AAX=0
JucePlugin_Build_Standalone=0
JucePlugin_Build_Unity=0
)
target_compile_options (VST PRIVATE
-fPIC
-fvisibility=hidden
)
target_link_libraries (VST PRIVATE
SHARED_CODE
-march=native
-shared
-Wl,--no-undefined
${DL}
${PTHREAD}
${RT}
${FLUIDSYNTH}
${ALSA_LIBRARIES}
${FREETYPE2_LIBRARIES}
${X11_LIBRARIES}
${XEXT_LIBRARIES}
${XINERAMA_LIBRARIES}
${WEBKIT2GTK-4.0_LIBRARIES}
${GTK+-X11-3.0_LIBRARIES}
${LIBCURL_LIBRARIES}
)
add_dependencies (VST SHARED_CODE)
set_target_properties (STANDALONE_PLUGIN PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
@ -6337,7 +6594,7 @@ target_compile_definitions (SHARED_CODE PRIVATE
JUCER_LINUX_MAKE_7346DA2A=1
JUCE_APP_VERSION=1.0.0
JUCE_APP_VERSION_HEX=0x10000
JucePlugin_Build_VST=0
JucePlugin_Build_VST=1
JucePlugin_Build_VST3=0
JucePlugin_Build_AU=0
JucePlugin_Build_AUv3=0
@ -6364,7 +6621,7 @@ target_link_libraries (SHARED_CODE PRIVATE
${LIBCURL_LIBRARIES}
)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -pthread -g -ggdb -O0")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -pthread -fPIC -g -ggdb -O0")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS} ")
endif (CMAKE_BUILD_TYPE STREQUAL Debug)
@ -6378,6 +6635,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Release)
execute_process (COMMAND uname -m OUTPUT_VARIABLE JUCE_ARCH_LABEL OUTPUT_STRIP_TRAILING_WHITESPACE)
include_directories (
"~/JUCE/modules/juce_audio_processors/format_types/VST3_SDK"
"../../JuceLibraryCode"
"~/JUCE/modules"
"../../include"
@ -6404,6 +6662,55 @@ find_library (RT rt
find_library (FLUIDSYNTH fluidsynth
)
set_target_properties (VST PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
CXX_EXTENSIONS OFF
)
target_compile_definitions (VST PRIVATE
LINUX=1
NDEBUG=1
JUCER_LINUX_MAKE_7346DA2A=1
JUCE_APP_VERSION=1.0.0
JUCE_APP_VERSION_HEX=0x10000
JucePlugin_Build_VST=1
JucePlugin_Build_VST3=0
JucePlugin_Build_AU=0
JucePlugin_Build_AUv3=0
JucePlugin_Build_RTAS=0
JucePlugin_Build_AAX=0
JucePlugin_Build_Standalone=0
JucePlugin_Build_Unity=0
)
target_compile_options (VST PRIVATE
-fPIC
-fvisibility=hidden
)
target_link_libraries (VST PRIVATE
SHARED_CODE
-march=native
-shared
-Wl,--no-undefined
-fvisibility=hidden
${DL}
${PTHREAD}
${RT}
${FLUIDSYNTH}
${ALSA_LIBRARIES}
${FREETYPE2_LIBRARIES}
${X11_LIBRARIES}
${XEXT_LIBRARIES}
${XINERAMA_LIBRARIES}
${WEBKIT2GTK-4.0_LIBRARIES}
${GTK+-X11-3.0_LIBRARIES}
${LIBCURL_LIBRARIES}
)
add_dependencies (VST SHARED_CODE)
set_target_properties (STANDALONE_PLUGIN PROPERTIES
OUTPUT_NAME "juicysfplugin"
CXX_STANDARD 17
@ -6458,7 +6765,7 @@ target_compile_definitions (SHARED_CODE PRIVATE
JUCER_LINUX_MAKE_7346DA2A=1
JUCE_APP_VERSION=1.0.0
JUCE_APP_VERSION_HEX=0x10000
JucePlugin_Build_VST=0
JucePlugin_Build_VST=1
JucePlugin_Build_VST3=0
JucePlugin_Build_AU=0
JucePlugin_Build_AUv3=0
@ -6486,7 +6793,7 @@ target_link_libraries (SHARED_CODE PRIVATE
${LIBCURL_LIBRARIES}
)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -pthread -O3")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native -pthread -fPIC -O3")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS} ")
endif (CMAKE_BUILD_TYPE STREQUAL Release)

View File

@ -35,15 +35,20 @@ ifeq ($(CONFIG),Debug)
TARGET_ARCH := -march=native
endif
JUCE_CPPFLAGS := $(DEPFLAGS) -DLINUX=1 -DDEBUG=1 -D_DEBUG=1 -DJUCER_LINUX_MAKE_7346DA2A=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 $(shell pkg-config --cflags alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -pthread -I../../JuceLibraryCode -I$(HOME)/JUCE/modules -I../../include -I../../modules $(CPPFLAGS)
JUCE_CPPFLAGS := $(DEPFLAGS) -DLINUX=1 -DDEBUG=1 -D_DEBUG=1 -DJUCER_LINUX_MAKE_7346DA2A=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 $(shell pkg-config --cflags alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -pthread -I$(HOME)/JUCE/modules/juce_audio_processors/format_types/VST3_SDK -I../../JuceLibraryCode -I$(HOME)/JUCE/modules -I../../include -I../../modules $(CPPFLAGS)
JUCE_CPPFLAGS_VST := -DJucePlugin_Build_VST=1 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0
JUCE_CFLAGS_VST := -fPIC -fvisibility=hidden
JUCE_LDFLAGS_VST := -shared -Wl,--no-undefined
JUCE_TARGET_VST := juicysfplugin.so
JUCE_CPPFLAGS_STANDALONE_PLUGIN := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0
JUCE_TARGET_STANDALONE_PLUGIN := juicysfplugin
JUCE_CPPFLAGS_SHARED_CODE := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0 -DJUCE_SHARED_CODE=1
JUCE_CPPFLAGS_SHARED_CODE := -DJucePlugin_Build_VST=1 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0 -DJUCE_SHARED_CODE=1
JUCE_TARGET_SHARED_CODE := juicysfplugin.a
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -g -ggdb -O0 $(CFLAGS)
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -fPIC -g -ggdb -O0 $(CFLAGS)
JUCE_CXXFLAGS += $(JUCE_CFLAGS) -std=c++17 $(CXXFLAGS)
JUCE_LDFLAGS += $(TARGET_ARCH) -L$(JUCE_BINDIR) -L$(JUCE_LIBDIR) $(shell pkg-config --libs alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -ldl -lpthread -lrt -lfluidsynth $(LDFLAGS)
@ -60,15 +65,20 @@ ifeq ($(CONFIG),Release)
TARGET_ARCH := -march=native
endif
JUCE_CPPFLAGS := $(DEPFLAGS) -DLINUX=1 -DNDEBUG=1 -DJUCER_LINUX_MAKE_7346DA2A=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 $(shell pkg-config --cflags alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -pthread -I../../JuceLibraryCode -I$(HOME)/JUCE/modules -I../../include -I../../modules $(CPPFLAGS)
JUCE_CPPFLAGS := $(DEPFLAGS) -DLINUX=1 -DNDEBUG=1 -DJUCER_LINUX_MAKE_7346DA2A=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000 $(shell pkg-config --cflags alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -pthread -I$(HOME)/JUCE/modules/juce_audio_processors/format_types/VST3_SDK -I../../JuceLibraryCode -I$(HOME)/JUCE/modules -I../../include -I../../modules $(CPPFLAGS)
JUCE_CPPFLAGS_VST := -DJucePlugin_Build_VST=1 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0
JUCE_CFLAGS_VST := -fPIC -fvisibility=hidden
JUCE_LDFLAGS_VST := -shared -Wl,--no-undefined
JUCE_TARGET_VST := juicysfplugin.so
JUCE_CPPFLAGS_STANDALONE_PLUGIN := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0
JUCE_TARGET_STANDALONE_PLUGIN := juicysfplugin
JUCE_CPPFLAGS_SHARED_CODE := -DJucePlugin_Build_VST=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0 -DJUCE_SHARED_CODE=1
JUCE_CPPFLAGS_SHARED_CODE := -DJucePlugin_Build_VST=1 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_Standalone=1 -DJucePlugin_Build_Unity=0 -DJUCE_SHARED_CODE=1
JUCE_TARGET_SHARED_CODE := juicysfplugin.a
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -O3 $(CFLAGS)
JUCE_CFLAGS += $(JUCE_CPPFLAGS) $(TARGET_ARCH) -fPIC -O3 $(CFLAGS)
JUCE_CXXFLAGS += $(JUCE_CFLAGS) -std=c++17 $(CXXFLAGS)
JUCE_LDFLAGS += $(TARGET_ARCH) -L$(JUCE_BINDIR) -L$(JUCE_LIBDIR) $(shell pkg-config --libs alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl) -fvisibility=hidden -ldl -lpthread -lrt -lfluidsynth $(LDFLAGS)
@ -77,6 +87,9 @@ endif
OBJECTS_ALL := \
OBJECTS_VST := \
$(JUCE_OBJDIR)/include_juce_audio_plugin_client_VST2_dd551e08.o \
OBJECTS_STANDALONE_PLUGIN := \
$(JUCE_OBJDIR)/include_juce_audio_plugin_client_Standalone_1a871192.o \
@ -107,13 +120,23 @@ OBJECTS_SHARED_CODE := \
$(JUCE_OBJDIR)/include_juce_gui_basics_e3f79785.o \
$(JUCE_OBJDIR)/include_juce_gui_extra_6dee1c1a.o \
.PHONY: clean all strip Standalone
.PHONY: clean all strip VST Standalone
all : Standalone
all : VST Standalone
VST : $(JUCE_OUTDIR)/$(JUCE_TARGET_VST)
Standalone : $(JUCE_OUTDIR)/$(JUCE_TARGET_STANDALONE_PLUGIN)
$(JUCE_OUTDIR)/$(JUCE_TARGET_VST) : $(OBJECTS_VST) $(RESOURCES) $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE)
@command -v pkg-config >/dev/null 2>&1 || { echo >&2 "pkg-config not installed. Please, install it."; exit 1; }
@pkg-config --print-errors alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl
@echo Linking "juicysfplugin - VST"
-$(V_AT)mkdir -p $(JUCE_BINDIR)
-$(V_AT)mkdir -p $(JUCE_LIBDIR)
-$(V_AT)mkdir -p $(JUCE_OUTDIR)
$(V_AT)$(CXX) -o $(JUCE_OUTDIR)/$(JUCE_TARGET_VST) $(OBJECTS_VST) $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE) $(JUCE_LDFLAGS) $(JUCE_LDFLAGS_VST) $(RESOURCES) $(TARGET_ARCH)
$(JUCE_OUTDIR)/$(JUCE_TARGET_STANDALONE_PLUGIN) : $(OBJECTS_STANDALONE_PLUGIN) $(RESOURCES) $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE)
@command -v pkg-config >/dev/null 2>&1 || { echo >&2 "pkg-config not installed. Please, install it."; exit 1; }
@pkg-config --print-errors alsa freetype2 x11 xext xinerama webkit2gtk-4.0 gtk+-x11-3.0 libcurl
@ -132,6 +155,11 @@ $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE) : $(OBJECTS_SHARED_CODE) $(RESOURCES)
-$(V_AT)mkdir -p $(JUCE_OUTDIR)
$(V_AT)$(AR) -rcs $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE) $(OBJECTS_SHARED_CODE)
$(JUCE_OBJDIR)/include_juce_audio_plugin_client_VST2_dd551e08.o: ../../JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp
-$(V_AT)mkdir -p $(JUCE_OBJDIR)
@echo "Compiling include_juce_audio_plugin_client_VST2.cpp"
$(V_AT)$(CXX) $(JUCE_CXXFLAGS) $(JUCE_CPPFLAGS_VST) $(JUCE_CFLAGS_VST) -o "$@" -c "$<"
$(JUCE_OBJDIR)/include_juce_audio_plugin_client_Standalone_1a871192.o: ../../JuceLibraryCode/include_juce_audio_plugin_client_Standalone.cpp
-$(V_AT)mkdir -p $(JUCE_OBJDIR)
@echo "Compiling include_juce_audio_plugin_client_Standalone.cpp"
@ -270,5 +298,6 @@ strip:
@echo Stripping juicysfplugin
-$(V_AT)$(STRIP) --strip-unneeded $(JUCE_OUTDIR)/$(TARGET)
-include $(OBJECTS_VST:%.o=%.d)
-include $(OBJECTS_STANDALONE_PLUGIN:%.o=%.d)
-include $(OBJECTS_SHARED_CODE:%.o=%.d)

View File

@ -1,29 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist>
<dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>uk.co.birchlabs.juicysfplugin</string>
<key>CFBundleName</key>
<string>juicysfplugin</string>
<key>CFBundleDisplayName</key>
<string>juicysfplugin</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>Juicy</string>
<key>CFBundleIdentifier</key>
<string>uk.co.birchlabs.juicysfplugin</string>
<key>CFBundleName</key>
<string>juicysfplugin</string>
<key>CFBundleDisplayName</key>
<string>juicysfplugin</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5655603931BCCC6D56A82E3D"
BuildableName = "juicysfplugin - All"
BlueprintName = "juicysfplugin - All"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5655603931BCCC6D56A82E3D"
BuildableName = "juicysfplugin - All"
BlueprintName = "juicysfplugin - All"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5655603931BCCC6D56A82E3D"
BuildableName = "juicysfplugin - All"
BlueprintName = "juicysfplugin - All"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "146121DEAF4D97C27E67B85E"
BuildableName = "libjuicysfplugin.a"
BlueprintName = "juicysfplugin - Shared Code"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "146121DEAF4D97C27E67B85E"
BuildableName = "libjuicysfplugin.a"
BlueprintName = "juicysfplugin - Shared Code"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "146121DEAF4D97C27E67B85E"
BuildableName = "libjuicysfplugin.a"
BlueprintName = "juicysfplugin - Shared Code"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "24C399ED93EC47D5BEB26F76"
BuildableName = "juicysfplugin.app"
BlueprintName = "juicysfplugin - Standalone Plugin"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "24C399ED93EC47D5BEB26F76"
BuildableName = "juicysfplugin.app"
BlueprintName = "juicysfplugin - Standalone Plugin"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "24C399ED93EC47D5BEB26F76"
BuildableName = "juicysfplugin.app"
BlueprintName = "juicysfplugin - Standalone Plugin"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "24C399ED93EC47D5BEB26F76"
BuildableName = "juicysfplugin.app"
BlueprintName = "juicysfplugin - Standalone Plugin"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1AD8392A4CF90A2094A07A34"
BuildableName = "juicysfplugin.vst3"
BlueprintName = "juicysfplugin - VST3"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1AD8392A4CF90A2094A07A34"
BuildableName = "juicysfplugin.vst3"
BlueprintName = "juicysfplugin - VST3"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1AD8392A4CF90A2094A07A34"
BuildableName = "juicysfplugin.vst3"
BlueprintName = "juicysfplugin - VST3"
ReferencedContainer = "container:juicysfplugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -6,6 +6,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "juicysfplugin - Standalone
{81231CE9-96E4-09DA-53C7-714106FA6BD5} = {81231CE9-96E4-09DA-53C7-714106FA6BD5}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "juicysfplugin - VST", "juicysfplugin_VST.vcxproj", "{F47A6C45-0C65-BB36-F74E-BCCDF23F5ECA}"
ProjectSection(ProjectDependencies) = postProject
{81231CE9-96E4-09DA-53C7-714106FA6BD5} = {81231CE9-96E4-09DA-53C7-714106FA6BD5}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "juicysfplugin - VST3", "juicysfplugin_VST3.vcxproj", "{70A2C49A-5DF9-60C9-981B-D030ADE816BF}"
ProjectSection(ProjectDependencies) = postProject
{81231CE9-96E4-09DA-53C7-714106FA6BD5} = {81231CE9-96E4-09DA-53C7-714106FA6BD5}
@ -19,6 +24,10 @@ Global
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F47A6C45-0C65-BB36-F74E-BCCDF23F5ECA}.Debug|x64.ActiveCfg = Debug|x64
{F47A6C45-0C65-BB36-F74E-BCCDF23F5ECA}.Debug|x64.Build.0 = Debug|x64
{F47A6C45-0C65-BB36-F74E-BCCDF23F5ECA}.Release|x64.ActiveCfg = Release|x64
{F47A6C45-0C65-BB36-F74E-BCCDF23F5ECA}.Release|x64.Build.0 = Release|x64
{70A2C49A-5DF9-60C9-981B-D030ADE816BF}.Debug|x64.ActiveCfg = Debug|x64
{70A2C49A-5DF9-60C9-981B-D030ADE816BF}.Debug|x64.Build.0 = Debug|x64
{70A2C49A-5DF9-60C9-981B-D030ADE816BF}.Release|x64.ActiveCfg = Release|x64

View File

@ -64,7 +64,7 @@
<Optimization>Disabled</Optimization>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>C:\SDKs\VST_SDK\VST3_SDK;..\..\JuceLibraryCode;C:\JUCE\modules;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_WINDOWS;DEBUG;_DEBUG;JUCER_VS2017_78A5024=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;JucePlugin_Build_VST=0;JucePlugin_Build_VST3=1;JucePlugin_Build_AU=0;JucePlugin_Build_AUv3=0;JucePlugin_Build_RTAS=0;JucePlugin_Build_AAX=0;JucePlugin_Build_Standalone=1;JucePlugin_Build_Unity=0;JUCE_SHARED_CODE=1;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_WINDOWS;DEBUG;_DEBUG;JUCER_VS2017_78A5024=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;JucePlugin_Build_VST=1;JucePlugin_Build_VST3=1;JucePlugin_Build_AU=0;JucePlugin_Build_AUv3=0;JucePlugin_Build_RTAS=0;JucePlugin_Build_AAX=0;JucePlugin_Build_Standalone=1;JucePlugin_Build_Unity=0;JUCE_SHARED_CODE=1;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader/>
@ -104,7 +104,7 @@
<ClCompile>
<Optimization>Full</Optimization>
<AdditionalIncludeDirectories>C:\SDKs\VST_SDK\VST3_SDK;..\..\JuceLibraryCode;C:\JUCE\modules;..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_WINDOWS;NDEBUG;JUCER_VS2017_78A5024=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;JucePlugin_Build_VST=0;JucePlugin_Build_VST3=1;JucePlugin_Build_AU=0;JucePlugin_Build_AUv3=0;JucePlugin_Build_RTAS=0;JucePlugin_Build_AAX=0;JucePlugin_Build_Standalone=1;JucePlugin_Build_Unity=0;JUCE_SHARED_CODE=1;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_WINDOWS;NDEBUG;JUCER_VS2017_78A5024=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;JucePlugin_Build_VST=1;JucePlugin_Build_VST3=1;JucePlugin_Build_AU=0;JucePlugin_Build_AUv3=0;JucePlugin_Build_RTAS=0;JucePlugin_Build_AAX=0;JucePlugin_Build_Standalone=1;JucePlugin_Build_Unity=0;JUCE_SHARED_CODE=1;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader/>

View File

@ -297,7 +297,7 @@
// Audio plugin settings..
#ifndef JucePlugin_Build_VST
#define JucePlugin_Build_VST 0
#define JucePlugin_Build_VST 1
#endif
#ifndef JucePlugin_Build_VST3
#define JucePlugin_Build_VST3 1

View File

@ -62,33 +62,37 @@ void FluidSynthModel::initialise() {
// driver = new_fluid_audio_driver(settings, synth);
// changePreset(128, 13);
mod = new_fluid_mod();
// modulator's primary source controller and flags
// fluid_mod_src:
// https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/mod.h#L61
// fluid_mod_flags:
// https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/mod.h#L41
// diagrams showing what negative and concave mean:
// https://musescore.org/en/user/527826/blog/2016/05/23/volume-fluidsynth
// fluid_gen_type:
// https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/gen.h#L36
// https://github.com/FluidSynth/fluidsynth/blob/master/src/synth/fluid_gen.c#L27
fluid_mod_set_source1(mod,
FLUID_MOD_KEYPRESSURE,
FLUID_MOD_CC |
FLUID_MOD_POSITIVE |
FLUID_MOD_UNIPOLAR |
FLUID_MOD_CONCAVE);
// modulator's secondary source controller and flags
// MIDI CC 74
fluid_mod_set_source2(mod, 74, FLUID_MOD_CC);
// generator for filter cutoff
fluid_mod_set_dest(mod, GEN_FILTERFC);
fluid_mod_set_amount(mod, 13500.0f);
fluid_synth_add_default_mod(synth, mod, FLUID_SYNTH_ADD);
// mod = new_fluid_mod();
//
// // modulator's primary source controller and flags
// // fluid_mod_src:
// // https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/mod.h#L61
// // fluid_mod_flags:
// // https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/mod.h#L41
// // diagrams showing what negative and concave mean:
// // https://musescore.org/en/user/527826/blog/2016/05/23/volume-fluidsynth
// // fluid_gen_type:
// // https://github.com/FluidSynth/fluidsynth/blob/master/include/fluidsynth/gen.h#L36
// // https://github.com/FluidSynth/fluidsynth/blob/master/src/synth/fluid_gen.c#L27
// fluid_mod_set_source1(mod,
// FLUID_MOD_KEYPRESSURE,
// FLUID_MOD_CC |
// FLUID_MOD_POSITIVE |
// FLUID_MOD_UNIPOLAR |
// FLUID_MOD_CONCAVE);
// // modulator's secondary source controller and flags
// // MIDI CC 74
// fluid_mod_set_source2(mod, 74, FLUID_MOD_CC);
// // generator for filter cutoff
// fluid_mod_set_dest(mod, GEN_FILTERFC);
// fluid_mod_set_amount(mod, 13500.0f);
//
// fluid_synth_add_default_mod(synth, mod, FLUID_SYNTH_ADD);
initialised = true;
}

View File

@ -6,9 +6,9 @@
companyWebsite="https://birchlabs.co.uk" bundleIdentifier="uk.co.birchlabs.juicysfplugin"
pluginManufacturer="birchlabs" pluginCode="Jspf" pluginManufacturerCode="Blbs"
pluginName="Juicy SF" pluginDesc="Audio plugin to play soundfonts"
id="ptvVfg" pluginFormats="buildAU,buildStandalone,buildVST3"
id="ptvVfg" pluginFormats="buildAU,buildStandalone,buildVST,buildVST3"
pluginCharacteristicsValue="pluginIsSynth,pluginWantsMidiIn,pluginEditorRequiresKeys"
buildVST="0" buildAU="1" buildRTAS="0" buildAAX="0" enableIAA="0"
buildVST="1" buildAU="1" buildRTAS="0" buildAAX="0" enableIAA="0"
projectLineFeed="&#10;" cppLanguageStandard="17">
<MAINGROUP id="rCqBG3" name="juicysfplugin">
<GROUP id="{ED7E27E3-B67D-383C-F819-F05289E08A33}" name="Source">
@ -63,9 +63,10 @@
</GROUP>
</MAINGROUP>
<EXPORTFORMATS>
<XCODE_MAC targetFolder="Builds/MacOSX" externalLibraries="fluidsynth" extraLinkerFlags="-Llib">
<XCODE_MAC targetFolder="Builds/MacOSX" externalLibraries="fluidsynth" extraLinkerFlags="-Llib"
vstLegacyFolder="~/SDKs/VST_SDK/VST2_SDK">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" headerPath="../../include&#10;../../modules"/>
<CONFIGURATION isDebug="1" name="Debug" headerPath="../../include&#10;../../modules&#10;~/SDKs/VST_SDK/VST2_SDK&#10;~/SDKs/VST_SDK/VST3_SDK"/>
<CONFIGURATION isDebug="0" name="Release" headerPath="../../include&#10;../../modules"/>
</CONFIGURATIONS>
<MODULEPATHS>