56 lines
1.5 KiB
C#
56 lines
1.5 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class CookedEditor : ModuleRules
|
|
{
|
|
public CookedEditor(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
if (!Target.bCompileAgainstEngine)
|
|
{
|
|
throw new BuildException("CookedEditor module is meant for cooking only operations, and currently requires Engine to be enabled. This module is being included in a non-Engine-enabled target.");
|
|
}
|
|
|
|
PrivateDependencyModuleNames.AddRange(new string[]
|
|
{
|
|
"Core",
|
|
"AssetRegistry",
|
|
"NetCore",
|
|
"CoreOnline",
|
|
"CoreUObject",
|
|
"Projects",
|
|
"Engine",
|
|
});
|
|
|
|
PublicDependencyModuleNames.AddRange(new string[]
|
|
{
|
|
"TargetPlatform",
|
|
});
|
|
|
|
PublicIncludePathModuleNames.Add("WindowsTargetPlatformSettings");
|
|
PublicIncludePathModuleNames.Add("WindowsTargetPlatformControls");
|
|
|
|
if (IsPlatformAvailable(UnrealTargetPlatform.Linux, bIgnoreSDKCheck: true))
|
|
{
|
|
PublicDefinitions.Add("COOKEDEDITOR_WITH_LINUXTARGETPLATFORM=1");
|
|
PublicIncludePathModuleNames.Add("LinuxTargetPlatformSettings");
|
|
PublicIncludePathModuleNames.Add("LinuxTargetPlatformControls");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("COOKEDEDITOR_WITH_LINUXTARGETPLATFORM=0");
|
|
}
|
|
|
|
if (IsPlatformAvailable(UnrealTargetPlatform.Mac))
|
|
{
|
|
PublicDefinitions.Add("COOKEDEDITOR_WITH_MACTARGETPLATFORM=1");
|
|
PublicIncludePathModuleNames.Add("MacTargetPlatformSettings");
|
|
PublicIncludePathModuleNames.Add("MacTargetPlatformControls");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("COOKEDEDITOR_WITH_MACTARGETPLATFORM=0");
|
|
}
|
|
}
|
|
}
|