mirror of
https://github.com/reactos/CMake.git
synced 2025-02-26 06:55:34 +00:00

-- File handling cleanup -- Rename some functions to clarify what they do -- Update to source file path conversion; only perform conversion when using windows
38 lines
992 B
C++
38 lines
992 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#include "cmGhsMultiGpj.h"
|
|
|
|
#include "cmGeneratedFileStream.h"
|
|
|
|
static const char* GHS_TAG[] = { "[INTEGRITY Application]",
|
|
"[Library]",
|
|
"[Project]",
|
|
"[Program]",
|
|
"[Reference]",
|
|
"[Subproject]" };
|
|
|
|
const char* GhsMultiGpj::GetGpjTag(Types const gpjType)
|
|
{
|
|
char const* tag;
|
|
switch (gpjType) {
|
|
case INTERGRITY_APPLICATION:
|
|
case LIBRARY:
|
|
case PROJECT:
|
|
case PROGRAM:
|
|
case REFERENCE:
|
|
case SUBPROJECT:
|
|
tag = GHS_TAG[gpjType];
|
|
break;
|
|
default:
|
|
tag = "";
|
|
}
|
|
return tag;
|
|
}
|
|
|
|
void GhsMultiGpj::WriteGpjTag(Types const gpjType, std::ostream& fout)
|
|
{
|
|
char const* tag;
|
|
tag = GhsMultiGpj::GetGpjTag(gpjType);
|
|
fout << tag << std::endl;
|
|
}
|