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

Projucer: Stop requiring JuceHeader to be included in projects

This commit is contained in:
reuk 2020-04-06 19:29:03 +01:00
parent ece5644a20
commit 2ca69e8f70
315 changed files with 1412 additions and 3459 deletions

View file

@ -402,6 +402,9 @@ juce::String createDefineStatements (juce::StringRef definitions)
for (const auto& def : split)
{
if (! def.startsWith ("JucePlugin_"))
continue;
const auto defineName = def.upToFirstOccurrenceOf ("=", false, false);
const auto defineValue = def.fromFirstOccurrenceOf ("=", false, false);
defineStatements += "#define " + defineName + " " + defineValue + '\n';
@ -410,7 +413,7 @@ juce::String createDefineStatements (juce::StringRef definitions)
return defineStatements;
}
int writeAuAppConfig (juce::ArgumentList&& args)
int writeAuPluginDefines (juce::ArgumentList&& args)
{
args.checkMinNumArguments (2);
const auto input = args.arguments.removeAndReturn (0);
@ -483,16 +486,16 @@ int main (int argc, char** argv)
const std::unordered_map<juce::String, Fn> commands
{
{ "auappconfig", writeAuAppConfig },
{ "binarydata", writeBinaryData },
{ "entitlements", writeEntitlements },
{ "header", writeHeader },
{ "iosassets", writeiOSAssets },
{ "macicon", writeMacIcon },
{ "pkginfo", writePkgInfo },
{ "plist", writePlist },
{ "rcfile", writeRcFile },
{ "winicon", writeWinIcon }
{ "auplugindefines", writeAuPluginDefines },
{ "binarydata", writeBinaryData },
{ "entitlements", writeEntitlements },
{ "header", writeHeader },
{ "iosassets", writeiOSAssets },
{ "macicon", writeMacIcon },
{ "pkginfo", writePkgInfo },
{ "plist", writePlist },
{ "rcfile", writeRcFile },
{ "winicon", writeWinIcon }
};
argumentList.checkMinNumArguments (1);