From 2f3e5b175921c5028dd536d69f6f3c8046ff4cda Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 8 Jan 2015 21:13:09 +0000 Subject: [PATCH] Introjucer: made sure that the post-build script is added in an AU-only project. --- .../Source/Project/jucer_AudioPluginModule.h | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h index 8934791e7a..a093e15e5c 100644 --- a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h +++ b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h @@ -568,28 +568,27 @@ namespace AUHelpers } } - if (exporter.isXcode()) - { - XmlElement plistKey ("key"); - plistKey.addTextElement ("AudioComponents"); + XmlElement plistKey ("key"); + plistKey.addTextElement ("AudioComponents"); - XmlElement plistEntry ("array"); - XmlElement* dict = plistEntry.createNewChildElement ("dict"); + XmlElement plistEntry ("array"); + XmlElement* dict = plistEntry.createNewChildElement ("dict"); - Project& project = exporter.getProject(); + Project& project = exporter.getProject(); - addPlistDictionaryKey (dict, "name", getPluginManufacturer (project).toString() - + ": " + getPluginName (project).toString()); - addPlistDictionaryKey (dict, "description", getPluginDesc (project).toString()); - addPlistDictionaryKey (dict, "factoryFunction", getPluginAUExportPrefix (project).toString() + "Factory"); - addPlistDictionaryKey (dict, "manufacturer", getPluginManufacturerCode (project).toString().trim().substring (0, 4)); - addPlistDictionaryKey (dict, "type", getAUMainTypeCode (project)); - addPlistDictionaryKey (dict, "subtype", getPluginCode (project).toString().trim().substring (0, 4)); - addPlistDictionaryKeyInt (dict, "version", project.getVersionAsHexInteger()); + addPlistDictionaryKey (dict, "name", getPluginManufacturer (project).toString() + + ": " + getPluginName (project).toString()); + addPlistDictionaryKey (dict, "description", getPluginDesc (project).toString()); + addPlistDictionaryKey (dict, "factoryFunction", getPluginAUExportPrefix (project).toString() + "Factory"); + addPlistDictionaryKey (dict, "manufacturer", getPluginManufacturerCode (project).toString().trim().substring (0, 4)); + addPlistDictionaryKey (dict, "type", getAUMainTypeCode (project)); + addPlistDictionaryKey (dict, "subtype", getPluginCode (project).toString().trim().substring (0, 4)); + addPlistDictionaryKeyInt (dict, "version", project.getVersionAsHexInteger()); - exporter.xcodeExtraPListEntries.add (plistKey); - exporter.xcodeExtraPListEntries.add (plistEntry); - } + exporter.xcodeExtraPListEntries.add (plistKey); + exporter.xcodeExtraPListEntries.add (plistEntry); + + fixMissingXcodePostBuildScript (exporter); } } }