Cleanup dependency modules code a bit
This commit is contained in:
5
Source/ThirdParty/AGS/AGS.Build.cs
vendored
5
Source/ThirdParty/AGS/AGS.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK
|
||||
/// </summary>
|
||||
public class AGS : DepsModule
|
||||
public class AGS : EngineDepsModule
|
||||
{
|
||||
public static bool Use(BuildOptions options)
|
||||
{
|
||||
@@ -21,9 +21,6 @@ public class AGS : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using Flax.Build;
|
||||
using Flax.Build.NativeCpp;
|
||||
|
||||
/// <summary>
|
||||
/// https://www.nuget.org/packages/Microsoft.Direct3D.D3D12
|
||||
/// </summary>
|
||||
public class DirectX12Agility : DepsModule
|
||||
public class DirectX12Agility : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -15,8 +14,5 @@ public class DirectX12Agility : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/microsoft/DirectXMesh
|
||||
/// </summary>
|
||||
public class DirectXMesh : DepsModule
|
||||
public class DirectXMesh : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class DirectXMesh : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/microsoft/DirectXTex
|
||||
/// </summary>
|
||||
public class DirectXTex : DepsModule
|
||||
public class DirectXTex : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class DirectXTex : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/NvCloth/NvCloth.Build.cs
vendored
5
Source/ThirdParty/NvCloth/NvCloth.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/NVIDIAGameWorks/NvCloth
|
||||
/// </summary>
|
||||
public class NvCloth : DepsModule
|
||||
public class NvCloth : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class NvCloth : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "License.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/PhysX/PhysX.Build.cs
vendored
5
Source/ThirdParty/PhysX/PhysX.Build.cs
vendored
@@ -8,7 +8,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/NVIDIA-Omniverse/PhysX
|
||||
/// </summary>
|
||||
public class PhysX : DepsModule
|
||||
public class PhysX : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -17,9 +17,6 @@ public class PhysX : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.BSD3Clause;
|
||||
LicenseFilePath = "License.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/SDL/SDL.Build.cs
vendored
5
Source/ThirdParty/SDL/SDL.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://www.libsdl.org/
|
||||
/// </summary>
|
||||
public class SDL : DepsModule
|
||||
public class SDL : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class SDL : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/UVAtlas/UVAtlas.Build.cs
vendored
5
Source/ThirdParty/UVAtlas/UVAtlas.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/microsoft/UVAtlas
|
||||
/// </summary>
|
||||
public class UVAtlas : DepsModule
|
||||
public class UVAtlas : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class UVAtlas : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/assimp/assimp.Build.cs
vendored
5
Source/ThirdParty/assimp/assimp.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://www.assimp.org/
|
||||
/// </summary>
|
||||
public class assimp : DepsModule
|
||||
public class assimp : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class assimp : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/astc/astc.Build.cs
vendored
5
Source/ThirdParty/astc/astc.Build.cs
vendored
@@ -6,7 +6,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/ARM-software/astc-encoder
|
||||
/// </summary>
|
||||
public class astc : DepsModule
|
||||
public class astc : EngineDepsModule
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true if can use astc lib for a given build setup.
|
||||
@@ -31,9 +31,6 @@ public class astc : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Apache2;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -6,7 +6,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/BinomialLLC/basis_universal
|
||||
/// </summary>
|
||||
public class basis_universal : DepsModule
|
||||
public class basis_universal : EngineDepsModule
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true if can use basis_universal lib for a given build setup.
|
||||
@@ -30,9 +30,6 @@ public class basis_universal : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Apache2;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/curl/curl.Build.cs
vendored
5
Source/ThirdParty/curl/curl.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://curl.haxx.se/
|
||||
/// </summary>
|
||||
public class curl : DepsModule
|
||||
public class curl : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class curl : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "curl License.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/enet/enet.Build.cs
vendored
5
Source/ThirdParty/enet/enet.Build.cs
vendored
@@ -6,7 +6,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/zpl-c/enet
|
||||
/// </summary>
|
||||
public class ENet : DepsModule
|
||||
public class ENet : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -15,9 +15,6 @@ public class ENet : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "enet License.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/freetype/freetype.Build.cs
vendored
5
Source/ThirdParty/freetype/freetype.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://www.freetype.org/
|
||||
/// </summary>
|
||||
public class freetype : DepsModule
|
||||
public class freetype : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class freetype : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE.TXT";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/glslang/glslang.Build.cs
vendored
5
Source/ThirdParty/glslang/glslang.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/KhronosGroup/glslang
|
||||
/// </summary>
|
||||
public class glslang : DepsModule
|
||||
public class glslang : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class glslang : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/flatpak/libportal
|
||||
/// </summary>
|
||||
public class libportal : DepsModule
|
||||
public class libportal : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class libportal : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/mono-2.0/mono.Build.cs
vendored
5
Source/ThirdParty/mono-2.0/mono.Build.cs
vendored
@@ -8,7 +8,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://www.mono-project.com/
|
||||
/// </summary>
|
||||
public class mono : DepsModule
|
||||
public class mono : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -17,9 +17,6 @@ public class mono : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/nvapi/nvapi.Build.cs
vendored
5
Source/ThirdParty/nvapi/nvapi.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/NVIDIA/nvapi
|
||||
/// </summary>
|
||||
public class nvapi : DepsModule
|
||||
public class nvapi : EngineDepsModule
|
||||
{
|
||||
public static bool Use(BuildOptions options)
|
||||
{
|
||||
@@ -21,9 +21,6 @@ public class nvapi : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.MIT;
|
||||
LicenseFilePath = "License.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/ogg/ogg.Build.cs
vendored
5
Source/ThirdParty/ogg/ogg.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/xiph/ogg
|
||||
/// </summary>
|
||||
public class ogg : DepsModule
|
||||
public class ogg : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class ogg : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "COPYING";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/KhronosGroup/SPIRV-Tools
|
||||
/// </summary>
|
||||
public class spirv_tools : DepsModule
|
||||
public class spirv_tools : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -17,9 +17,6 @@ public class spirv_tools : DepsModule
|
||||
Name = "spirv-tools";
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
5
Source/ThirdParty/vorbis/vorbis.Build.cs
vendored
5
Source/ThirdParty/vorbis/vorbis.Build.cs
vendored
@@ -7,7 +7,7 @@ using Flax.Build.NativeCpp;
|
||||
/// <summary>
|
||||
/// https://github.com/xiph/vorbis
|
||||
/// </summary>
|
||||
public class vorbis : DepsModule
|
||||
public class vorbis : EngineDepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
@@ -16,9 +16,6 @@ public class vorbis : DepsModule
|
||||
|
||||
LicenseType = LicenseTypes.Custom;
|
||||
LicenseFilePath = "COPYING";
|
||||
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
@@ -42,4 +42,18 @@ namespace Flax.Build
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The engine dependency module.
|
||||
/// </summary>
|
||||
/// <seealso cref="Flax.Build.DepsModule" />
|
||||
public abstract class EngineDepsModule : DepsModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public EngineDepsModule()
|
||||
{
|
||||
// Merge third-party modules into engine binary
|
||||
BinaryModuleName = "FlaxEngine";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Flax.Build.NativeCpp;
|
||||
|
||||
namespace Flax.Build
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace Flax.Build
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
#define USE_STD
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
#define USE_STD
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -83,6 +83,7 @@ namespace Flax.Deps.Dependencies
|
||||
Utilities.ReplaceInFile(cmakeListsPath, "if (CMAKE_SYSTEM_NAME STREQUAL \"WASI\")", "if (CMAKE_SYSTEM_NAME STREQUAL \"WASI\" OR BASISU_BUILD_WASM)");
|
||||
Utilities.ReplaceInFile(cmakeListsPath, "set(BASISU_STATIC OFF CACHE BOOL \"\" FORCE)", "");
|
||||
|
||||
foreach (var platform in options.Platforms)
|
||||
{
|
||||
foreach (var architecture in options.Architectures)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
namespace Flax.Build.Projects.VisualStudio
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2012-2024 Flax Engine. All rights reserved.
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
Reference in New Issue
Block a user