You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Added program-only plugin support and made UHT script plugin aware - Added 3 generic script plugins with experimental Lua integration: ScriptGeneratorPlugin (UHT), ScriptPlugin (Engine), ScriptEditorPlugin (Editor-side) - Lua integration is disabled by default [CL 2058611 by Robert Manuszewski in Main branch]
60 lines
1.4 KiB
C#
60 lines
1.4 KiB
C#
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
using System.IO;
|
|
using UnrealBuildTool;
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
{
|
|
public class ScriptPlugin : ModuleRules
|
|
{
|
|
public ScriptPlugin(TargetInfo Target)
|
|
{
|
|
PublicIncludePaths.AddRange(
|
|
new string[] {
|
|
//"Programs/UnrealHeaderTool/Public",
|
|
// ... add other public include paths required here ...
|
|
}
|
|
);
|
|
|
|
PrivateIncludePaths.AddRange(
|
|
new string[] {
|
|
// ... add other private include paths required here ...
|
|
}
|
|
);
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Core",
|
|
"CoreUObject",
|
|
"Engine",
|
|
"InputCore"
|
|
// ... add other public dependencies that you statically link with here ...
|
|
}
|
|
);
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
// ... add private dependencies that you statically link with here ...
|
|
}
|
|
);
|
|
|
|
DynamicallyLoadedModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
// ... add any modules that your module loads dynamically here ...
|
|
}
|
|
);
|
|
|
|
if (!UnrealBuildTool.BuildingRocket())
|
|
{
|
|
var LuaPath = Path.Combine("..", "Plugins", "Script", "ScriptPlugin", "Source", "ScriptPlugin", "lua-5.2.3");
|
|
if (Directory.Exists(LuaPath))
|
|
{
|
|
Definitions.Add("WITH_LUA=1");
|
|
PrivateIncludePaths.Add(Path.Combine("ScriptPlugin", "lua-5.2.3", "src"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |