BuildSettingMatchesConfiguration() public method

public BuildSettingMatchesConfiguration ( DubBuildSetting sett, MonoDevelop.Projects.ConfigurationSelector config ) : bool
sett DubBuildSetting
config MonoDevelop.Projects.ConfigurationSelector
return bool
Exemplo n.º 1
0
        public void TryGetTargetFileProperties(DubProject prj, ConfigurationSelector configuration, ref string targetType, ref string targetName, ref string targetPath)
        {
            List <DubBuildSetting> l;

            if (TryGetValue(DubBuildSettings.TargetNameProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, configuration))
                    {
                        targetName = sett.Values [0];
                    }
                }
            }

            if (TryGetValue(DubBuildSettings.TargetPathProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, configuration))
                    {
                        targetPath = sett.Values [0];
                    }
                }
            }

            TryGetTargetTypeProperty(prj, configuration, ref targetType);
        }
Exemplo n.º 2
0
        public void TryGetTargetTypeProperty(DubProject prj, ConfigurationSelector cfg, ref string targetType)
        {
            List <DubBuildSetting> l;

            if (TryGetValue(DubBuildSettings.TargetTypeProperty, out l))
            {
                foreach (var sett in l)
                {
                    if (prj.BuildSettingMatchesConfiguration(sett, cfg))
                    {
                        targetType = sett.Values [0];
                    }
                }
            }
        }