cmake/Source/cmStateTypes.h

74 lines
1.3 KiB
C
Raw Normal View History

2017-04-14 19:02:05 +02:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2017-04-14 19:02:05 +02:00
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-04-14 19:02:05 +02:00
#include "cmLinkedTree.h"
namespace cmStateDetail {
struct SnapshotDataType;
2020-02-01 23:06:01 +01:00
using PositionType = cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator;
2017-04-14 19:02:05 +02:00
}
namespace cmStateEnums {
enum SnapshotType
{
BaseType,
BuildsystemDirectoryType,
2021-09-14 00:13:48 +02:00
DeferCallType,
2017-04-14 19:02:05 +02:00
FunctionCallType,
MacroCallType,
IncludeFileType,
InlineListFileType,
PolicyScopeType,
VariableScopeType
};
2017-07-20 19:35:53 +02:00
// There are multiple overlapping ranges represented here. Be aware that adding
// a value to this enumeration may cause failures in numerous places which
// assume details about the ordering.
2017-04-14 19:02:05 +02:00
enum TargetType
{
EXECUTABLE,
STATIC_LIBRARY,
SHARED_LIBRARY,
MODULE_LIBRARY,
OBJECT_LIBRARY,
UTILITY,
GLOBAL_TARGET,
INTERFACE_LIBRARY,
UNKNOWN_LIBRARY
};
enum CacheEntryType
{
BOOL = 0,
PATH,
FILEPATH,
STRING,
INTERNAL,
STATIC,
UNINITIALIZED
};
2017-07-20 19:35:53 +02:00
enum ArtifactType
{
RuntimeBinaryArtifact,
ImportLibraryArtifact
};
2017-04-14 19:02:05 +02:00
}
2023-07-02 19:51:09 +02:00
namespace cmTraceEnums {
/** \brief Define supported trace formats **/
enum class TraceOutputFormat
{
Undefined,
Human,
JSONv1
};
};