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

Projucer: Add a cp command to the Makefile exporter to copy the Unity GUI script to the build directory

This commit is contained in:
ed 2018-11-01 09:57:33 +00:00
parent aae372d68c
commit 86bdcbae15

View file

@ -281,9 +281,22 @@ public:
<< "\t-$(V_AT)mkdir -p $(JUCE_LIBDIR)" << newLine
<< "\t-$(V_AT)mkdir -p $(JUCE_OUTDIR)" << newLine;
if (type == UnityPlugIn)
{
auto scriptName = owner.getProject().getUnityScriptName();
RelativePath scriptPath (owner.getProject().getGeneratedCodeFolder().getChildFile (scriptName),
owner.getTargetFolder(),
RelativePath::projectFolder);
out << "\t-$(V_AT)cp " + scriptPath.toUnixStyle() + " $(JUCE_OUTDIR)/" + scriptName << newLine;
}
if (owner.projectType.isStaticLibrary() || type == SharedCodeTarget)
{
out << "\t$(V_AT)$(AR) -rcs " << getBuildProduct()
<< " $(OBJECTS_" << getTargetVarName() << ")" << newLine;
}
else
{
out << "\t$(V_AT)$(CXX) -o " << getBuildProduct()