2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-04-29 06:45:18 -04:00
|
|
|
using System.IO;
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
|
|
|
{
|
|
|
|
|
public class ScriptGeneratorPlugin : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public ScriptGeneratorPlugin(TargetInfo Target)
|
|
|
|
|
{
|
|
|
|
|
PublicIncludePaths.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Programs/UnrealHeaderTool/Public",
|
|
|
|
|
// ... add other public include paths required here ...
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PrivateIncludePaths.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"Developer/ScriptGeneratorPlugin/Private",
|
|
|
|
|
// ... add other private include paths required here ...
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
"Core",
|
|
|
|
|
"CoreUObject",
|
|
|
|
|
// ... add other public dependencies that you statically link with here ...
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
// ... add private dependencies that you statically link with here ...
|
2015-03-27 03:51:19 -04:00
|
|
|
"Projects",
|
2014-04-29 06:45:18 -04:00
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
DynamicallyLoadedModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
// ... add any modules that your module loads dynamically here ...
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2015-03-20 15:42:04 -04:00
|
|
|
// This checks only for UHT target platform, not the target platform of the game we're building so it's important
|
|
|
|
|
// to make sure Lua is compiled for all supported platforms
|
|
|
|
|
var LuaLibDirectory = Path.Combine("..", "Plugins", "ScriptPlugin", "Source", "Lua", "Lib", Target.Platform.ToString(), "Release");
|
|
|
|
|
var LuaLibPath = Path.Combine(LuaLibDirectory, "Lua.lib");
|
|
|
|
|
if (File.Exists(LuaLibPath))
|
2014-04-29 06:45:18 -04:00
|
|
|
{
|
2015-03-20 15:42:04 -04:00
|
|
|
Log.TraceVerbose("ScriptGenerator LUA Integration enabled");
|
|
|
|
|
Definitions.Add("WITH_LUA=1");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Log.TraceVerbose("ScriptGenerator LUA Integration NOT enabled");
|
2014-04-29 06:45:18 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|