Skip to content

Commit eb7b3d4

Browse files
committed
Add platform-specific library linking for VST3 validator
- Add Ole32 and Shell32 libraries for Windows module loading - Add Cocoa framework for macOS module loading - Add hosting directory to include paths https://claude.ai/code/session_01AY9chvBEmsCVjNZSUkNcbw
1 parent 956dc9f commit eb7b3d4

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ if(PLUGINVAL_VST3_VALIDATOR)
151151
${vst3sdk_SOURCE_DIR}/base
152152
${vst3sdk_SOURCE_DIR}/public.sdk
153153
${vst3sdk_SOURCE_DIR}/public.sdk/source
154+
${vst3sdk_SOURCE_DIR}/public.sdk/source/vst/hosting
154155
)
155156
endif()
156157

@@ -193,6 +194,20 @@ if (PLUGINVAL_VST3_VALIDATOR)
193194
target_link_libraries(pluginval PRIVATE
194195
sdk_hosting
195196
sdk)
197+
198+
# Windows needs additional libraries for the module loading code
199+
if(WIN32)
200+
target_link_libraries(pluginval PRIVATE
201+
Ole32
202+
Shell32)
203+
endif()
204+
205+
# macOS needs Cocoa framework for module loading
206+
if(APPLE)
207+
find_library(COCOA_FRAMEWORK Cocoa)
208+
target_link_libraries(pluginval PRIVATE
209+
${COCOA_FRAMEWORK})
210+
endif()
196211
endif()
197212

198213
if (PLUGINVAL_ENABLE_RTCHECK)

0 commit comments

Comments
 (0)