You're breathtaking!
This commit is contained in:
42
Source/Engine/Content/Content.Build.cs
Normal file
42
Source/Engine/Content/Content.Build.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Flax.Build;
|
||||
using Flax.Build.NativeCpp;
|
||||
|
||||
/// <summary>
|
||||
/// Content module.
|
||||
/// </summary>
|
||||
public class Content : EngineModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Setup(BuildOptions options)
|
||||
{
|
||||
base.Setup(options);
|
||||
|
||||
options.PrivateDependencies.Add("lz4");
|
||||
options.PrivateDependencies.Add("AudioTool");
|
||||
options.PrivateDependencies.Add("TextureTool");
|
||||
options.PrivateDependencies.Add("Particles");
|
||||
|
||||
if (options.Target.IsEditor)
|
||||
{
|
||||
options.PrivateDependencies.Add("ShadersCompilation");
|
||||
options.PrivateDependencies.Add("MaterialGenerator");
|
||||
options.PrivateDependencies.Add("ContentImporters");
|
||||
options.PrivateDependencies.Add("ContentExporters");
|
||||
options.PrivateDependencies.Add("Graphics");
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void GetFilesToDeploy(List<string> files)
|
||||
{
|
||||
files.AddRange(Directory.GetFiles(FolderPath, "*.h", SearchOption.TopDirectoryOnly));
|
||||
files.AddRange(Directory.GetFiles(Path.Combine(FolderPath, "Assets"), "*.h", SearchOption.TopDirectoryOnly));
|
||||
files.AddRange(Directory.GetFiles(Path.Combine(FolderPath, "Cache"), "*.h", SearchOption.TopDirectoryOnly));
|
||||
files.AddRange(Directory.GetFiles(Path.Combine(FolderPath, "Storage"), "*.h", SearchOption.TopDirectoryOnly));
|
||||
files.Add(Path.Combine(FolderPath, "Utilities/AssetsContainer.h"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user