Add CustomArgs to compile and link environment in build tool for customization

This commit is contained in:
Wojtek Figat
2023-05-26 13:43:20 +02:00
parent 90d633fb2d
commit 9572073eda
5 changed files with 18 additions and 0 deletions

View File

@@ -106,6 +106,11 @@ namespace Flax.Build.NativeCpp
/// </summary>
public readonly List<string> LibraryPaths = new List<string>();
/// <summary>
/// The collection of custom arguments to pass to the linker.
/// </summary>
public readonly HashSet<string> CustomArgs = new HashSet<string>();
/// <inheritdoc />
public object Clone()
{
@@ -127,6 +132,7 @@ namespace Flax.Build.NativeCpp
clone.DocumentationFiles.AddRange(DocumentationFiles);
clone.InputLibraries.AddRange(InputLibraries);
clone.LibraryPaths.AddRange(LibraryPaths);
clone.CustomArgs.AddRange(CustomArgs);
return clone;
}
}