T9: VST3 GUI bridge DLL (native_host/vst3_host_bridge.cpp, CMakeLists.txt)

This commit is contained in:
2026-08-11 16:09:54 +07:00
parent a12c133ba6
commit 6bc197b909
2 changed files with 270 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
cmake_minimum_required(VERSION 3.20)
project(sonicforge_native_host LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT DEFINED VST3_SDK_ROOT)
set(VST3_SDK_ROOT "" CACHE PATH "Path to VST3 SDK root")
endif()
add_library(vst3_host_bridge SHARED
vst3_host_bridge.cpp
${VST3_SDK_ROOT}/public.sdk/source/common/commonstringconvert.cpp
${VST3_SDK_ROOT}/public.sdk/source/common/threadchecker_win32.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/module.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/module_win32.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/plugprovider.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/hostclasses.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/pluginterfacesupport.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/hosting/connectionproxy.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/utility/stringconvert.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/vstinitiids.cpp
${VST3_SDK_ROOT}/pluginterfaces/base/funknown.cpp
${VST3_SDK_ROOT}/pluginterfaces/base/ustring.cpp
${VST3_SDK_ROOT}/pluginterfaces/base/coreiids.cpp
${VST3_SDK_ROOT}/base/source/baseiids.cpp
)
target_include_directories(vst3_host_bridge PRIVATE ${VST3_SDK_ROOT})
target_compile_definitions(vst3_host_bridge PRIVATE
_CRT_SECURE_NO_WARNINGS
NOMINMAX
WIN32_LEAN_AND_MEAN
)