1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3 Client: Generate moduleinfo.json into Resources directory of bundle

This commit is contained in:
reuk 2023-05-16 21:08:08 +01:00
parent 06a2089872
commit 77458fb4f9
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
10 changed files with 162 additions and 152 deletions

View file

@ -223,49 +223,12 @@ public:
.getChildFile ("juce_LV2ManifestHelper.cpp");
}
std::vector<build_tools::RelativePath> getVST3HelperProgramSources (const ProjectExporter& exporter) const
build_tools::RelativePath getVST3HelperProgramSource() const
{
const auto base = getModuleFolderRelativeToProject ("juce_audio_processors").getChildFile ("format_types")
.getChildFile ("VST3_SDK");
const auto publicSdk = base.getChildFile ("public.sdk");
const auto source = publicSdk.getChildFile ("source");
const auto vst = source.getChildFile ("vst");
const auto hosting = vst.getChildFile ("hosting");
const auto plugBase = base.getChildFile ("pluginterfaces")
.getChildFile ("base");
std::vector<build_tools::RelativePath> result
{
hosting.getChildFile ("module.cpp"),
base.getChildFile ("public.sdk")
.getChildFile ("samples")
.getChildFile ("vst-utilities")
.getChildFile ("moduleinfotool")
.getChildFile ("source")
.getChildFile ("main.cpp"),
source.getChildFile ("common")
.getChildFile ("memorystream.cpp"),
source.getChildFile ("common")
.getChildFile ("readfile.cpp"),
vst.getChildFile ("moduleinfo")
.getChildFile ("moduleinfocreator.cpp"),
vst.getChildFile ("moduleinfo")
.getChildFile ("moduleinfoparser.cpp"),
vst.getChildFile ("utility")
.getChildFile ("stringconvert.cpp"),
vst.getChildFile ("vstinitiids.cpp"),
plugBase.getChildFile ("coreiids.cpp"),
plugBase.getChildFile ("funknown.cpp"),
};
if (exporter.isOSX())
result.push_back (hosting.getChildFile ("module_mac.mm"));
else if (exporter.isLinux())
result.push_back (hosting.getChildFile ("module_linux.cpp"));
else if (exporter.isWindows())
result.push_back (hosting.getChildFile ("module_win32.cpp"));
return result;
const auto suffix = isOSX() ? "mm" : "cpp";
return getModuleFolderRelativeToProject ("juce_audio_plugin_client")
.getChildFile ("VST3")
.getChildFile (String ("juce_VST3ManifestHelper.") + suffix);
}
//==============================================================================