Refactor settings types to use scripting API
This commit is contained in:
@@ -111,5 +111,16 @@ namespace Flax.Build
|
||||
// By default deploy all C++ header files
|
||||
files.AddRange(Directory.GetFiles(FolderPath, "*.h", SearchOption.AllDirectories));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the file to the build sources if exists.
|
||||
/// </summary>
|
||||
/// <param name="options">The options.</param>
|
||||
/// <param name="path">The source file path.</param>
|
||||
protected void AddSourceFileIfExists(BuildOptions options, string path)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
options.SourceFiles.Add(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user