Example #1
0
        /// <summary>
        /// Finds a list of folder names to exclude when building for this platform
        /// </summary>
        public FileSystemName[] GetExcludedFolderNames()
        {
            if (CachedExcludedFolderNames == null)
            {
                // Find all the platform folders to exclude from the list of precompiled modules
                List <FileSystemName> Names = new List <FileSystemName>();
                foreach (UnrealTargetPlatform TargetPlatform in Enum.GetValues(typeof(UnrealTargetPlatform)))
                {
                    if (TargetPlatform != UnrealTargetPlatform.Unknown && TargetPlatform != Platform)
                    {
                        Names.Add(new FileSystemName(TargetPlatform.ToString()));
                    }
                }

                // Also exclude all the platform groups that this platform is not a part of
                List <UnrealPlatformGroup> IncludePlatformGroups = new List <UnrealPlatformGroup>(UEBuildPlatform.GetPlatformGroups(Platform));
                foreach (UnrealPlatformGroup PlatformGroup in Enum.GetValues(typeof(UnrealPlatformGroup)))
                {
                    if (!IncludePlatformGroups.Contains(PlatformGroup))
                    {
                        Names.Add(new FileSystemName(PlatformGroup.ToString()));
                    }
                }

                // Save off the list as an array
                CachedExcludedFolderNames = Names.ToArray();
            }
            return(CachedExcludedFolderNames);
        }
Example #2
0
        /// <summary>
        /// Gets an array of all platform folder names
        /// </summary>
        /// <returns>Array of platform folders</returns>
        public static string[] GetPlatformFolderNames()
        {
            if (CachedPlatformFolderNames == null)
            {
                List <string> PlatformFolderNames = new List <string>();

                // Find all the platform folders to exclude from the list of precompiled modules
                foreach (UnrealTargetPlatform TargetPlatform in Enum.GetValues(typeof(UnrealTargetPlatform)))
                {
                    if (TargetPlatform != UnrealTargetPlatform.Unknown)
                    {
                        PlatformFolderNames.Add(TargetPlatform.ToString());
                    }
                }

                // Also exclude all the platform groups that this platform is not a part of
                foreach (UnrealPlatformGroup PlatformGroup in Enum.GetValues(typeof(UnrealPlatformGroup)))
                {
                    PlatformFolderNames.Add(PlatformGroup.ToString());
                }

                // Save off the list as an array
                CachedPlatformFolderNames = PlatformFolderNames.ToArray();
            }
            return(CachedPlatformFolderNames);
        }