From 7a68ab757e59f8e772ad179b971124c03582be4f Mon Sep 17 00:00:00 2001 From: Jarkko Sakkinen Date: Fri, 14 Dec 2018 05:58:44 +0200 Subject: [PATCH] premake: Fix the VST2 boilerplate cpp-files inside the VST3 SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VST2 boileplate cpp-files inside the VST3 SDK had an incorrect path, which went silent from the build system. Enumerate the needed boilerplate cpp-files explicitly so that the build system will always give us an error if any of the files are missing. However, comment the files out because compiling vst2wrapper.cpp will result the following compiler error (Linux/GCC): vst3sdk/public.sdk/source/vst/basewrapper/basewrapper.cpp: In member function ‘virtual bool Steinberg::Vst::BaseEditorWrapper::_open(void*)’: vst3sdk/public.sdk/source/vst/basewrapper/basewrapper.cpp:197:32: error: ‘type’ was not declared in this scope return mView->attached (ptr, type) == kResultTrue; Signed-off-by: Jarkko Sakkinen --- premake5.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 4550de591eb..87b5a9cad4f 100644 --- a/premake5.lua +++ b/premake5.lua @@ -322,7 +322,8 @@ if VST24SDK then VST24SDK .. "/public.sdk/source/vst2.x/audioeffect.cpp", VST24SDK .. "/public.sdk/source/vst2.x/audioeffectx.cpp", VST24SDK .. "/public.sdk/source/vst2.x/vstplugmain.cpp", - "vst3sdk/public.sdk/source/vst2.x/**.cpp", +-- "vst3sdk/public.sdk/source/vst/vst2wrapper/vst2wrapper.cpp", +-- "vst3sdk/public.sdk/source/vst/vst2wrapper/vst2wrapper.sdk.cpp", VSTGUI .. "plugin-bindings/aeffguieditor.cpp", }