mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
VST3 Client: Generate moduleinfo.json into Resources directory of bundle
This commit is contained in:
parent
06a2089872
commit
77458fb4f9
10 changed files with 162 additions and 152 deletions
|
|
@ -798,12 +798,9 @@ public:
|
|||
}
|
||||
else if (type == VST3Helper)
|
||||
{
|
||||
for (const auto& source : owner.getVST3HelperProgramSources (owner))
|
||||
{
|
||||
const auto location = owner.rebaseFromProjectFolderToBuildTarget (source)
|
||||
.toWindowsStyle();
|
||||
cppFiles->createNewChildElement ("ClCompile")->setAttribute ("Include", location);
|
||||
}
|
||||
const auto location = owner.rebaseFromProjectFolderToBuildTarget (owner.getVST3HelperProgramSource())
|
||||
.toWindowsStyle();
|
||||
cppFiles->createNewChildElement ("ClCompile")->setAttribute ("Include", location);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1344,15 +1341,18 @@ public:
|
|||
|
||||
// moduleinfotool doesn't handle Windows-style path separators properly when computing the bundle name
|
||||
const auto normalisedBundlePath = getOwner().getOutDirFile (config, segments[0]).replace ("\\", "/");
|
||||
const auto contentsDir = normalisedBundlePath + "\\Contents";
|
||||
const auto resourceDir = contentsDir + "\\Resources";
|
||||
|
||||
return "\r\n"
|
||||
+ writer.quoted()
|
||||
+ " -create -version "
|
||||
+ getOwner().project.getVersionString().quoted()
|
||||
+ " -path "
|
||||
+ normalisedBundlePath.quoted()
|
||||
+ " -output "
|
||||
+ (getOwner().getOutDirFile (config, segments[0]) + "\\Contents\\moduleinfo.json").quoted();
|
||||
return "\r\ndel /s /q " + (contentsDir + "\\moduleinfo.json").quoted() + "\r\n"
|
||||
"if not exist " + resourceDir.quoted() + " mkdir " + resourceDir.quoted() + "\r\n"
|
||||
+ writer.quoted()
|
||||
+ " -create -version "
|
||||
+ getOwner().project.getVersionString().quoted()
|
||||
+ " -path "
|
||||
+ normalisedBundlePath.quoted()
|
||||
+ " -output "
|
||||
+ (resourceDir + "\\moduleinfo.json").quoted();
|
||||
}();
|
||||
|
||||
const auto pkgScript = copyBuildOutputIntoBundle (segments);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue