Files
FlaxEngine/Source/Tools/Flax.Build/Build/GameTarget.cs
2021-01-02 14:28:49 +01:00

55 lines
1.5 KiB
C#

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
namespace Flax.Build
{
/// <summary>
/// The build target that builds the game project modules for standalone game.
/// </summary>
/// <seealso cref="Flax.Build.ProjectTarget" />
public abstract class GameProjectTarget : ProjectTarget
{
/// <inheritdoc />
public override void Init()
{
base.Init();
// Setup target properties
OutputType = TargetOutputType.Library;
ConfigurationName = "Game";
/*// Building game target into single executable
LinkType = TargetLinkType.Monolithic;
OutputType = TargetOutputType.Executable;
Modules.Add("Main");*/
}
}
/// <summary>
/// The build target that builds the game project modules for editor.
/// </summary>
/// <seealso cref="Flax.Build.ProjectTarget" />
public abstract class GameProjectEditorTarget : ProjectTarget
{
/// <inheritdoc />
public override void Init()
{
base.Init();
// Setup target properties
IsEditor = true;
OutputType = TargetOutputType.Library;
Platforms = new[]
{
TargetPlatform.Windows,
};
Architectures = new[]
{
TargetArchitecture.x64,
TargetArchitecture.x86,
};
ConfigurationName = "Editor";
GlobalDefinitions.Add("USE_EDITOR");
}
}
}