Support xcconfig base configuration reference files
To ease the migration from xcode project files to cmake generated xcode projects it would be nice to see support for build settings files (.xcconfig
files) both at the project level and at the per configuration level.
This would mean that any build settings that are currently unsupported by cmake could instead be placed in this file and would not prevent people from migrating to cmake.
Here is a guide to see what xcconfig files are used for https://pewpewthespells.com/blog/xcconfig_guide.html.
The top level configuration file needs to be passed with the build command with a flag of -xconfig
as seen in the usage here
From what I see the per configuration file would have to be added as a child source file to the project file and then referenced within the configuration with a type name of baseConfigurationReference
.
XXXXXXXXXXXXX /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = XXXXXXXXXXXXX /* MyConfig.xcconfig */;
buildSettings = {
...
};
name = Release;
};
I assume this work would be done here.