示例#1
0
    public StandaloneRenderer(TargetInfo Target)
    {
        PrivateIncludePaths.Add("Developer/StandaloneRenderer/Private");

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

        AddThirdPartyPrivateStaticDependencies(Target, "OpenGL");

        if ((Target.Platform == UnrealTargetPlatform.Win64) ||
            (Target.Platform == UnrealTargetPlatform.Win32))
        {
            // @todo: This should be private? Not sure!!
            AddThirdPartyPrivateStaticDependencies(Target, "DX11");
        }

        if (Target.Platform == UnrealTargetPlatform.Linux)
        {
            AddThirdPartyPrivateStaticDependencies(Target, "SDL2");
        }

        if (Target.Platform == UnrealTargetPlatform.IOS)
        {
            PublicFrameworks.AddRange(new string[] { "OpenGLES", "GLKit" });
            // weak for IOS8 support since CAMetalLayer is in QuartzCore
            PublicWeakFrameworks.AddRange(new string[] { "QuartzCore" });
        }
    }
    public StandaloneRenderer(ReadOnlyTargetRules Target) : base(Target)
    {
        PrivateIncludePaths.Add("Developer/StandaloneRenderer/Private");

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

        AddEngineThirdPartyPrivateStaticDependencies(Target, "OpenGL");

        if ((Target.Platform == UnrealTargetPlatform.Win64) ||
            (Target.Platform == UnrealTargetPlatform.Win32))
        {
            // @todo: This should be private? Not sure!!
            AddEngineThirdPartyPrivateStaticDependencies(Target, "DX11");
        }
        else if (Target.Platform == UnrealTargetPlatform.Mac)
        {
            PublicFrameworks.Add("QuartzCore");
        }
        else if (Target.Platform == UnrealTargetPlatform.Linux)
        {
            AddEngineThirdPartyPrivateStaticDependencies(Target, "SDL2");
        }
        else if (Target.Platform == UnrealTargetPlatform.IOS || Target.Platform == UnrealTargetPlatform.TVOS)
        {
            PublicFrameworks.AddRange(new string[] { "OpenGLES", "GLKit" });
            // weak for IOS8 support since CAMetalLayer is in QuartzCore
            PublicWeakFrameworks.AddRange(new string[] { "QuartzCore" });
        }

        RuntimeDependencies.Add("$(EngineDir)/Shaders/StandaloneRenderer/...", StagedFileType.UFS);
    }
示例#3
0
    public Adjust(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicIncludePaths.AddRange(new string[] {});
        PrivateIncludePaths.AddRange(new string[] { "Adjust/Private" });
        PrivateIncludePathModuleNames.AddRange(new string[] { "Settings" });
        PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Projects" });
        PrivateDependencyModuleNames.AddRange(new string[] {});
        DynamicallyLoadedModuleNames.AddRange(new string[] {});

        if (Target.Platform == UnrealTargetPlatform.IOS)
        {
            bool   bHasAdjust   = false;
            string AdjustNFLDir = "";
            try
            {
                AdjustNFLDir = System.IO.Path.Combine(ModuleDirectory, "../ThirdParty/IOS");
                bHasAdjust   = System.IO.Directory.Exists(AdjustNFLDir);
            }
            catch (System.Exception) {}

            if (bHasAdjust)
            {
                string Err = string.Format("Adjust SDK found in {0}", AdjustNFLDir);
                System.Console.WriteLine(Err);
                PublicAdditionalLibraries.Add(Path.Combine(AdjustNFLDir, "AdjustSdk.a"));
                PublicWeakFrameworks.AddRange(new string[] { "AdSupport", "iAd", "CoreTelephony", "StoreKit", "AdServices", "AppTrackingTransparency" });
                PublicLibraryPaths.Add(AdjustNFLDir);
                PublicDefinitions.Add("WITH_ADJUST=1");
                PublicDefinitions.Add("UE4_ADJUST_VER=4.20.0");
                PrivateIncludePaths.Add("Adjust/Private/IOS");
                PublicAdditionalLibraries.Add("z");
                PublicAdditionalLibraries.Add("sqlite3");
            }
            else
            {
                string Err = string.Format("Adjust SDK not found in {0}", AdjustNFLDir);
                System.Console.WriteLine(Err);
                PublicDefinitions.Add("WITH_ADJUST=0");
            }
        }
        else if (Target.Platform == UnrealTargetPlatform.Android)
        {
            bool   bHasAdjust   = false;
            string AdjustNFLDir = "";
            try
            {
                AdjustNFLDir = System.IO.Path.Combine(ModuleDirectory, "../ThirdParty/Android");
                bHasAdjust   = System.IO.Directory.Exists(AdjustNFLDir);
            }
            catch (System.Exception) {}

            PublicIncludePathModuleNames.Add("Launch");

            if (bHasAdjust)
            {
                string Err = string.Format("Adjust SDK found in {0}", AdjustNFLDir);
                System.Console.WriteLine(Err);
                PublicLibraryPaths.Add(AdjustNFLDir);
                PublicDefinitions.Add("WITH_ADJUST=1");
                PublicDefinitions.Add("UE4_ADJUST_VER=4.20.0");

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

                string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
                AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "Adjust_UPL_Android.xml"));
            }
            else
            {
                string Err = string.Format("Adjust SDK not found in {0}", AdjustNFLDir);
                System.Console.WriteLine(Err);
                PublicDefinitions.Add("WITH_ADJUST=0");
            }
        }
        else
        {
            PublicDefinitions.Add("WITH_ADJUST=0");
        }
    }