2021-09-29 17:45:16 -04:00
// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO ;
2023-02-22 18:02:09 -05:00
using UnrealBuildTool ;
2021-09-29 17:45:16 -04:00
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" ,
} ) ;
2023-02-22 18:04:08 -05:00
PublicIncludePathModuleNames . Add ( "WindowsTargetPlatform" ) ;
2021-09-29 17:45:16 -04:00
// we currently need to pull in desktop templates that are private
// @todo move these out to Public so they can be extended like this
string EnginePath = Path . GetFullPath ( Target . RelativeEnginePath ) ;
PublicIncludePaths . AddRange (
new string [ ] {
Path . Combine ( EnginePath , "Source/Developer/Linux/LinuxTargetPlatform/Private" ) ,
Path . Combine ( EnginePath , "Source/Developer/Mac/MacTargetPlatform/Private" ) ,
}
) ;
}
}