public void SetCompileFlagsForFile(string targetGuid, string fileGuid, List<string> compileFlags) { PBXBuildFileData data = this.BuildFilesGetForSourceFile(targetGuid, fileGuid); if (data != null) { if (compileFlags == null) { data.compileFlags = null; } else { data.compileFlags = string.Join(" ", compileFlags.ToArray()); } } }
private static void SetFilesCompileFlag(PBXProject proj, Hashtable arg) { if (arg == null) { return; } string target = proj.TargetGuidByName(PBXProject.GetUnityTargetName()); foreach (DictionaryEntry i in arg) { string fileProjPath = i.Key.ToString(); string fguid = proj.FindFileGuidByProjectPath(fileProjPath); if (fguid == null) { continue; } ArrayList des = i.Value as ArrayList; List <string> list = new List <string>(); foreach (var flag in des) { list.Add(flag.ToString()); } proj.SetCompileFlagsForFile(target, fguid, list); } }