Skip to content

Commit

Permalink
update iPlug project files for CLAP support which fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tk committed Jul 5, 2024
1 parent e5a4664 commit bfd80ec
Show file tree
Hide file tree
Showing 60 changed files with 2,160 additions and 334 deletions.
48 changes: 31 additions & 17 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,48 @@
{
"env": {
"commonIncludePaths": [
"${workspaceFolder}/**",
"${workspaceFolder}/../../WDL/**",
"${workspaceFolder}/../../IPlug/**",
"${workspaceFolder}/../../IGraphics/**",
"${workspaceFolder}/../../Dependencies/**"
],
"commonDefs": [
"APP_API",
"IPLUG_DSP=1",
"IPLUG_EDITOR=1",
"IGRAPHICS_NANOVG",
"NOMINMAX"
]
},
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/../../WDL/**",
"${workspaceFolder}/../../IPlug/**",
"${workspaceFolder}/../../IGraphics/**",
"${workspaceFolder}/../../Dependencies/IPlug/**",
"${workspaceFolder}/../../Dependencies/IGraphics/**",
"${workspaceFolder}/../../Dependencies/Extras/**",
"${commonIncludePaths}",
"${workspaceFolder}/../../Dependencies/Build/mac/include/**"
],
"defines": [
"${commonDefs}",
"OS_MAC",
"APP_API",
"IPLUG_DSP=1",
"IPLUG_EDITOR=1",
"IGRAPHICS_NANOVG",
"IGRAPHICS_METAL,",
"NOMINMAX"
"IGRAPHICS_METAL"
],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++11",
"intelliSenseMode": "clang-x64"
"cppStandard": "c++14"
},
{
"name": "Win32",
"includePath": [
"${commonIncludePaths}"
],
"defines": [
"${commonDefs}",
"OS_WIN",
"IGRAPHICS_GL2"
]
}
],
"version": 4
Expand Down
5 changes: 5 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@

#define VST3_SUBCATEGORY "Fx"

#define CLAP_MANUAL_URL "https://iplug2.github.io/manuals/example_manual.pdf"
#define CLAP_SUPPORT_URL "https://github.com/iPlug2/iPlug2/wiki"
#define CLAP_DESCRIPTION "A simple distortion effect."
#define CLAP_FEATURES "audio-effect"//, "utility"

#define APP_NUM_CHANNELS 2
#define APP_N_VECTOR_WAIT 0
#define APP_MULT 1
Expand Down
2 changes: 1 addition & 1 deletion config/rektifier-ios.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BINARY_NAME = rektifier
// HEADER AND LIBRARY SEARCH PATHS
EXTRA_INC_PATHS = $(IGRAPHICS_INC_PATHS)
EXTRA_LIB_PATHS = $(IGRAPHICS_LIB_PATHS)
EXTRA_LNK_FLAGS = -framework Metal -framework MetalKit -framework WebKit //$(IGRAPHICS_LNK_FLAGS)
EXTRA_LNK_FLAGS = -framework Metal -framework MetalKit //$(IGRAPHICS_LNK_FLAGS)

//------------------------------
// PREPROCESSOR MACROS
Expand Down
2 changes: 1 addition & 1 deletion config/rektifier-mac.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BINARY_NAME = rektifier
// HEADER AND LIBRARY SEARCH PATHS
EXTRA_INC_PATHS = $(IGRAPHICS_INC_PATHS)
EXTRA_LIB_PATHS = $(IGRAPHICS_LIB_PATHS)
EXTRA_LNK_FLAGS = -framework Metal -framework MetalKit -framework OpenGL -framework WebKit //$(IGRAPHICS_LNK_FLAGS)
EXTRA_LNK_FLAGS = -framework Metal -framework MetalKit -framework OpenGL //$(IGRAPHICS_LNK_FLAGS)

// EXTRA_APP_DEFS =
// EXTRA_PLUGIN_DEFS =
Expand Down
2 changes: 1 addition & 1 deletion config/rektifier-win.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<ProgramDatabaseFile>$(PDB_FILE)</ProgramDatabaseFile>
</Link>
<PostBuildEvent>
<Command>CALL "$(SolutionDir)scripts\postbuild-win.bat" "$(TargetExt)" "$(BINARY_NAME)" "$(Platform)" "$(COPY_VST2)" "$(TargetPath)" "$(VST2_32_PATH)" "$(VST2_64_PATH)" "$(VST3_32_PATH)" "$(VST3_64_PATH)" "$(AAX_32_PATH)" "$(AAX_64_PATH)" "$(BUILD_DIR)" "$(VST_ICON)" "$(AAX_ICON)" "$(CREATE_BUNDLE_SCRIPT)"</Command>
<Command>CALL "$(SolutionDir)scripts\postbuild-win.bat" "$(TargetExt)" "$(BINARY_NAME)" "$(Platform)" "$(COPY_VST2)" "$(TargetPath)" "$(VST2_32_PATH)" "$(VST2_64_PATH)" "$(VST3_32_PATH)" "$(VST3_64_PATH)" "$(AAX_32_PATH)" "$(AAX_64_PATH)" "$(CLAP_PATH)" "$(BUILD_DIR)" "$(VST_ICON)" "$(AAX_ICON)" "$(CREATE_BUNDLE_SCRIPT)"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>CALL "$(SolutionDir)scripts\prebuild-win.bat" "$(TargetExt)" "$(BINARY_NAME)" "$(Platform)" "$(TargetPath)" "$(OutDir)"</Command>
Expand Down
2 changes: 2 additions & 0 deletions hardcoded_irs.hpp

Large diffs are not rendered by default.

351 changes: 351 additions & 0 deletions projects/IPlugEffect-clap.vcxproj

Large diffs are not rendered by default.

235 changes: 235 additions & 0 deletions projects/IPlugEffect-clap.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="..\IPlugEffect.cpp" />
<ClCompile Include="..\..\..\IPlug\IPlugAPIBase.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\IPlugParameter.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\IPlugProcessor.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\IGraphics.cpp">
<Filter>IGraphics</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Platforms\IGraphicsWin.cpp">
<Filter>IGraphics\Platform</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\IPlugPluginBase.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\IPlugTimer.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Drawing\IGraphicsNanoVG.cpp">
<Filter>IGraphics\Drawing</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\IControl.cpp">
<Filter>IGraphics</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\IGraphicsEditorDelegate.cpp">
<Filter>IGraphics</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Controls\IControls.cpp">
<Filter>IGraphics\Controls</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Controls\IPopupMenuControl.cpp">
<Filter>IGraphics\Controls</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Controls\ITextEntryControl.cpp">
<Filter>IGraphics\Controls</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\IPlugPaths.cpp">
<Filter>IPlug</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IGraphics\Drawing\IGraphicsSkia.cpp">
<Filter>IGraphics\Drawing</Filter>
</ClCompile>
<ClCompile Include="..\..\..\IPlug\CLAP\IPlugCLAP.cpp">
<Filter>IPlug\CLAP</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="../config.h" />
<ClInclude Include="..\IPlugEffect.h" />
<ClInclude Include="..\..\..\IPlug\IPlugAPIBase.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugConstants.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugLogger.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugMidi.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugPlatform.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugParameter.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugStructs.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugUtilities.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlug_include_in_plug_hdr.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlug_include_in_plug_src.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\resources\resource.h">
<Filter>resources</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugProcessor.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugEditorDelegate.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphics.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphics_include_in_plug_hdr.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphics_include_in_plug_src.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphics_select.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsConstants.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsLiveEdit.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsPopupMenu.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsStructs.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsPrivate.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsUtilities.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Drawing\IGraphicsNanoVG.h">
<Filter>IGraphics\Drawing</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsWin.h">
<Filter>IGraphics\Platform</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsWeb.h">
<Filter>IGraphics\Platform</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsMac.h">
<Filter>IGraphics\Platform</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsMac_view.h">
<Filter>IGraphics\Platform</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsLinux.h">
<Filter>IGraphics\Platform</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugTimer.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IControl.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\IGraphicsEditorDelegate.h">
<Filter>IGraphics</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IControls.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IFPSDisplayControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IPopupMenuControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IVKeyboardControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IVMeterControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IVMultiSliderControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\IVScopeControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Controls\ITextEntryControl.h">
<Filter>IGraphics\Controls</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugPaths.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\Drawing\IGraphicsSkia.h">
<Filter>IGraphics\Drawing</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugPluginBase.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\CLAP\IPlugCLAP.h">
<Filter>IPlug\CLAP</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="IPlug">
<UniqueIdentifier>{2425d7db-3821-4242-b5c9-db34bda176ce}</UniqueIdentifier>
</Filter>
<Filter Include="resources">
<UniqueIdentifier>{340070a8-76f3-47eb-9d5f-c13785b65579}</UniqueIdentifier>
</Filter>
<Filter Include="IGraphics">
<UniqueIdentifier>{4867b134-9c10-4435-b4ba-5b411e34340b}</UniqueIdentifier>
</Filter>
<Filter Include="IGraphics\Drawing">
<UniqueIdentifier>{f77209f4-83aa-47eb-9a44-59880a83c238}</UniqueIdentifier>
</Filter>
<Filter Include="IGraphics\Platform">
<UniqueIdentifier>{2731d3da-3446-4ccb-83ff-8ae3793611b5}</UniqueIdentifier>
</Filter>
<Filter Include="IGraphics\Controls">
<UniqueIdentifier>{fa39707d-4118-45f2-92fb-d407fa5d3288}</UniqueIdentifier>
</Filter>
<Filter Include="config">
<UniqueIdentifier>{8c338368-7512-426b-af83-0f50719ca0bd}</UniqueIdentifier>
</Filter>
<Filter Include="IPlug\CLAP">
<UniqueIdentifier>{35a9e026-dde0-499a-9432-4ee1754ffba8}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\resources\main.rc">
<Filter>resources</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\config\IPlugEffect-web.mk">
<Filter>config</Filter>
</None>
<None Include="..\config\IPlugEffect-win.props">
<Filter>config</Filter>
</None>
<None Include="..\config\IPlugEffect-mac.xcconfig">
<Filter>config</Filter>
</None>
<None Include="..\config\IPlugEffect-ios.xcconfig">
<Filter>config</Filter>
</None>
</ItemGroup>
</Project>
18 changes: 18 additions & 0 deletions projects/IPlugEffect-clap.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommand>$(CLAP_64_HOST_PATH)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<LocalDebuggerCommandArguments>$(CLAP_64_COMMAND_ARGS)</LocalDebuggerCommandArguments>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommand>$(CLAP_64_HOST_PATH)</LocalDebuggerCommand>
<LocalDebuggerCommandArguments>$(CLAP_64_COMMAND_ARGS)</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Tracer|x64'">
<LocalDebuggerCommand>$(CLAP_64_HOST_PATH)</LocalDebuggerCommand>
<LocalDebuggerCommandArguments>$(CLAP_64_COMMAND_ARGS)</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion projects/rektifier-aax.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@
<ClInclude Include="..\..\..\IGraphics\IGraphics_include_in_plug_hdr.h" />
<ClInclude Include="..\..\..\IGraphics\IGraphics_include_in_plug_src.h" />
<ClInclude Include="..\..\..\IGraphics\IGraphics_select.h" />
<ClInclude Include="..\..\..\IGraphics\ISender.h" />
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsLinux.h" />
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsMac.h" />
<ClInclude Include="..\..\..\IGraphics\Platforms\IGraphicsMac_view.h" />
Expand All @@ -489,6 +488,7 @@
<ClInclude Include="..\..\..\IPlug\IPlugUtilities.h" />
<ClInclude Include="..\..\..\IPlug\IPlug_include_in_plug_hdr.h" />
<ClInclude Include="..\..\..\IPlug\IPlug_include_in_plug_src.h" />
<ClInclude Include="..\..\..\IPlug\ISender.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\rektifier.h" />
<ClInclude Include="..\resources\resource.h" />
Expand Down
4 changes: 2 additions & 2 deletions projects/rektifier-aax.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@
<ClInclude Include="..\..\..\IPlug\IPlugPluginBase.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IGraphics\ISender.h">
<Filter>IGraphics</Filter>
<ClInclude Include="..\..\..\IPlug\ISender.h">
<Filter>IPlug</Filter>
</ClInclude>
<ClInclude Include="..\..\..\IPlug\IPlugProcessor.h">
<Filter>IPlug</Filter>
Expand Down
Loading

0 comments on commit bfd80ec

Please sign in to comment.