protected override void RegisterBuildPlatforms(SDKOutputLevel OutputLevel)
        {
            AndroidPlatformSDK SDK = new AndroidPlatformSDK();

            SDK.ManageAndValidateSDK(OutputLevel);

            if ((ProjectFileGenerator.bGenerateProjectFiles == true) || (SDK.HasRequiredSDKsInstalled() == SDKStatus.Valid) || Environment.GetEnvironmentVariable("IsBuildMachine") == "1")
            {
                bool bRegisterBuildPlatform = true;

                FileReference AndroidTargetPlatformFile = FileReference.Combine(UnrealBuildTool.EngineSourceDirectory, "Developer", "Android", "AndroidTargetPlatform", "AndroidTargetPlatform.Build.cs");
                if (FileReference.Exists(AndroidTargetPlatformFile) == false)
                {
                    bRegisterBuildPlatform = false;
                }

                if (bRegisterBuildPlatform == true)
                {
                    // Register this build platform
                    Log.TraceVerbose("        Registering for {0}", UnrealTargetPlatform.Android.ToString());
                    UEBuildPlatform.RegisterBuildPlatform(new AndroidPlatform(SDK));
                    UEBuildPlatform.RegisterPlatformWithGroup(UnrealTargetPlatform.Android, UnrealPlatformGroup.Android);
                }
            }
        }
        public override void RegisterBuildPlatforms()
        {
            AndroidPlatformSDK SDK = new AndroidPlatformSDK();

            SDK.ManageAndValidateSDK();

            // Register this build platform
            UEBuildPlatform.RegisterBuildPlatform(new AndroidPlatform(SDK));
            UEBuildPlatform.RegisterPlatformWithGroup(UnrealTargetPlatform.Android, UnrealPlatformGroup.Android);
        }
Ejemplo n.º 3
0
		protected override void RegisterBuildPlatforms()
		{
			AndroidPlatformSDK SDK = new AndroidPlatformSDK();
			SDK.ManageAndValidateSDK();

			if ((ProjectFileGenerator.bGenerateProjectFiles == true) || (SDK.HasRequiredSDKsInstalled() == SDKStatus.Valid) || Environment.GetEnvironmentVariable("IsBuildMachine") == "1")
			{
				bool bRegisterBuildPlatform = true;

				FileReference AndroidTargetPlatformFile = FileReference.Combine(UnrealBuildTool.EngineSourceDirectory, "Developer", "Android", "AndroidTargetPlatform", "AndroidTargetPlatform.Build.cs");
				if (AndroidTargetPlatformFile.Exists() == false)
				{
					bRegisterBuildPlatform = false;
				}

				if (bRegisterBuildPlatform == true)
				{
					// Register this build platform
					Log.TraceVerbose("        Registering for {0}", UnrealTargetPlatform.Android.ToString());
					UEBuildPlatform.RegisterBuildPlatform(new AndroidPlatform(SDK));
					UEBuildPlatform.RegisterPlatformWithGroup(UnrealTargetPlatform.Android, UnrealPlatformGroup.Android);
				}
			}
		}