Files
UnrealEngineUWP/Engine/Plugins/Experimental/NeuralNetworkInference/Source/Private/ModelProtoFileReader/ModelProtoFileReader.Build.cs
gines hidalgo ced06d352b Cleanup nni legacy:
- ModelProtoConverter and ModelProtoFileReader convined again (as non-unity is breaking this anyway).

#rb Francisco.Vicente
_codereview Francisco.Vicente
#rnx

#ROBOMERGE-AUTHOR: gines.hidalgo
#ROBOMERGE-SOURCE: CL 18114237 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v889-18060218)

[CL 18124350 by gines hidalgo in ue5-release-engine-test branch]
2021-11-09 23:29:21 -05:00

54 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class ModelProtoFileReader : ModuleRules
{
public ModelProtoFileReader( ReadOnlyTargetRules Target ) : base( Target )
{
// 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");
}
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(
new string[] {
System.IO.Path.Combine(ModuleDirectory, "..")
}
);
PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "Generated"));
PublicDependencyModuleNames.AddRange
(
new string[] {
"Core",
"ModelProto"
}
);
PrivateDependencyModuleNames.AddRange
(
new string[] {
// "ONNXRuntimeProto",
"ThirdPartyHelperAndDLLLoader"
}
);
if (bIsModelProtoFileReaderSupported)
{
PrivateDependencyModuleNames.AddRange
(
new string[] {
"Protobuf"
}
);
}
}
}