コード例 #1
0
        public override void UpdateVars()
        {
            baseConfigurationReference = GetPropertyString("baseConfigurationReference");

            entries = new SortedDictionary <string, BuildConfigEntryData>();
            if (m_Properties.Contains("buildSettings"))
            {
                var dict = m_Properties["buildSettings"].AsDict();
                foreach (var key in dict.values.Keys)
                {
                    var value = dict[key];
                    if (value is PBXElementString)
                    {
                        if (entries.ContainsKey(key))
                        {
                            entries[key].val.Add(value.AsString());
                        }
                        else
                        {
                            entries.Add(key, BuildConfigEntryData.FromNameValue(key, value.AsString()));
                        }
                    }
                    else if (value is PBXElementArray)
                    {
                        foreach (var pvalue in value.AsArray().values)
                        {
                            if (pvalue is PBXElementString)
                            {
                                if (entries.ContainsKey(key))
                                {
                                    entries[key].val.Add(pvalue.AsString());
                                }
                                else
                                {
                                    entries.Add(key, BuildConfigEntryData.FromNameValue(key, pvalue.AsString()));
                                }
                            }
                        }
                    }
                }
            }
        }
コード例 #2
0
 public void SetProperty(string name, string value)
 {
     entries[name] = BuildConfigEntryData.FromNameValue(name, EscapeWithQuotesIfNeeded(name, value));
 }