cmake/Source/cmGhsMultiGpj.cxx

40 lines
1.0 KiB
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2015-08-17 11:37:30 +02:00
#include "cmGhsMultiGpj.h"
2019-11-11 23:01:05 +01:00
#include <ostream>
2015-08-17 11:37:30 +02:00
2019-11-11 23:01:05 +01:00
static const char* GHS_TAG[] = { "[INTEGRITY Application]",
"[Library]",
"[Project]",
"[Program]",
"[Reference]",
"[Subproject]",
"[Custom Target]" };
const char* GhsMultiGpj::GetGpjTag(Types gpjType)
2015-08-17 11:37:30 +02:00
{
2016-07-09 11:21:54 +02:00
char const* tag;
switch (gpjType) {
2015-08-17 11:37:30 +02:00
case INTERGRITY_APPLICATION:
case LIBRARY:
case PROJECT:
case PROGRAM:
case REFERENCE:
case SUBPROJECT:
2019-11-11 23:01:05 +01:00
case CUSTOM_TARGET:
tag = GHS_TAG[gpjType];
2015-08-17 11:37:30 +02:00
break;
default:
tag = "";
2016-07-09 11:21:54 +02:00
}
2019-11-11 23:01:05 +01:00
return tag;
}
void GhsMultiGpj::WriteGpjTag(Types gpjType, std::ostream& fout)
{
char const* tag;
tag = GhsMultiGpj::GetGpjTag(gpjType);
fout << tag << std::endl;
2015-08-17 11:37:30 +02:00
}