Files
FlaxEngine/Source/ThirdParty/UVAtlas/UVAtlas.Build.cs
2023-01-10 15:29:37 +01:00

40 lines
1022 B
C#

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using System.IO;
using Flax.Build;
using Flax.Build.NativeCpp;
/// <summary>
/// https://github.com/microsoft/UVAtlas
/// </summary>
public class UVAtlas : DepsModule
{
/// <inheritdoc />
public override void Init()
{
base.Init();
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
public override void Setup(BuildOptions options)
{
base.Setup(options);
var depsRoot = options.DepsFolder;
switch (options.Platform.Target)
{
case TargetPlatform.Windows:
options.OutputFiles.Add(Path.Combine(depsRoot, "UVAtlas.lib"));
options.OptionalDependencyFiles.Add(Path.Combine(depsRoot, "UVAtlas.pdb"));
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}
}
}