Dont use astc on windows/limux yet

This commit is contained in:
Wojtek Figat
2023-12-24 22:45:44 +01:00
parent fe711405ac
commit 3c6ed303fe
3 changed files with 14 additions and 15 deletions

View File

@@ -1,13 +1,12 @@
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using System.IO;
using Flax.Build;
using Flax.Build.NativeCpp;
/// <summary>
/// https://github.com/ARM-software/astc-encoder
/// </summary>
public class astc : ThirdPartyModule
public class astc : DepsModule
{
/// <inheritdoc />
public override void Init()
@@ -27,13 +26,6 @@ public class astc : ThirdPartyModule
base.Setup(options);
options.PublicDefinitions.Add("COMPILE_WITH_ASTC");
var depsRoot = options.DepsFolder;
switch (options.Platform.Target)
{
case TargetPlatform.Mac:
options.OutputFiles.Add(Path.Combine(depsRoot, "libastcenc.a"));
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}
AddLib(options, options.DepsFolder, "astcenc");
}
}