public static PathSanitize ( string path ) : string | ||
path | string | |
Résultat | string |
protected override string GenerateResponseFileCommands() { StringBuilder templateStr = new StringBuilder(Utils.EST_MAX_CMDLINE_LEN); if (m_currentSourceItem != null) { string sourcePath = Utils.PathSanitize(m_currentSourceItem.ToString()); // -c = Compile the C/C++ file // -MD = Generate dependency .d file templateStr.Append(m_propXmlParse.ProcessProperties(m_currentSourceItem)); templateStr.Append(" -c -MD "); templateStr.Append(sourcePath); // Remove rtti stuff from plain C builds. -Wall generates warnings otherwise. string compileAs = m_currentSourceItem.GetMetadata("CompileAs"); if ((compileAs != null) && (compileAs == "CompileAsC")) { templateStr.Replace("-fno-rtti", ""); templateStr.Replace("-frtti", ""); } } return(templateStr.ToString()); }
protected override string GenerateResponseFileCommands() { StringBuilder builder = new StringBuilder(Utils.EST_MAX_CMDLINE_LEN); builder.Append("rcs " + Utils.PathSanitize(OutputFile) + " "); foreach (ITaskItem item in Sources) { builder.Append(Utils.PathSanitize(item.ToString()) + " "); } return(builder.ToString()); }
protected string FixString(string str) { if (m_quoteFix == false) { // Just fix the slashes, no quoting return(Utils.PathFixSlashes(str)); } else { // Slash fixing AND possible quoting return(Utils.PathSanitize(str)); } }
protected override string GenerateResponseFileCommands() { StringBuilder templateStr = new StringBuilder(Utils.EST_MAX_CMDLINE_LEN); foreach (ITaskItem sourceFile in Sources) { templateStr.Append(Utils.PathSanitize(sourceFile.GetMetadata("Identity"))); templateStr.Append(" "); } templateStr.Append(m_propXmlParse.ProcessProperties(Sources[0])); return(templateStr.ToString()); }