in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.Build.cs [43:88]
public AmazonPollyMetaHuman(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
// The AWS SDK relies on some identifiers being undefined for
// correct behavior (not the same as being defined with value
// 0). The unreal build tool treats warnings as errors, so
// rather than disabling that behavior (strict is good), we
// can just disable the warnings for undefined identifiers.
// This needs to be done in all modules that depend directly
// on the "AwsSdk" module.
bEnableUndefinedIdentifierWarnings = false;
PublicDependencyModuleNames.AddRange(new string[] {
"Core",
"CoreUObject",
"Engine",
"InputCore",
"Json",
"JsonUtilities",
"Projects"
});
PrivateDependencyModuleNames.AddRange(new string[] {
"CoreUObject",
"Engine",
"Slate",
"SlateCore",
"Json",
"JsonUtilities"
});
// Dynamically linking to the SDK requires us to define the
// USE_IMPORT_EXPORT symbol for all build targets using the
// SDK. Source: https://github.com/aws/aws-sdk-cpp/blob/main/Docs/SDK_usage_guide.md#build-defines
PublicDefinitions.Add("USE_IMPORT_EXPORT");
PublicDefinitions.Add("AWS_CRT_CPP_USE_IMPORT_EXPORT");
if (Target.Platform == UnrealTargetPlatform.Win64) {
PublicDefinitions.Add("USE_WINDOWS_DLL_SEMANTICS");
}
PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "ThirdParty", "AwsSdk", Target.Platform.ToString(), "include"));
LibraryNames.ForEach(AddLibrary);
}