2021-05-13 20:42:14 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
2021-05-21 01:32:29 -04:00
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using EpicGames.Core;
|
2021-05-13 20:42:14 -04:00
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
2021-05-21 01:32:29 -04:00
|
|
|
public class BaseTextureBuildWorker : ModuleRules
|
2021-05-13 20:42:14 -04:00
|
|
|
{
|
2021-05-21 01:32:29 -04:00
|
|
|
public BaseTextureBuildWorker(ReadOnlyTargetRules Target) : base(Target)
|
2021-05-13 20:42:14 -04:00
|
|
|
{
|
|
|
|
|
PrivateIncludePathModuleNames.AddRange(new string[]
|
|
|
|
|
{
|
|
|
|
|
"CoreUObject",
|
|
|
|
|
"Engine",
|
|
|
|
|
"DerivedDataCache",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(new string[]
|
|
|
|
|
{
|
|
|
|
|
"Core",
|
|
|
|
|
"DerivedDataBuildWorker",
|
|
|
|
|
"TextureBuild",
|
|
|
|
|
"TextureFormat",
|
|
|
|
|
"TextureFormatUncompressed",
|
|
|
|
|
});
|
2021-05-21 01:32:29 -04:00
|
|
|
|
|
|
|
|
// Determine if TextureFormatOodle is enabled.
|
|
|
|
|
var TextureFormatOodleUPluginFile = FileReference.Combine(new DirectoryReference(EngineDirectory), "Plugins/Developer/TextureFormatOodle/TextureFormatOodle.uplugin");
|
|
|
|
|
var TextureFormatOodlePlugin = new PluginInfo(TextureFormatOodleUPluginFile, PluginType.Engine);
|
|
|
|
|
|
|
|
|
|
bool bTextureFormatOodlePluginEnabled =
|
|
|
|
|
Enum.GetValues(typeof(UnrealTargetConfiguration)).Cast<UnrealTargetConfiguration>().Any(config
|
|
|
|
|
=> Plugins.IsPluginEnabledForTarget(TextureFormatOodlePlugin, null, Target.Platform, config, TargetType.Program));
|
|
|
|
|
|
|
|
|
|
if (bTextureFormatOodlePluginEnabled)
|
|
|
|
|
{
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(new string[]
|
|
|
|
|
{
|
|
|
|
|
"TextureFormatOodle",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-13 20:42:14 -04:00
|
|
|
}
|
|
|
|
|
}
|