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:
parent
aae372d68c
commit
86bdcbae15
1 changed files with 13 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue