Exemplo n.º 1
0
        static private List <string> GetIncludeDirectories(IVCNMakeToolWrapper nmakeTool)
        {
            List <string> includeDirectories = new List <string>();

            if (nmakeTool != null && nmakeTool.isValid())
            {
                includeDirectories.AddRange(nmakeTool.GetIncludeSearchPaths());
            }
            else
            {
                Logging.Logging.LogWarning("No NMake Tool provided");
            }
            return(includeDirectories);
        }
Exemplo n.º 2
0
        static private List <string> GetPreprocessorDefinitions(IVCNMakeToolWrapper nmakeTool)
        {
            List <string> preprocessorDefinitions = new List <string>();

            if (nmakeTool != null && nmakeTool.isValid())
            {
                preprocessorDefinitions = nmakeTool.GetPreprocessorDefinitions()
                                          .Select(x => x.Replace("\\\"", "\""))
                                          .Where(x => !string.IsNullOrWhiteSpace(x))
                                          .Distinct()
                                          .ToList();
            }
            else
            {
                Logging.Logging.LogWarning("No NMake Tool provided");
            }
            return(preprocessorDefinitions);
        }