Exemple #1
0
 public ScopedParameter(Resolver resolver, string name, object value)
 {
     _resolver = resolver;
     _name     = name;
     _resolver.SetParameterImpl(_name, value, true);
 }
Exemple #2
0
        public static string GetLLVMOverridesSection(IVcxprojGenerationContext context, Resolver resolver)
        {
            if (Settings.OverridenLLVMInstallDir)
            {
                bool hasClangConfiguration = context.ProjectConfigurations.Any(conf => Options.GetObject <Options.Vc.General.PlatformToolset>(conf).IsLLVMToolchain());

                if (hasClangConfiguration)
                {
                    using (resolver.NewScopedParameter("custompropertyname", "LLVMInstallDir"))
                        using (resolver.NewScopedParameter("custompropertyvalue", Settings.LLVMInstallDir.TrimEnd(Util._pathSeparators))) // trailing separator will be added by LLVM.Cpp.Common.props
                            return(resolver.Resolve(Vcxproj.Template.Project.CustomProperty));
                }
            }

            return(null);
        }