You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
Availability: Docs
|
|
Title: Unreal Build System Module Files
|
|
Crumbs: %ROOT%, Programming, Programming\UnrealBuildSystem
|
|
Description:Reference for the target files used by Unreal Build System when building targets.
|
|
Version: 4.16
|
|
|
|
[TOC (start:2 end:3)]
|
|
|
|
### Overview
|
|
|
|
Modules are the building blocks of UE4. The engine is implemented as a large collection of modules, and games supply their own modules to augment them. Each module encapsulates a set of functionality, and can provide a public interface and compile environment (with macros, include paths, and so on) for use by other modules.
|
|
|
|
Modules are declared through C# source files with a .build.cs extension, and are stored under your project's *Source* directory. The C++ source code belonging to a module is stored next to to the .build.cs file, or in subdirectories of it. Each .build.cs file declares a class deriving from the ModuleRules base class, and sets properties controlling how it should be built from its constructor. These .build.cs files are compiled by UnrealBuildTool and constructed to determine the overall compile environment.
|
|
|
|
The typical structure for a .build.cs file is as follows.
|
|
|
|
using UnrealBuildTool;
|
|
using System.Collections.Generic;
|
|
|
|
public class MyModule : ModuleRules
|
|
{
|
|
public MyModule(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
// Settings go here
|
|
}
|
|
}
|
|
|
|
[INCLUDE:Programming/UnrealBuildSystem/ModuleFiles/ModuleFilesProperties]
|