I’m trying to find why the global settings can’t be changed, but I can’t find it.
ERROR: MyProject modifies the value of GlobalDefinitions. This is not allowed, as MyProject has build products in common with UE4Game.
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class MyProjectTarget : TargetRules
{
public MyProjectTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.V2;
ExtraModuleNames.AddRange( new string[] { "MyProject" } );
GlobalDefinitions.Add("UE_PROJECT_STEAMSHIPPINGID=444");
GlobalDefinitions.Add("UE_PROJECT_STEAMPRODUCTNAME=\"mygame\"");
GlobalDefinitions.Add("UE_PROJECT_STEAMGAMEDIR=\"mygame\"");
GlobalDefinitions.Add("UE_PROJECT_STEAMGAMEDESC=\"Platform game\"");
}
}
Log.txt (23.9 KB)
UBT-MyProject-Win64-Shipping.txt (7.2 KB)