Add support for using ThirdPartyModule in game/project scripting

This commit is contained in:
2021-02-25 13:02:48 +01:00
parent 6f12dc8567
commit 529a82234b
26 changed files with 75 additions and 3 deletions
+3
View File
@@ -16,6 +16,9 @@ public class DirectXMesh : DepsModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class DirectXTex : DepsModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -14,5 +14,8 @@ public class lz4 : ThirdPartyModule
LicenseType = LicenseTypes.BSD2Clause;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -14,5 +14,8 @@ public class OpenFBX : ThirdPartyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -17,6 +17,9 @@ public class PhysX : DepsModule
LicenseType = LicenseTypes.BSD3Clause;
LicenseFilePath = "License.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class UVAtlas : DepsModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
@@ -15,6 +15,9 @@ public class UniversalAnalytics : ThirdPartyModule
LicenseType = LicenseTypes.BSD3Clause;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
@@ -14,5 +14,8 @@ public class VulkanMemoryAllocator : HeaderOnlyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -16,6 +16,9 @@ public class assimp : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class curl : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "curl License.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class fmt : ThirdPartyModule
LicenseType = LicenseTypes.BSD2Clause;
LicenseFilePath = "cppformat license.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -17,6 +17,9 @@ public class freetype : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "LICENSE.TXT";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class glslang : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
@@ -14,5 +14,8 @@ public class meshoptimizer : ThirdPartyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE.md";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -14,5 +14,8 @@ public class minimp3 : HeaderOnlyModule
LicenseType = LicenseTypes.CreativeCommonsZero;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -17,6 +17,9 @@ public class mono : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "LICENSE";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class ogg : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "COPYING";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -14,5 +14,8 @@ public class pugixml : ThirdPartyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "pugixml license.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -16,6 +16,9 @@ public class rapidjson : HeaderOnlyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "RapidJSON license.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
@@ -14,5 +14,8 @@ public class recastnavigation : ThirdPartyModule
LicenseType = LicenseTypes.zLib;
LicenseFilePath = "License.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
}
+3
View File
@@ -17,6 +17,9 @@ public class spirv_tools : DepsModule
Name = "spirv-tools";
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -15,6 +15,9 @@ public class stb : HeaderOnlyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -15,6 +15,9 @@ public class volk : ThirdPartyModule
LicenseType = LicenseTypes.MIT;
LicenseFilePath = "LICENSE.txt";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
+3
View File
@@ -16,6 +16,9 @@ public class vorbis : DepsModule
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "COPYING";
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
}
/// <inheritdoc />
@@ -72,7 +72,7 @@ namespace Flax.Build.Bindings
buildData.ModulesInfo.Add(module, moduleInfo);
// Skip for modules that cannot have API bindings
if (module is ThirdPartyModule || !module.BuildNativeCode)
if (!module.BuildCSharp || !module.BuildNativeCode)
return moduleInfo;
if (moduleOptions == null)
@@ -187,8 +187,8 @@ namespace Flax.Build
/// <inheritdoc />
public ThirdPartyModule()
{
// Merge third-party modules into engine binary
BinaryModuleName = "FlaxEngine";
// Third-party modules are native and don't use bindings by default
BuildCSharp = false;
}
/// <inheritdoc />