mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Files
4.23-uwp
30 lines
1.9 KiB
Plaintext
30 lines
1.9 KiB
Plaintext
INTSourceChangelist:3372845
|
|||
Availability:Public
|
|||
Title:アンリアル ビルド システムのモジュール ファイル
|
|||
Crumbs: %ROOT%, Programming, Programming\UnrealBuildSystem
|
|||
Description:ターゲットのビルド時にアンリアル ビルド システムが使用するターゲット ファイルのリファレンス
|
|||
Version:4.16
|
|||
|
|||
[TOC (start:2 end:3)]
|
|||
|
|||
### 概要
|
|||
|
|||
モジュールは UE4 のビルド ブロックです。エンジンは、モジュールの大きなコレクションとして実装され、ゲームは独自のモジュールでそれらを拡張します。各モジュールには機能一式がカプセル化されており、パブリック インターフェースの提供および他のモジュールが使用する環境 (マクロの使用、パスのインクルードなど) のコンパイルが可能です。
|
|||
|
|||
モジュールは .build.cs 拡張子のついた C# ソース ファイルで宣言され、プロジェクトの *Source* ディレクトリに格納されます。モジュールに属するこの C++ ソース コードは .build.cs ファイルの隣、もしくはそのサブディレクトリに格納されます。各.build.cs ファイルは ModuleRules 基本クラスから派生したクラスを宣言し、コンストラクタからのビルド方法を調節するプロパティを設定します。これらの .build.cs ファイルは UnrealBuildTool でコンパイルされ、コンパイル環境全体を判断するために構築されます。
|
|||
|
|||
以下が、代表的な .build.cs ファイルの構造体です。
|
|||
|
|||
using UnrealBuildTool;
|
|||
using System.Collections.Generic;
|
|||
|
|||
public class MyModule :ModuleRules
|
|||
{
|
|||
public MyModule(ReadOnlyTargetRules Target) : base(Target)
|
|||
{
|
|||
// Settings go here
|
|||
}
|
|||
}
|
|||
|
|||
[INCLUDE:Programming/UnrealBuildSystem/ModuleFiles/ModuleFilesProperties]
|