Esempio n. 1
0
        public DataAccess(TargetInfo Target)
        {
            PrivateIncludePaths.AddRange(
                new string[] {
                "DataAccess/Private"
            }
                );

            PrivateDependencyModuleNames.AddRange(
                new string[] {
                "Core",
                "CoreUObject"
            }
                );


            if (!UnrealBuildTool.BuildingRocket())
            {
                var SqlitePath = Path.Combine(UnrealBuildTool.GetUProjectPath(), "Plugins", "DataAccess", "Source", "DataAccess", "ThirdParty", "Sqlite", "3.8.5");
                if (Directory.Exists(SqlitePath))
                {
                    Definitions.Add("WITH_SQLITE=1");
                    PrivateIncludePaths.Add(Path.Combine("DataAccess", "ThirdParty", "Sqlite", "3.8.5"));
                }
            }
        }
Esempio n. 2
0
        public KlawrRuntimePlugin(TargetInfo Target)
        {
            PublicIncludePaths.AddRange(
                new string[] {
                // ... 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 ...
            }
                );

            if (UEBuildConfiguration.bBuildEditor == true)
            {
                PublicDependencyModuleNames.AddRange(
                    new string[]
                {
                    "UnrealEd",
                }
                    );
            }

            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 KlawrPath = Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "Klawr");
                if (Directory.Exists(KlawrPath))
                {
                    Definitions.Add("WITH_KLAWR=1");
                    PrivateDependencyModuleNames.Add("KlawrClrHostNative");
                }
            }
        }
Esempio n. 3
0
        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 ...
            }
                );

            DynamicallyLoadedModuleNames.AddRange(
                new string[]
            {
                // ... add any modules that your module loads dynamically here ...
            }
                );

            if (!UnrealBuildTool.BuildingRocket())
            {
                // 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))
                {
                    Log.TraceVerbose("ScriptGenerator LUA Integration enabled");
                    Definitions.Add("WITH_LUA=1");
                }
                else
                {
                    Log.TraceVerbose("ScriptGenerator LUA Integration NOT enabled");
                }
            }
        }
Esempio n. 4
0
        public KlawrCodeGeneratorPlugin(TargetInfo Target)
        {
            PublicIncludePaths.AddRange(
                new string[] {
                // FIXME: This path only works when building the plugin as part of the engine!
                "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",
                // ... 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 KlawrPath = Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "Klawr");
                if (Directory.Exists(KlawrPath))
                {
                    Definitions.Add("WITH_KLAWR=1");
                }
            }
        }
Esempio n. 5
0
        public TwitchLiveStreaming(TargetInfo Target)
        {
            PrivateDependencyModuleNames.AddRange(
                new string[]
            {
                "Core",
                "CoreUObject",
                "Engine",
                "RenderCore",
                "RHI"
            });

            DynamicallyLoadedModuleNames.AddRange(
                new string[]
            {
                "Settings"
            });

            PublicIncludePathModuleNames.AddRange(
                new string[]
            {
                "Settings"
            });

            bool bHaveTwitchSDK =
                !UnrealBuildTool.BuildingRocket() &&                    // @todo: Twitch support disabled in released builds until it is cleared by legal
                (System.IO.Directory.Exists(System.IO.Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "Twitch")) &&
                 System.IO.Directory.Exists(System.IO.Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "Twitch", "Twitch-6.17"))) ||
                (System.IO.Directory.Exists(System.IO.Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "NotForLicensees")) &&
                 System.IO.Directory.Exists(System.IO.Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "NotForLicensees", "Twitch")) &&
                 System.IO.Directory.Exists(System.IO.Path.Combine(UEBuildConfiguration.UEThirdPartySourceDirectory, "NotForLicensees", "Twitch", "Twitch-6.17")));

            if (bHaveTwitchSDK)
            {
                AddThirdPartyPrivateStaticDependencies(Target, "Twitch");
                Definitions.Add("WITH_TWITCH=1");
            }
            else
            {
                Definitions.Add("WITH_TWITCH=0");
            }
        }
Esempio n. 6
0
        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",
                "SlateCore",
                // ... add other public dependencies that you statically link with here ...
            }
                );

            if (UEBuildConfiguration.bBuildEditor == true)
            {
                PublicDependencyModuleNames.AddRange(
                    new string[]
                {
                    "UnrealEd",
                }
                    );
            }


            DynamicallyLoadedModuleNames.AddRange(
                new string[]
            {
                // ... add any modules that your module loads dynamically here ...
            }
                );

            if (!UnrealBuildTool.BuildingRocket())
            {
                var LuaPath         = Path.Combine("..", "Plugins", "ScriptPlugin", "Source", "Lua");
                var LuaLibDirectory = Path.Combine(LuaPath, "Lib", Target.Platform.ToString(), "Release");
                var LuaLibPath      = Path.Combine(LuaLibDirectory, "Lua.lib");
                if (File.Exists(LuaLibPath))
                {
                    Definitions.Add("WITH_LUA=1");

                    // Path to Lua include files
                    var IncludePath = Path.GetFullPath(Path.Combine(LuaPath, "Include"));
                    PrivateIncludePaths.Add(IncludePath);

                    // Lib file
                    PublicLibraryPaths.Add(LuaLibDirectory);
                    PublicAdditionalLibraries.Add(LuaLibPath);

                    Log.TraceVerbose("LUA Integration enabled: {0}", IncludePath);
                }
                else
                {
                    Log.TraceVerbose("LUA Integration NOT enabled");
                }
            }
        }