Skip to content

Commit

Permalink
Set up premake so that VST3 and AU both link, and AU works.
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Dec 17, 2018
1 parent d835e2e commit ce3b57d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ function plugincommon()
"src/mac/**.cpp",
"src/mac/**.h",
"libs/vst/*.mm",
"libs/AUPublic/*.cpp",
"libs/PublicUtility/*.cpp",
VSTGUI .. "vstgui_mac.mm",
VSTGUI .. "vstgui_uidescription_mac.mm",
}
Expand Down Expand Up @@ -467,9 +465,9 @@ if (os.istarget("macosx")) then
"src/au/**.cpp",
"src/au/**.mm",
"src/au/**.h",
"libs/AudioUnits/AUPublic/**.cpp",
"libs/AudioUnits/AUPublic/**.h",
"libs/AudioUnits/PublicUtility/*.cpp",
"libs/AUPublic/**.cpp",
"libs/AUPublic/**.h",
"libs/PublicUtility/*.cpp",
VSTGUI .. "plugin-bindings/plugguieditor.cpp",
}

Expand Down
2 changes: 1 addition & 1 deletion src/vst3/SurgeVst3EditController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "pluginterfaces/base/ustring.h"

#if !TARGET_AUDIOUNIT
#if !TARGET_AUDIOUNIT && !MAC
tresult PLUGIN_API SurgeVst3EditController::initialize(FUnknown* context)
{
tresult result = EditControllerEx1::initialize(context);
Expand Down
2 changes: 1 addition & 1 deletion src/vst3/SurgeVst3EditController.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace Steinberg;
using namespace Steinberg::Vst;

class SurgeEditorView;
#if !TARGET_AUDIOUNIT
#if !TARGET_AUDIOUNIT && !MAC

class SurgeVst3EditController : public EditControllerEx1, public IMidiMapping
{
Expand Down

0 comments on commit ce3b57d

Please sign in to comment.