Exemple #1
0
 /// <summary>
 /// Modify the rules for a newly created module, where the target is a different host platform.
 /// This is not required - but allows for hiding details of a particular platform.
 /// </summary>
 /// <param name="ModuleName">The name of the module</param>
 /// <param name="Rules">The module rules</param>
 /// <param name="Target">The target being build</param>
 public override void ModifyModuleRulesForOtherPlatform(string ModuleName, ModuleRules Rules, ReadOnlyTargetRules Target)
 {
     if (Target.Platform == UnrealTargetPlatform.Win64)
     {
         if (ProjectFileGenerator.bGenerateProjectFiles)
         {
             // Use latest SDK for Intellisense purposes
             WindowsCompiler CompilerForSdkRestriction = Target.HoloLensPlatform.Compiler != WindowsCompiler.Default ? Target.HoloLensPlatform.Compiler : Target.WindowsPlatform.Compiler;
             if (CompilerForSdkRestriction != WindowsCompiler.Default)
             {
                 Version            OutWin10SDKVersion;
                 DirectoryReference OutSdkDir;
                 if (WindowsExports.TryGetWindowsSdkDir(Target.HoloLensPlatform.Win10SDKVersionString, out OutWin10SDKVersion, out OutSdkDir))
                 {
                     Rules.PublicDefinitions.Add(string.Format("WIN10_SDK_VERSION={0}", OutWin10SDKVersion.Build));
                 }
             }
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Modify the rules for a newly created module, where the target is a different host platform.
        /// This is not required - but allows for hiding details of a particular platform.
        /// </summary>
        /// <param name="ModuleName">The name of the module</param>
        /// <param name="Rules">The module rules</param>
        /// <param name="Target">The target being build</param>
        public override void ModifyModuleRulesForOtherPlatform(string ModuleName, ModuleRules Rules, ReadOnlyTargetRules Target)
        {
            // This code has been removed because it causes a full rebuild after generating project files (since response files are overwritten with different defines).
#if false
            if (Target.Platform == UnrealTargetPlatform.Win64)
            {
                if (ProjectFileGenerator.bGenerateProjectFiles)
                {
                    // Use latest SDK for Intellisense purposes
                    WindowsCompiler CompilerForSdkRestriction = Target.HoloLensPlatform.Compiler != WindowsCompiler.Default ? Target.HoloLensPlatform.Compiler : Target.WindowsPlatform.Compiler;
                    if (CompilerForSdkRestriction != WindowsCompiler.Default)
                    {
                        Version            OutWin10SDKVersion;
                        DirectoryReference OutSdkDir;
                        if (WindowsExports.TryGetWindowsSdkDir(Target.HoloLensPlatform.Win10SDKVersionString, out OutWin10SDKVersion, out OutSdkDir))
                        {
                            Rules.PublicDefinitions.Add(string.Format("WIN10_SDK_VERSION={0}", OutWin10SDKVersion.Build));
                        }
                    }
                }
            }
#endif
        }