Ejemplo n.º 1
0
 public bool AddOtherCFlags( string flag )
 {
     Debug.Log( "INIZIO 1" );
     PBXList flags = new PBXList();
     flags.Add( flag );
     return AddOtherCFlags( flags );
 }
		protected bool AddSearchPaths( PBXList paths, string key, bool recursive = true )
		{	
			bool modified = false;
			
			if( !ContainsKey( BUILDSETTINGS_KEY ) )
				this.Add( BUILDSETTINGS_KEY, new PBXDictionary() );
			
			foreach( string path in paths ) {
				string currentPath = path;
				if( recursive && !path.EndsWith( "/**" ) )
					currentPath += "/**";
				
//				Debug.Log( "adding: " + currentPath );
				if( !((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey( key ) ) {
					((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add( key, new PBXList() );
				}
				else if( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] is string ) {
					PBXList list = new PBXList();
					list.Add( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] );
					((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] = list;
				}
				
				currentPath = "\\\"" + currentPath + "\\\"";
				
				if( !((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Contains( currentPath ) ) {
					((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Add( currentPath );
					modified = true;
				}
			}
		
			return modified;
		}
Ejemplo n.º 3
0
        public bool AddOtherCFlags( PBXList flags )
        {
            Debug.Log( "INIZIO 2" );

            bool modified = false;

            if( !ContainsKey( BUILDSETTINGS_KEY ) )
                this.Add( BUILDSETTINGS_KEY, new PBXDictionary() );

            foreach( string flag in flags ) {

                if( !((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey( OTHER_C_FLAGS_KEY ) ) {
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add( OTHER_C_FLAGS_KEY, new PBXList() );
                }
                else if ( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[ OTHER_C_FLAGS_KEY ] is string ) {
                    string tempString = (string)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_C_FLAGS_KEY];
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY])[ OTHER_C_FLAGS_KEY ] = new PBXList();
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_C_FLAGS_KEY]).Add( tempString );
                }

                if( !((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_C_FLAGS_KEY]).Contains( flag ) ) {
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_C_FLAGS_KEY]).Add( flag );
                    modified = true;
                }
            }

            return modified;
        }
Ejemplo n.º 4
0
		public bool AddHeaderSearchPaths( PBXList paths )
		{
			Debug.Log ("AddHeaderSearchPaths " + paths);
			foreach( KeyValuePair<string, XCBuildConfiguration> buildConfig in buildConfigurations ) {
				buildConfig.Value.AddHeaderSearchPaths( paths );
			}
			modified = true;
			return modified;
		}
 public bool AddLibrarySearchPaths(PBXList paths)
 {
     foreach (KeyValuePair <string, XCBuildConfiguration> buildConfig in buildConfigurations)
     {
         buildConfig.Value.AddLibrarySearchPaths(paths);
     }
     modified = true;
     return(modified);
 }
 public bool AddOtherCFlags(PBXList flags)
 {
     foreach (KeyValuePair <string, XCBuildConfiguration> buildConfig in buildConfigurations)
     {
         buildConfig.Value.AddOtherCFlags(flags);
     }
     modified = true;
     return(modified);
 }
Ejemplo n.º 7
0
        public bool AddHeaderSearchPaths(PBXList paths)
        {
            foreach (KeyValuePair <string, XCBuildConfiguration> buildConfig in buildConfigurations)
            {
//				Debug.Log( "ADDING HEADER PATH: " + paths + " to " + buildConfig.Key );
                buildConfig.Value.AddHeaderSearchPaths(paths);
            }
            modified = true;
            return(modified);
        }
Ejemplo n.º 8
0
        public bool AddOtherBuildingFalg(string key, string value)
        {
            if (!((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey(key))
            {
                PBXList pList = new PBXList();
                pList.Add(value);
                ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add(key, pList);
            }

            return(true);
        }
        public bool SetWeakLink(bool weak = false)
        {
            PBXDictionary settings   = null;
            PBXList       attributes = null;

            if (!_data.ContainsKey(SETTINGS_KEY))
            {
                if (weak)
                {
                    attributes = new PBXList();
                    attributes.Add(WEAK_VALUE);

                    settings = new PBXDictionary();
                    settings.Add(ATTRIBUTES_KEY, attributes);

                    _data.Add(SETTINGS_KEY, settings);
                }
                return(true);
            }

            settings = _data[SETTINGS_KEY] as PBXDictionary;
            if (!settings.ContainsKey(ATTRIBUTES_KEY))
            {
                if (weak)
                {
                    attributes = new PBXList();
                    attributes.Add(WEAK_VALUE);
                    settings.Add(ATTRIBUTES_KEY, attributes);
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                attributes = settings[ATTRIBUTES_KEY] as PBXList;
            }

            if (weak)
            {
                attributes.Add(WEAK_VALUE);
            }
            else
            {
                attributes.Remove(WEAK_VALUE);
            }

            settings.Add(ATTRIBUTES_KEY, attributes);
            this.Add(SETTINGS_KEY, settings);

            return(true);
        }
Ejemplo n.º 10
0
        protected bool AddSearchPaths(PBXList paths, string key, bool recursive = true, bool quoted = false)           //we want no quoting whenever we can get away with it
        {
            //Debug.Log ("AddSearchPaths " + paths + key + (recursive?" recursive":"") + " " + (quoted?" quoted":""));
            bool modified = false;

            if (!ContainsKey(BUILDSETTINGS_KEY))
            {
                this.Add(BUILDSETTINGS_KEY, new PBXSortedDictionary());
            }

            foreach (string path in paths)
            {
                string currentPath = path;
                //Debug.Log ("path " + currentPath);
                if (!((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey(key))
                {
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add(key, new PBXList());
                }
                else if (((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] is string)
                {
                    PBXList list = new PBXList();
                    list.Add(((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]);
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] = list;
                }

                //Xcode uses space as the delimiter here, so if there's a space in the filename, we *must* quote. Escaping with slash may work when you are in the Xcode UI, in some situations, but it doesn't work here.
                if (currentPath.Contains(@" "))
                {
                    quoted = true;
                }

                if (quoted)
                {
                    //if it ends in "/**", it wants to be recursive, and the "/**" needs to be _outside_ the quotes
                    if (currentPath.EndsWith("/**"))
                    {
                        currentPath = "\\\"" + currentPath.Replace("/**", "\\\"/**");
                    }
                    else
                    {
                        currentPath = "\\\"" + currentPath + "\\\"";
                    }
                }
                //Debug.Log ("currentPath = " + currentPath);
                if (!((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Contains(currentPath))
                {
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Add(currentPath);
                    modified = true;
                }
            }

            return(modified);
        }
Ejemplo n.º 11
0
 public bool AddOtherLinkFlags(ArrayList flags)
 {
     if (null != flags)
     {
         PBXList pbx = new PBXList();
         pbx.AddRange(flags);
         return(AddOtherLinkFlags(pbx));
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 12
0
		public bool SetWeakLink( bool weak = false )
		{
			PBXDictionary settings = null;
			PBXList attributes = null;
			
			if( !_data.ContainsKey( SETTINGS_KEY ) ) {
				if( weak ) {
					attributes = new PBXList();
					attributes.internalNewlines = false;
					attributes.Add( WEAK_VALUE );
					
					settings = new PBXDictionary();
					settings.Add( ATTRIBUTES_KEY, attributes );
					settings.internalNewlines = false;
					
					this.Add( SETTINGS_KEY, settings );
				}
				return true;
			}
			
			settings = _data[ SETTINGS_KEY ] as PBXDictionary;
			settings.internalNewlines = false;
			if( !settings.ContainsKey( ATTRIBUTES_KEY ) ) {
				if( weak ) {
					attributes = new PBXList();
					attributes.internalNewlines = false;
					attributes.Add( WEAK_VALUE );
					settings.Add( ATTRIBUTES_KEY, attributes );
					return true;
				}
				else {
					return false;
				}
			}
			else {
				attributes = settings[ ATTRIBUTES_KEY ] as PBXList;
			}
			
			attributes.internalNewlines = false;
			if( weak ) {
				attributes.Add( WEAK_VALUE );
			}
			else {
				attributes.Remove( WEAK_VALUE );
			}
			
			settings.Add( ATTRIBUTES_KEY, attributes );
			this.Add( SETTINGS_KEY, settings );
			
			return true;
		}
Ejemplo n.º 13
0
        public void AddKnownRegion(string region)
        {
            if (string.IsNullOrEmpty(region))
            {
                return;
            }

            if (System.Text.RegularExpressions.Regex.IsMatch(region, "[a-z]{2}[_-][a-z]{2}", System.Text.RegularExpressions.RegexOptions.IgnoreCase))
            {
                region = "\"" + region.Replace("_", "-") + "\"";
            }

            PBXList _list = (PBXList)this.data["knownRegions"];

            if (!_list.Contains(region))
            {
                _list.Add(region);
            }
        }
Ejemplo n.º 14
0
        public bool RemoveOtherLinkerFlags(PBXList flags)
        {
            bool modified = false;

            if (!ContainsKey(BUILDSETTINGS_KEY))
            {
                this.Add(BUILDSETTINGS_KEY, new PBXDictionary());
            }

            if (!((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey(OTHER_LDFLAGS_KEY))
            {
                ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add(OTHER_LDFLAGS_KEY, new PBXList());
            }
            else if (((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY] is string)
            {
                string tempString = (string)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY];
                ((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY] = new PBXList();
                if (!string.IsNullOrEmpty(tempString))
                {
                    foreach (string flag in flags)
                    {
                        if (tempString.IndexOf(flag) >= 0)
                        {
                            tempString = tempString.Replace(flag, "");
                            modified   = true;
                        }
                    }
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Add(tempString);
                }
            }

            foreach (string flag in flags)
            {
                if (((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Contains(flag))
                {
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Remove(flag);
                    modified = true;
                }
            }

            return(modified);
        }
Ejemplo n.º 15
0
		protected bool AddSearchPaths( PBXList paths, string key, bool recursive = true, bool quoted = false ) //we want no quoting whenever we can get away with it
		{	
			//Debug.Log ("AddSearchPaths " + paths + key + (recursive?" recursive":"") + " " + (quoted?" quoted":""));
			bool modified = false;
			
			if( !ContainsKey( BUILDSETTINGS_KEY ) )
				this.Add( BUILDSETTINGS_KEY, new PBXSortedDictionary() );
			
			foreach( string path in paths ) {
				string currentPath = path;
				//Debug.Log ("path " + currentPath);
				if( !((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey( key ) ) {
					((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add( key, new PBXList() );
				}
				else if( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] is string ) {
					PBXList list = new PBXList();
					list.Add( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] );
					((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] = list;
				}
				
				//Xcode uses space as the delimiter here, so if there's a space in the filename, we *must* quote. Escaping with slash may work when you are in the Xcode UI, in some situations, but it doesn't work here.
				if (currentPath.Contains(@" ")) quoted = true;
				
				if (quoted) {
					//if it ends in "/**", it wants to be recursive, and the "/**" needs to be _outside_ the quotes
					if (currentPath.EndsWith("/**")) {
						currentPath = "\\\"" + currentPath.Replace("/**", "\\\"/**");
					} else {
						currentPath = "\\\"" + currentPath + "\\\"";
					}
				}
				//Debug.Log ("currentPath = " + currentPath);
				if( !((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Contains( currentPath ) ) {
					((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Add( currentPath );
					modified = true;
				}
			}
		
			return modified;
		}
Ejemplo n.º 16
0
        protected bool AddSearchPaths(PBXList paths, string key, bool recursive = true)
        {
            bool modified = false;

            if (!ContainsKey(BUILDSETTINGS_KEY))
            {
                this.Add(BUILDSETTINGS_KEY, new PBXDictionary());
            }

            foreach (string path in paths)
            {
                string currentPath = path;
                if (recursive && !path.EndsWith("/**"))
                {
                    currentPath += "/**";
                }

//				Debug.Log( "adding: " + currentPath );
                if (!((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey(key))
                {
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add(key, new PBXList());
                }
                else if (((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] is string)
                {
                    PBXList list = new PBXList();
                    list.Add(((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]);
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY])[key] = list;
                }

                currentPath = "\\\"" + currentPath + "\\\"";

                if (!((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Contains(currentPath))
                {
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[key]).Add(currentPath);
                    modified = true;
                }
            }

            return(modified);
        }
Ejemplo n.º 17
0
        public void SetWeakLink(bool weak)
        {
            PBXDictionary settings   = null;
            PBXList       attributes = null;

            if (_data.ContainsKey(SETTINGS_KEY))
            {
                settings = _data[SETTINGS_KEY] as PBXDictionary;
                if (settings.ContainsKey(ATTRIBUTES_KEY))
                {
                    attributes = settings[ATTRIBUTES_KEY] as PBXList;
                }
            }

            if (weak)
            {
                if (settings == null)
                {
                    settings = new PBXDictionary();
                    settings.internalNewlines = false;
                    _data.Add(SETTINGS_KEY, settings);
                }

                if (attributes == null)
                {
                    attributes = new PBXList();
                    attributes.internalNewlines = false;
                    attributes.Add(WEAK_VALUE);
                    settings.Add(ATTRIBUTES_KEY, attributes);
                }
            }
            else
            {
                if (attributes != null && attributes.Contains(WEAK_VALUE))
                {
                    attributes.Remove(WEAK_VALUE);
                }
            }
        }
Ejemplo n.º 18
0
 private PBXList ParseArray()
 {
     PBXList list = new PBXList();
     bool complete = false;
     while( !complete ) {
         switch( NextToken() ) {
             case END_OF_FILE:
                 Debug.Log( "Error: Reached end of file inside a list: " + list );
                 complete = true;
                 break;
             case ARRAY_END_TOKEN:
                 complete = true;
                 break;
             case ARRAY_ITEM_DELIMITER_TOKEN:
                 break;
             default:
                 StepBackward();
                 list.Add( ParseValue() );
                 break;
         }
     }
     return list;
 }
Ejemplo n.º 19
0
        public bool SetSystemCapabilities(string key, string value)
        {
            if (_capabilities == null)
            {
                PBXList       targetList      = (PBXList)_data["targets"];
                string        targetKey       = (string)targetList[0];
                PBXDictionary attribute       = (PBXDictionary)_data["attributes"];
                PBXDictionary targetAttribute = (PBXDictionary)attribute["TargetAttributes"];
                PBXDictionary mainTarget;
                if (!targetAttribute.ContainsKey(targetKey))
                {
                    mainTarget = new PBXDictionary();
                    targetAttribute.Add(targetKey, mainTarget);
                    _capabilities = new PBXDictionary();
                    mainTarget.Add("SystemCapabilities", _capabilities);
                }
                else
                {
                    mainTarget    = (PBXDictionary)targetAttribute[targetKey];
                    _capabilities = (PBXDictionary)mainTarget["SystemCapabilities"];
                }
            }

            if (_capabilities.ContainsKey(key))
            {
                ((PBXDictionary)_capabilities[key])["enabled"] = value;
            }
            else
            {
                PBXDictionary valueDic = new PBXDictionary();
                valueDic.Add("enabled", value);
                _capabilities.Add(key, valueDic);
            }

            return(true);
        }
Ejemplo n.º 20
0
        //CodeSignOnCopy
        public bool AddCodeSignOnCopy()
        {
            if (!_data.ContainsKey(SETTINGS_KEY))
            {
                _data[SETTINGS_KEY] = new PBXDictionary();
            }

            var settings = _data[SETTINGS_KEY] as PBXDictionary;

            if (!settings.ContainsKey(ATTRIBUTES_KEY))
            {
                var attributes = new PBXList();
                attributes.Add("CodeSignOnCopy");
                attributes.Add("RemoveHeadersOnCopy");
                settings.Add(ATTRIBUTES_KEY, attributes);
            }
            else
            {
                var attributes = settings[ATTRIBUTES_KEY] as PBXList;
                attributes.Add("CodeSignOnCopy");
                attributes.Add("RemoveHeadersOnCopy");
            }
            return(true);
        }
Ejemplo n.º 21
0
 public bool AddHeaderSearchPaths(PBXList paths, bool recursive = true)
 {
     return(this.AddSearchPaths(paths, HEADER_SEARCH_PATHS_KEY, recursive));
 }
Ejemplo n.º 22
0
 public bool AddHeaderSearchPaths( PBXList paths )
 {
     foreach( KeyValuePair<string, XCBuildConfiguration> buildConfig in buildConfigurations ) {
     //				Debug.Log( "ADDING HEADER PATH: " + paths + " to " + buildConfig.Key );
         buildConfig.Value.AddHeaderSearchPaths( paths );
     }
     modified = true;
     return modified;
 }
Ejemplo n.º 23
0
 public bool AddFrameworkSearchPaths(PBXList paths, bool recursive = true)
 {
     return(this.AddSearchPaths(paths, FRAMEWORK_SEARCH_PATHS_KEY, recursive));
 }
Ejemplo n.º 24
0
 public bool AddLibrarySearchPaths(PBXList paths, bool recursive = true)
 {
     Debug.Log("AddLibrarySearchPaths " + paths);
     return(this.AddSearchPaths(paths, LIBRARY_SEARCH_PATHS_KEY, recursive));
 }
Ejemplo n.º 25
0
        public bool AddOtherLinkerFlags( PBXList flags )
        {
            bool modified = false;

            if( !ContainsKey( BUILDSETTINGS_KEY ) )
                this.Add( BUILDSETTINGS_KEY, new PBXDictionary() );

            foreach( string flag in flags ) {

                if( !((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey( OTHER_LDFLAGS_KEY ) ) {
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add( OTHER_LDFLAGS_KEY, new PBXList() );
                }
                else if ( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[ OTHER_LDFLAGS_KEY ] is string ) {
                    string tempString = (string)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY];
                    ((PBXDictionary)_data[BUILDSETTINGS_KEY])[ OTHER_LDFLAGS_KEY ] = new PBXList();
                    if( !string.IsNullOrEmpty(tempString) ) {
                        ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Add( tempString );
                    }
                }

                if( !((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Contains( flag ) ) {
                    ((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[OTHER_LDFLAGS_KEY]).Add( flag );
                    modified = true;
                }
            }

            return modified;
        }
Ejemplo n.º 26
0
 public bool AddHeaderSearchPaths(PBXList paths)
 {
     Debug.Log("AddHeaderSearchPaths " + paths);
     foreach (KeyValuePair<string, XCBuildConfiguration> buildConfig in buildConfigurations)
     {
         buildConfig.Value.AddHeaderSearchPaths(paths);
     }
     modified = true;
     return modified;
 }
		public bool AddLibrarySearchPaths( PBXList paths, bool recursive = true )
		{
			return this.AddSearchPaths( paths, LIBRARY_SEARCH_PATHS_KEY, recursive );
		}
		public bool AddFrameworkSearchPaths(PBXList paths, bool recursive = true)
		{
			return this.AddSearchPaths(paths, FRAMEWORK_SEARCH_PATHS_KEY, recursive);
		}
		public bool AddHeaderSearchPaths( PBXList paths, bool recursive = true )
		{
			return this.AddSearchPaths( paths, HEADER_SEARCH_PATHS_KEY, recursive );
		}
Ejemplo n.º 30
0
		public bool overwriteBuildSetting(string settingName, string settingValue) {
			Debug.Log ("overwriteBuildSetting " + settingName + " " + settingValue);
			bool modified = false;
			
			if( !ContainsKey( BUILDSETTINGS_KEY ) ) {
				Debug.Log ("creating key " + BUILDSETTINGS_KEY);
				this.Add( BUILDSETTINGS_KEY, new PBXSortedDictionary() );
			}
				
			if( !((PBXDictionary)_data[BUILDSETTINGS_KEY]).ContainsKey( settingName ) ) {
				Debug.Log("adding key " + settingName);
				 ((PBXDictionary)_data[BUILDSETTINGS_KEY]).Add( settingName, new PBXList() );
			}
			else if ( ((PBXDictionary)_data[BUILDSETTINGS_KEY])[ settingName ] is string ) {
				//Debug.Log("key is string:" + settingName);
				//string tempString = (string)((PBXDictionary)_data[BUILDSETTINGS_KEY])[settingName];
				((PBXDictionary)_data[BUILDSETTINGS_KEY])[ settingName ] = new PBXList();
				//((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[settingName]).Add( tempString );
			}
			
			if( !((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[settingName]).Contains( settingValue ) ) {
				Debug.Log("setting " + settingName + " to " + settingValue);
				((PBXList)((PBXDictionary)_data[BUILDSETTINGS_KEY])[settingName]).Add( settingValue );
				modified = true;
				}
			
			return modified;
		}			
		protected bool AddSearchPaths( string path, string key, bool recursive = true )
		{
			PBXList paths = new PBXList();
			paths.Add( path );
			return AddSearchPaths( paths, key, recursive );
		}
Ejemplo n.º 32
0
 public bool AddLibrarySearchPaths( PBXList paths )
 {
     foreach( KeyValuePair<string, XCBuildConfiguration> buildConfig in buildConfigurations ) {
         buildConfig.Value.AddLibrarySearchPaths( paths );
     }
     modified = true;
     return modified;
 }
Ejemplo n.º 33
0
		//CodeSignOnCopy
		public bool AddCodeSignOnCopy()
		{
			if( !_data.ContainsKey( SETTINGS_KEY ) )
				_data[ SETTINGS_KEY ] = new PBXDictionary();

			var settings = _data[ SETTINGS_KEY ] as PBXDictionary;
			if( !settings.ContainsKey( ATTRIBUTES_KEY ) ) {
				var attributes = new PBXList();
				attributes.Add( "CodeSignOnCopy" );
				attributes.Add( "RemoveHeadersOnCopy" );
				settings.Add( ATTRIBUTES_KEY, attributes );
			}
			else {
				var attributes = settings[ ATTRIBUTES_KEY ] as PBXList;
				attributes.Add( "CodeSignOnCopy" );
				attributes.Add( "RemoveHeadersOnCopy" );
			}
			return true;		
		}
Ejemplo n.º 34
0
 public bool AddOtherLinkerFlags( PBXList flags )
 {
     foreach( KeyValuePair<string, XCBuildConfiguration> buildConfig in buildConfigurations ) {
         buildConfig.Value.AddOtherLinkerFlags( flags );
     }
     modified = true;
     return modified;
 }
Ejemplo n.º 35
0
 public bool AddOtherLinkerFlags( string flag )
 {
     PBXList flags = new PBXList();
     flags.Add( flag );
     return AddOtherLinkerFlags( flags );
 }