| 287 | } |
| 288 | |
| 289 | void cmGlobalGhsMultiGenerator::WriteTopLevelProject(std::ostream& fout, |
| 290 | cmLocalGenerator* root) |
| 291 | { |
| 292 | this->WriteFileHeader(fout); |
| 293 | this->WriteMacros(fout, root); |
| 294 | this->WriteHighLevelDirectives(fout, root); |
| 295 | GhsMultiGpj::WriteGpjTag(GhsMultiGpj::PROJECT, fout); |
| 296 | |
| 297 | fout << "# Top Level Project File\n"; |
| 298 | |
| 299 | // Specify BSP option if supplied by user |
| 300 | // -- not all platforms require this entry in the project file |
| 301 | cmValue bspName = root->GetMakefile()->GetDefinition("GHS_BSP_NAME"); |
| 302 | if (!bspName.IsOff()) { |
| 303 | fout << " -bsp " << *bspName << '\n'; |
| 304 | } |
| 305 | |
| 306 | // Specify OS DIR if supplied by user |
| 307 | // -- not all platforms require this entry in the project file |
| 308 | cmValue osDir = root->GetMakefile()->GetDefinition("GHS_OS_DIR"); |
| 309 | if (!osDir.IsOff()) { |
| 310 | cmValue osDirOption = |
| 311 | root->GetMakefile()->GetDefinition("GHS_OS_DIR_OPTION"); |
| 312 | fout << " "; |
| 313 | if (osDirOption.IsOff()) { |
| 314 | fout << ""; |
| 315 | } else { |
| 316 | fout << *osDirOption; |
| 317 | } |
| 318 | fout << "\"" << osDir << "\"\n"; |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | void cmGlobalGhsMultiGenerator::WriteSubProjects(std::ostream& fout, |
| 323 | bool filterPredefined) |
no test coverage detected