In Unity, the excellent post processor makes it very easy to, say, add a build flag
on an iOS project...
public class BuildPostProcessor
{
public static void OnPostProcessBuild(BuildTarget target, string path) ...
PBXProject project = new PBXProject();
string sPath = PBXProject.GetPBXProjectPath(path);
A "PBXProject" is literally "the .pbxproj file", that is to say, a plist text file.
It's then incredibly easy to for example
project.AddBuildProperty(g, "SOME_FLAG", "--whoa");
or add a framework, etc.
What about Mac desktop builds?
That's great for iOS builds, but how the heck do you "AddBuildProperty" on an OSX desktop project?
It seems there is NO "StandaloneProject" or similar structure.
How is this done?
I need to add OTHER_CODE_SIGN_FLAGS --deep. Presently I have to create the Xcode project and do it by hand every time. Surely there is a way to use Unity's excellent AddBuildProperty
or similar calls, with, a desktop project?