zworld-em/Source/zworld/zworld.Build.cs

45 lines
1.6 KiB
C#
Raw Normal View History

2025-05-11 22:07:21 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
2025-06-20 21:18:41 +08:00
using System.IO;
2025-05-11 22:07:21 +08:00
using UnrealBuildTool;
2025-06-20 21:18:41 +08:00
using UnrealBuildTool.Rules;
2025-05-11 22:07:21 +08:00
public class zworld : ModuleRules
{
public zworld(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput"
2025-06-20 21:18:41 +08:00
,"Niagara", "Json", "JsonUtilities"});
2025-05-11 22:07:21 +08:00
2025-06-20 21:18:41 +08:00
PrivateDependencyModuleNames.AddRange(new string[] { "Lua", "UnLua", "Sentry" });
2025-05-11 22:07:21 +08:00
2025-06-20 21:18:41 +08:00
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
2025-05-11 22:07:21 +08:00
2025-06-20 21:18:41 +08:00
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
// 添加 Android UPL 配置
if (Target.Platform == UnrealTargetPlatform.Android)
{
// 指定UPL文件路径
string PluginPath = Path.Combine(ModuleDirectory, "DeepLink_APL.xml");
AdditionalPropertiesForReceipt.Add("AndroidPlugin", PluginPath);
}
if (Target.Platform == UnrealTargetPlatform.Win64 ||
Target.Platform == UnrealTargetPlatform.Android ||
Target.Platform == UnrealTargetPlatform.IOS)
{
PublicDefinitions.Add(string.Format("{0}={1}", "WITH_SENTRY", 1));
PublicDependencyModuleNames.AddRange(new string[]
{
"Sentry"
});
}
}
2025-05-11 22:07:21 +08:00
}