2018-12-17 06:31:16 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class MeshUtilities : ModuleRules
|
|
|
|
|
{
|
2017-01-30 16:52:08 -05:00
|
|
|
public MeshUtilities(ReadOnlyTargetRules Target) : base(Target)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2015-10-28 19:18:20 -04:00
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
2016-11-08 02:45:19 -05:00
|
|
|
"MaterialUtilities",
|
|
|
|
|
|
|
|
|
|
}
|
2015-10-28 19:18:20 -04:00
|
|
|
);
|
|
|
|
|
|
2014-04-26 15:07:24 -04:00
|
|
|
PrivateDependencyModuleNames.AddRange(
|
2016-11-08 02:45:19 -05:00
|
|
|
new string[] {
|
2014-04-26 15:07:24 -04:00
|
|
|
"Core",
|
|
|
|
|
"CoreUObject",
|
|
|
|
|
"Engine",
|
|
|
|
|
"RawMesh",
|
|
|
|
|
"RenderCore", // For FPackedNormal
|
|
|
|
|
"SlateCore",
|
2016-11-08 02:45:19 -05:00
|
|
|
"Slate",
|
|
|
|
|
"MaterialUtilities",
|
|
|
|
|
"MeshBoneReduction",
|
|
|
|
|
"UnrealEd",
|
|
|
|
|
"RHI",
|
|
|
|
|
"HierarchicalLODUtilities",
|
|
|
|
|
"Landscape",
|
|
|
|
|
"LevelEditor",
|
|
|
|
|
"AnimationBlueprintEditor",
|
|
|
|
|
"AnimationEditor",
|
|
|
|
|
"SkeletalMeshEditor",
|
|
|
|
|
"SkeletonEditor",
|
|
|
|
|
"PropertyEditor",
|
|
|
|
|
"EditorStyle",
|
2017-08-24 15:38:57 -04:00
|
|
|
"GraphColor",
|
2018-04-25 17:41:58 -04:00
|
|
|
"MeshBuilder",
|
2018-07-31 05:49:40 -04:00
|
|
|
"MeshUtilitiesCommon",
|
2019-01-07 05:38:46 -05:00
|
|
|
"MeshDescription",
|
|
|
|
|
"MeshDescriptionOperations"
|
2016-09-22 15:33:34 -04:00
|
|
|
}
|
2014-04-26 15:07:24 -04:00
|
|
|
);
|
|
|
|
|
|
2017-06-21 10:25:35 -04:00
|
|
|
PublicIncludePathModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"MeshMergeUtilities"
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PrivateIncludePathModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"MeshMergeUtilities",
|
|
|
|
|
"MaterialBaking",
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
DynamicallyLoadedModuleNames.AddRange(
|
|
|
|
|
new string[] {
|
|
|
|
|
"MeshMergeUtilities",
|
|
|
|
|
"MaterialBaking",
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2016-04-01 09:11:58 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "nvTriStrip");
|
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "ForsythTriOptimizer");
|
2016-09-12 22:23:27 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "QuadricMeshReduction");
|
2016-04-01 09:11:58 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "MikkTSpace");
|
2016-04-22 11:21:10 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "nvTessLib");
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
|
|
|
|
|
{
|
2016-04-01 09:11:58 -04:00
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "DX9");
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
2017-03-21 17:46:52 -04:00
|
|
|
// EMBREE
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
|
|
|
{
|
2017-07-21 12:42:36 -04:00
|
|
|
string SDKDir = Target.UEThirdPartySourceDirectory + "IntelEmbree/Embree2140/Win64/";
|
2017-03-21 17:46:52 -04:00
|
|
|
|
|
|
|
|
PublicIncludePaths.Add(SDKDir + "include");
|
|
|
|
|
PublicLibraryPaths.Add(SDKDir + "lib");
|
|
|
|
|
PublicAdditionalLibraries.Add("embree.2.14.0.lib");
|
2018-08-22 13:01:06 -04:00
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/embree.2.14.0.dll", SDKDir + "lib/embree.2.14.0.dll");
|
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/tbb.dll", SDKDir + "lib/tbb.dll");
|
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/tbbmalloc.dll", SDKDir + "lib/tbbmalloc.dll");
|
|
|
|
|
PublicDefinitions.Add("USE_EMBREE=1");
|
2017-03-21 17:46:52 -04:00
|
|
|
}
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
2017-07-21 12:42:36 -04:00
|
|
|
string SDKDir = Target.UEThirdPartySourceDirectory + "IntelEmbree/Embree2140/MacOSX/";
|
2017-03-21 17:46:52 -04:00
|
|
|
|
|
|
|
|
PublicIncludePaths.Add(SDKDir + "include");
|
|
|
|
|
PublicAdditionalLibraries.Add(SDKDir + "lib/libembree.2.14.0.dylib");
|
|
|
|
|
PublicAdditionalLibraries.Add(SDKDir + "lib/libtbb.dylib");
|
|
|
|
|
PublicAdditionalLibraries.Add(SDKDir + "lib/libtbbmalloc.dylib");
|
2019-01-22 06:48:04 -05:00
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/libembree.2.14.0.dylib", SDKDir + "lib/libembree.2.14.0.dylib");
|
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/libtbb.dylib", SDKDir + "lib/libtbb.dylib");
|
|
|
|
|
RuntimeDependencies.Add("$(TargetOutputDir)/libtbbmalloc.dylib", SDKDir + "lib/libtbbmalloc.dylib");
|
2017-12-12 18:32:45 -05:00
|
|
|
PublicDefinitions.Add("USE_EMBREE=1");
|
2017-03-21 17:46:52 -04:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2017-12-12 18:32:45 -05:00
|
|
|
PublicDefinitions.Add("USE_EMBREE=0");
|
2017-03-21 17:46:52 -04:00
|
|
|
}
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
2014-04-26 15:07:24 -04:00
|
|
|
}
|