From ff602877e6ff46580a15136a30ed15e263221d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20Johan=20Tr=C3=B8an=20S=C3=B8ma=CC=8Aen?= Date: Sun, 28 Jun 2020 23:48:30 +0200 Subject: [PATCH] DEVTOOLS: Unhardcode scummvm-name in create_project for XCode. The existing code broke create_project in ResidualVM, as the loop that creates the actual build configurations generated the hash from the actual object name, which for ResidualVM would be XCConfigurationList_residualvm. The same logic was not applied when generating the reference, as that would use the hardcoded name XCConfigurationList_scummvm. This patch makes a minimal fix for that, by using the PROJECT_NAME define instead of the hardcoded name. --- devtools/create_project/xcode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index e325eb87071..42f774d279c 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -745,7 +745,7 @@ void XcodeProvider::setupProject() { Object *project = new Object(this, "PBXProject", "PBXProject", "PBXProject", "", "Project object"); - project->addProperty("buildConfigurationList", getHash("XCConfigurationList_scummvm"), "Build configuration list for PBXProject \"" PROJECT_NAME "\"", kSettingsNoValue); + project->addProperty("buildConfigurationList", getHash("XCConfigurationList_" PROJECT_NAME), "Build configuration list for PBXProject \"" PROJECT_NAME "\"", kSettingsNoValue); project->addProperty("compatibilityVersion", "Xcode 3.2", "", kSettingsNoValue | kSettingsQuoteVariable); project->addProperty("developmentRegion", "English", "", kSettingsNoValue); project->addProperty("hasScannedForEncodings", "1", "", kSettingsNoValue);