Browse Source

Projucer: Set the "organization" attribute of Xcode projects to the "Company Name" specified in the project settings in the Projucer

tags/2021-05-28
ed 8 years ago
parent
commit
3c86b54846
2 changed files with 10 additions and 1 deletions
  1. +7
    -0
      extras/Projucer/Source/Project/jucer_Project.h
  2. +3
    -1
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 7
- 0
extras/Projucer/Source/Project/jucer_Project.h View File

@@ -93,9 +93,16 @@ public:
String getDefaultAAXIdentifier() { return getDefaultBundleIdentifier(); }
Value getCompanyName() { return getProjectValue (Ids::companyName); }
String getCompanyNameString() const { return getProjectVar (Ids::companyName); }
Value getCompanyCopyright() { return getProjectValue (Ids::companyCopyright); }
String getCompanyCopyrightString() const { return getProjectVar (Ids::companyCopyright); }
Value getCompanyWebsite() { return getProjectValue (Ids::companyWebsite); }
String getCompanyWebsiteString() const { return getProjectVar (Ids::companyWebsite); }
Value getCompanyEmail() { return getProjectValue (Ids::companyEmail); }
String getCompanyEmailString() const { return getProjectVar (Ids::companyEmail); }
Value shouldDisplaySplashScreen() { return getProjectValue (Ids::displaySplashScreen); }
Value shouldReportAppUsage() { return getProjectValue (Ids::reportAppUsage); }


+ 3
- 1
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -2852,7 +2852,9 @@ private:
{
String attributes;
attributes << "{ LastUpgradeCheck = 0830; ";
attributes << "{ LastUpgradeCheck = 0830; "
<< "ORGANIZATIONNAME = " << getProject().getCompanyNameString().quoted()
<<"; ";
if (projectType.isGUIApplication() || projectType.isAudioPlugin())
{


Loading…
Cancel
Save