resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmGhsMultiGpj.cxx
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #include "cmGhsMultiGpj.h"
4
5 #include <ostream>
6
7 static const char* GHS_TAG[] = { "[INTEGRITY Application]",
8                                  "[Library]",
9                                  "[Project]",
10                                  "[Program]",
11                                  "[Reference]",
12                                  "[Subproject]",
13                                  "[Custom Target]" };
14
15 const char* GhsMultiGpj::GetGpjTag(Types gpjType)
16 {
17   char const* tag;
18   switch (gpjType) {
19     case INTERGRITY_APPLICATION:
20     case LIBRARY:
21     case PROJECT:
22     case PROGRAM:
23     case REFERENCE:
24     case SUBPROJECT:
25     case CUSTOM_TARGET:
26       tag = GHS_TAG[gpjType];
27       break;
28     default:
29       tag = "";
30   }
31   return tag;
32 }
33
34 void GhsMultiGpj::WriteGpjTag(Types gpjType, std::ostream& fout)
35 {
36   char const* tag;
37   tag = GhsMultiGpj::GetGpjTag(gpjType);
38   fout << tag << std::endl;
39 }