2021-09-29 17:45:16 -04:00
// Copyright Epic Games, Inc. All Rights Reserved.
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" ,
} ) ;
2024-02-15 11:46:19 -05:00
PublicIncludePathModuleNames . Add ( "WindowsTargetPlatformSettings" ) ;
PublicIncludePathModuleNames . Add ( "WindowsTargetPlatformControls" ) ;
2021-09-29 17:45:16 -04:00
2023-04-26 16:42:00 -04:00
if ( IsPlatformAvailable ( UnrealTargetPlatform . Linux ) )
{
PublicDefinitions . Add ( "COOKEDEDITOR_WITH_LINUXTARGETPLATFORM=1" ) ;
2024-02-15 11:46:19 -05:00
PublicIncludePathModuleNames . Add ( "LinuxTargetPlatformSettings" ) ;
PublicIncludePathModuleNames . Add ( "LinuxTargetPlatformControls" ) ;
2023-04-26 16:42:00 -04:00
}
else
{
PublicDefinitions . Add ( "COOKEDEDITOR_WITH_LINUXTARGETPLATFORM=0" ) ;
}
2021-09-29 17:45:16 -04:00
2023-04-26 16:42:00 -04:00
if ( IsPlatformAvailable ( UnrealTargetPlatform . Mac ) )
{
PublicDefinitions . Add ( "COOKEDEDITOR_WITH_MACTARGETPLATFORM=1" ) ;
2024-02-15 11:46:19 -05:00
PublicIncludePathModuleNames . Add ( "MacTargetPlatformSettings" ) ;
PublicIncludePathModuleNames . Add ( "MacTargetPlatformControls" ) ;
2023-04-26 16:42:00 -04:00
}
else
{
PublicDefinitions . Add ( "COOKEDEDITOR_WITH_MACTARGETPLATFORM=0" ) ;
}
2021-09-29 17:45:16 -04:00
}
}