https://github.com/Kitware/CMake
Tip revision: 26a0e200e5f4abe8268235c9fdb23a2612a1b3b1 authored by Brad King on 04 September 2019, 13:50:07 UTC
CMake 3.15.3
CMake 3.15.3
Tip revision: 26a0e20
cmGhsMultiGpj.cxx
/* 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 <ostream>
static const char* GHS_TAG[] = { "[INTEGRITY Application]",
"[Library]",
"[Project]",
"[Program]",
"[Reference]",
"[Subproject]",
"[Custom Target]" };
const char* GhsMultiGpj::GetGpjTag(Types gpjType)
{
char const* tag;
switch (gpjType) {
case INTERGRITY_APPLICATION:
case LIBRARY:
case PROJECT:
case PROGRAM:
case REFERENCE:
case SUBPROJECT:
case CUSTOM_TARGET:
tag = GHS_TAG[gpjType];
break;
default:
tag = "";
}
return tag;
}
void GhsMultiGpj::WriteGpjTag(Types gpjType, std::ostream& fout)
{
char const* tag;
tag = GhsMultiGpj::GetGpjTag(gpjType);
fout << tag << std::endl;
}