Files
UnrealEngineUWP/Engine/Documentation/Source/Programming/UnrealBuildSystem/TargetFiles/TargetFiles.INT.udn
Max Chen 4561801a81 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) @7119039
#rb none

[CL 7120528 by Max Chen in Dev-Editor branch]
2019-06-21 01:21:43 -04:00

43 lines
1.8 KiB
Plaintext

Availability: Docs
Title: Unreal Build System Target Files
Crumbs: %ROOT%, Programming, Programming\UnrealBuildSystem
Description:Reference for the target files used by Unreal Build System when building targets.
Version: 4.16
Parent:Programming/UnrealBuildSystem
Order:
Type:reference
Tags:Unreal Build System
[TOC (start:2 end:3)]
### Overview
UnrealBuildTool supports building several target types:
* **Game** - A standalone game which requires cooked data to run.
* **Client** - Same as Game, but does not include any server code. Useful for networked games.
* **Server** - Same as Game, but does not include any client code. Useful for dedicated servers in networked games.
* **Editor** - A target which extends the Unreal Editor.
* **Program** - A standalone utility program built on top of the Unreal Engine.
Targets are declared through C# source files with a .target.cs extension, and are stored under your project's *Source* directory. Each .target.cs file declares a class deriving from the TargetRules base class, and sets properties controlling how it should be built from its constructor. When asked to build a target, UnrealBuildTool will compile your target.cs file and construct the class inside it to determine its settings.
The name of the class must match the name of the file it's declared in followed by 'Target' (so for example, MyProject.target.cs defines the class 'MyProjectTarget').
The typical structure for a target file is as follows.
using UnrealBuildTool;
using System.Collections.Generic;
public class MyProjectTarget : TargetRules
{
public MyProjectTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
// Other properties go here
}
}
[INCLUDE:Programming/UnrealBuildSystem/TargetFiles/TargetFilesProperties]