MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteTopLevelProject

Method WriteTopLevelProject

Source/cmGlobalGhsMultiGenerator.cxx:289–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void 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
322void cmGlobalGhsMultiGenerator::WriteSubProjects(std::ostream& fout,
323 bool filterPredefined)

Callers 1

OutputTopLevelProjectMethod · 0.95

Calls 6

WriteFileHeaderMethod · 0.95
WriteMacrosMethod · 0.95
GetDefinitionMethod · 0.45
GetMakefileMethod · 0.45
IsOffMethod · 0.45

Tested by

no test coverage detected