2021-08-11 11:51:48 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class ModelProtoFileReader : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public ModelProtoFileReader( ReadOnlyTargetRules Target ) : base( Target )
|
|
|
|
|
{
|
2021-11-09 23:29:21 -05:00
|
|
|
// Define when ModelProtoFileReader is available
|
|
|
|
|
// Disabled to avoid linking error when compiled in-game with UEAndORT back end, Schema*.txt/*.cpp files also modified
|
|
|
|
|
bool bIsModelProtoFileReaderSupported = false; //(Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Linux || Target.Platform == UnrealTargetPlatform.Mac);
|
|
|
|
|
if (bIsModelProtoFileReaderSupported)
|
|
|
|
|
{
|
|
|
|
|
PublicDefinitions.Add("WITH_MODEL_PROTO_CONVERTER_SUPPORT");
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 11:51:48 -04:00
|
|
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
|
|
|
|
|
|
|
|
|
PublicIncludePaths.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
System.IO.Path.Combine(ModuleDirectory, "..")
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2021-11-09 23:29:21 -05:00
|
|
|
PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "Generated"));
|
|
|
|
|
|
2021-08-11 11:51:48 -04:00
|
|
|
PublicDependencyModuleNames.AddRange
|
|
|
|
|
(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Core",
|
|
|
|
|
"ModelProto"
|
|
|
|
|
}
|
2021-11-09 23:29:21 -05:00
|
|
|
);
|
2021-08-11 11:51:48 -04:00
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.AddRange
|
|
|
|
|
(
|
|
|
|
|
new string[] {
|
2021-11-09 23:29:21 -05:00
|
|
|
// "ONNXRuntimeProto",
|
|
|
|
|
"ThirdPartyHelperAndDLLLoader"
|
2021-08-11 11:51:48 -04:00
|
|
|
}
|
|
|
|
|
);
|
2021-11-09 23:29:21 -05:00
|
|
|
|
|
|
|
|
if (bIsModelProtoFileReaderSupported)
|
|
|
|
|
{
|
|
|
|
|
PrivateDependencyModuleNames.AddRange
|
|
|
|
|
(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Protobuf"
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
2021-08-11 11:51:48 -04:00
|
|
|
}
|
|
|
|
|
}
|