| 195 | } |
| 196 | |
| 197 | std::string cmGlobalNinjaGenerator::EncodePath(std::string const& path) |
| 198 | { |
| 199 | std::string result = path; |
| 200 | #ifdef _WIN32 |
| 201 | if (this->IsGCCOnWindows()) |
| 202 | std::replace(result.begin(), result.end(), '\\', '/'); |
| 203 | else |
| 204 | std::replace(result.begin(), result.end(), '/', '\\'); |
| 205 | #endif |
| 206 | this->EncodeLiteral(result); |
| 207 | cmSystemTools::ReplaceString(result, " ", "$ "); |
| 208 | cmSystemTools::ReplaceString(result, ":", "$:"); |
| 209 | return result; |
| 210 | } |
| 211 | |
| 212 | void cmGlobalNinjaGenerator::WriteBuild(std::ostream& os, |
| 213 | cmNinjaBuild const& build, |
no test coverage detected