コード例 #1
0
    // Set the given preprocessor as a public definition with  0 or 1 (check as private and public module)
    private void SetDependencyPrepreocessorDefinition(string ModuleName, string PreprocessorDefinition)
    {
        string Result = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals(ModuleName));

        if (string.IsNullOrEmpty(Result))
        {
            Result = PublicDependencyModuleNames.Find(DependencyName => DependencyName.Equals(ModuleName));
            if (string.IsNullOrEmpty(Result))
            {
                PublicDefinitions.Add(PreprocessorDefinition + "=0");
            }
            else
            {
                PublicDefinitions.Add(PreprocessorDefinition + "=1");
            }
        }
        else
        {
            PublicDefinitions.Add(PreprocessorDefinition + "=1");
        }
    }
コード例 #2
0
        public override bool Execute()
        {
            try
            {
                XDocument document   = XDocument.Load(VersionDetailsXmlFile);
                XElement  dependency = document
                                       .Element("Dependencies")?
                                       .Element("ProductDependencies")?
                                       .Elements("Dependency")
                                       .FirstOrDefault(d => DependencyName.Equals(d.Attribute("Name")?.Value));

                if (dependency != null)
                {
                    DependencyVersion = dependency.Attribute("Version")?.Value;
                    DependencyCommit  = dependency.Element("Sha")?.Value;
                }
            }
            catch (Exception ex)
            {
                Log.LogWarning($"GetComponentCommit failed for VersionDetailsXmlFile={VersionDetailsXmlFile}, DependencyName={DependencyName}: {ex}");
            }
            return(true);
        }
コード例 #3
0
    public UMC6DControllerGUI(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
        //PrivatePCHHeaderFile = "Public/UMC6DControllerGUI.h";

        PublicIncludePaths.AddRange(
            new string[] {
            // ... add public include paths required here ...
            //EnginePath + "Source/Runtime/Launch/Resources", // #include "Version.h"; #if ENGINE_MINOR_VERSION
        }
            );


        PrivateIncludePaths.AddRange(
            new string[] {
            // ... add other private include paths required here ...
        }
            );


        PublicDependencyModuleNames.AddRange(
            new string[]
        {
            "Core",
            "InputCore",
            "UMC6DController",
            // ... add other public dependencies that you statically link with here ...
        }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
        {
            "CoreUObject",
            "Engine",
            "Slate",
            "SlateCore",
            //"KantanChartsSlate",
            // ... add private dependencies that you statically link with here ...
        }
            );

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

        string KantanCharts = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("KantanChartsSlate"));

        if (string.IsNullOrEmpty(KantanCharts))
        {
            PublicDefinitions.Add("UMC_WITH_KANTAN=0");
        }
        else
        {
            PublicDefinitions.Add("UMC_WITH_KANTAN=1");
        }
    }
コード例 #4
0
    public USemLog(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
        //PrivatePCHHeaderFile = "Public/USemLog.h";
        //bEnforceIWYU = false;

        PublicIncludePaths.AddRange(
            new string[] {
            // ... add public include paths required here ...
        }
            );


        PrivateIncludePaths.AddRange(
            new string[] {
            // ... add other private include paths required here ...
        }
            );


        PublicDependencyModuleNames.AddRange(
            new string[]
        {
            "Core",
            "MongoC",                                                                   // SL_WITH_LIBMONGO_C
            //"UProtobuf",                  // SL_WITH_PROTO
            // ... add other public dependencies that you statically link with here ...
        }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
        {
            "CoreUObject",
            "Engine",
            "Slate",
            "SlateCore",
            "Landscape",
            "WebSockets",
            "CinematicCamera",
            //"Landscape", "AIModule",	// whitelisted actors when setting the world to visual only
            //"UConversions",				// SL_WITH_ROS_CONVERSIONS
            "UMCGrasp",                                                         // SL_WITH_MC_GRASP
            //"SRanipal",					// SL_WITH_EYE_TRACKING
            //"SlicingLogic",		    // SL_WITH_SLICING
            //"MongoCxx",			    // SL_WITH_LIBMONGO_CXX
            //"Boost",				    // SL_WITH_BOOST
            // ... add private dependencies that you statically link with here ...
        }
            );

        // Avoiding depending on the editor when packaging
        if (Target.bBuildEditor)
        {
            PrivateDependencyModuleNames.AddRange(
                new string[]
            {
                "UnrealEd",
            }
                );
        }

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

        // Enable/disable various debug functions throughout the code
        PublicDefinitions.Add("SL_WITH_DEBUG=1");

        // Check included dependencies and set preprocessor flags accordingly
        SetDependencyPrepreocessorDefinition("UConversions", "SL_WITH_ROS_CONVERSIONS");
        SetDependencyPrepreocessorDefinition("UMCGrasp", "SL_WITH_MC_GRASP");
        SetDependencyPrepreocessorDefinition("MongoC", "SL_WITH_LIBMONGO_C");
        SetDependencyPrepreocessorDefinition("MongoCxx", "SL_WITH_LIBMONGO_CXX");
        SetDependencyPrepreocessorDefinition("SRanipal", "SL_WITH_EYE_TRACKING");
        SetDependencyPrepreocessorDefinition("SlicingLogic", "SL_WITH_SLICING");
        SetDependencyPrepreocessorDefinition("UProtobuf", "SL_WITH_PROTO");
        SetDependencyPrepreocessorDefinition("UROSBridge", "SL_WITH_ROSBRIDGE");

        string Json     = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("Json"));
        string JsonUtil = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("JsonUtilities"));

        if (string.IsNullOrEmpty(Json) || string.IsNullOrEmpty(JsonUtil))
        {
            PublicDefinitions.Add("SL_WITH_JSON=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_JSON=1");
        }

        string UViz = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("UViz"));

        if (string.IsNullOrEmpty(UViz))
        {
            UViz = PublicDependencyModuleNames.Find(DependencyName => DependencyName.Equals("UViz"));
        }
        string UMongoQA = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("UMongoQA"));

        if (string.IsNullOrEmpty(UMongoQA))
        {
            UMongoQA = PublicDependencyModuleNames.Find(DependencyName => DependencyName.Equals("UMongoQA"));
        }
        if (string.IsNullOrEmpty(UViz) || string.IsNullOrEmpty(UMongoQA))
        {
            PublicDefinitions.Add("SL_WITH_DATA_VIS=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_DATA_VIS=1");
        }
    }
コード例 #5
0
    public MongoCrash(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicIncludePaths.AddRange(
            new string[] {
            // ... add public include paths required here ...
        }
            );


        PrivateIncludePaths.AddRange(
            new string[] {
            // ... add other private include paths required here ...
        }
            );


        PublicDependencyModuleNames.AddRange(
            new string[]
        {
            "Core",
            // ... add other public dependencies that you statically link with here ...
        }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
        {
            "CoreUObject",
            "Engine",
            "Slate",
            "SlateCore",
            // ... add private dependencies that you statically link with here ...
            "MongoC",
            "Json",
            "JsonUtilities"
        }
            );

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

        string MongoC = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoC"));

        if (string.IsNullOrEmpty(MongoC))
        {
            PublicDefinitions.Add("MACTOR_WITH_LIBMONGO_C=0");
        }
        else
        {
            PublicDefinitions.Add("MACTOR_WITH_LIBMONGO_C=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }

        string MongoCXX = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoCXX"));

        if (string.IsNullOrEmpty(MongoCXX))
        {
            PublicDefinitions.Add("MACTOR_WITH_LIBMONGO_CXX=0");
        }
        else
        {
            PublicDefinitions.Add("MACTOR_WITH_LIBMONGO_CXX=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }
    }
コード例 #6
0
    public USemLogVision(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
        //PrivatePCHHeaderFile = "Public/USemLogVision.h";

        PublicIncludePaths.AddRange(
            new string[] {
            // ... add public include paths required here ...
        }
            );


        PrivateIncludePaths.AddRange(
            new string[] {
            // ... add other private include paths required here ...
        }
            );


        PublicDependencyModuleNames.AddRange(
            new string[]
        {
            "Core",
            // ... add other public dependencies that you statically link with here ...
        }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
        {
            "CoreUObject",
            "Engine",
            "RHI",
            "RenderCore",
            "UnrealEd",
            "USemLogSkel",
            "UTags",
            "UConversions",
            //"libmongo",
            "MongoC",                     // SLVIS_WITH_LIBMONGO_C
            //"MongoCxx", // SLVIS_WITH_LIBMONGO_CXX
            // ... add private dependencies that you statically link with here ...
        }
            );


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


        string MongoC = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoC"));

        if (string.IsNullOrEmpty(MongoC))
        {
            PublicDefinitions.Add("SLVIS_WITH_LIBMONGO_C=0");
        }
        else
        {
            PublicDefinitions.Add("SLVIS_WITH_LIBMONGO_C=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }

        string MongoCXX = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoCXX"));

        if (string.IsNullOrEmpty(MongoCXX))
        {
            PublicDefinitions.Add("SLVIS_WITH_LIBMONGO_CXX=0");
        }
        else
        {
            PublicDefinitions.Add("SLVIS_WITH_LIBMONGO_CXX=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }
    }
コード例 #7
0
ファイル: USemLog.Build.cs プロジェクト: zihexu/USemLog
    public USemLog(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
        //PrivatePCHHeaderFile = "Public/USemLog.h";
        //bEnforceIWYU = false;

        PublicIncludePaths.AddRange(
            new string[] {
            // ... add public include paths required here ...
        }
            );


        PrivateIncludePaths.AddRange(
            new string[] {
            // ... add other private include paths required here ...
        }
            );


        PublicDependencyModuleNames.AddRange(
            new string[]
        {
            "Core",
            "USemLogOwl",
            "USemLogSkel",                     // NEeded for external access of SLStructs.h, for example through SLEtntitesManager
            // ... add other public dependencies that you statically link with here ...
        }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
        {
            "CoreUObject",
            "Engine",
            "Slate",
            "SlateCore",
            "Json",
            "JsonUtilities",
            "UTags",
            "UIds",
            "UConversions",
            "UMCGrasp",                     // SL_WITH_MC_GRASP
            //"libmongo",
            //"SlicingLogic",	  //SL_WITH_SLICING
            "MongoC",                     // SL_WITH_LIBMONGO_C
            //"MongoCxx", // SL_WITH_LIBMONGO_CXX
            "SRanipal",                   // SL_WITH_EYE_TRACKING
            // ... add private dependencies that you statically link with here ...
        }
            );

        // TODO
        // SL Vision currently only works in developer mode
        // (https://docs.unrealengine.com/en-us/Programming/UnrealBuildSystem/TargetFiles)
        if (Target.Type == TargetRules.TargetType.Editor)
        //if(Target.Type == TargetRules.TargetType.Program)
        {
            PrivateDependencyModuleNames.Add("USemLogVision");
            PublicDefinitions.Add("SL_WITH_SLVIS=1");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_SLVIS=0");
        }

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

        // Check included dependencies and set preprocessor flags accordingly
        string UMCGrasp = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("UMCGrasp"));

        if (string.IsNullOrEmpty(UMCGrasp))
        {
            PublicDefinitions.Add("SL_WITH_MC_GRASP=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_MC_GRASP=1");
        }

        string MongoC = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoC"));

        if (string.IsNullOrEmpty(MongoC))
        {
            PublicDefinitions.Add("SL_WITH_LIBMONGO_C=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_LIBMONGO_C=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }

        string MongoCxx = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("MongoCxx"));

        if (string.IsNullOrEmpty(MongoCxx))
        {
            PublicDefinitions.Add("SL_WITH_LIBMONGO_CXX=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_LIBMONGO_CXX=1");

            // Needed to ignore various warnings from libmongo
            bEnableUndefinedIdentifierWarnings = false;
            bEnableExceptions = true;
            //bUseRTTI = true;
        }

        string SRanipal = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("SRanipal"));

        if (string.IsNullOrEmpty(SRanipal))
        {
            PublicDefinitions.Add("SL_WITH_EYE_TRACKING=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_EYE_TRACKING=1");
        }

        string SlicingLogic = PrivateDependencyModuleNames.Find(DependencyName => DependencyName.Equals("SlicingLogic"));

        if (string.IsNullOrEmpty(SlicingLogic))
        {
            PublicDefinitions.Add("SL_WITH_SLICING=0");
        }
        else
        {
            PublicDefinitions.Add("SL_WITH_SLICING=1");
        }
    }