// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. using System.Collections.Generic; using System.IO; using Flax.Build; using Flax.Build.NativeCpp; /// /// https://github.com/wolfpld/tracy /// public class tracy : ThirdPartyModule { /// public override void Init() { base.Init(); LicenseType = LicenseTypes.BSD3Clause; LicenseFilePath = "LICENSE"; // Merge third-party modules into engine binary BinaryModuleName = "FlaxEngine"; } /// public override void Setup(BuildOptions options) { base.Setup(options); options.SourcePaths.Clear(); options.SourceFiles.Clear(); options.SourceFiles.Add(Path.Combine(FolderPath, "Tracy.h")); options.SourceFiles.Add(Path.Combine(FolderPath, "TracyClient.cpp")); options.PublicDefinitions.Add("TRACY_ENABLE"); } /// public override void GetFilesToDeploy(List files) { base.GetFilesToDeploy(files); files.Add(Path.Combine(FolderPath, "Tracy.h")); files.Add(Path.Combine(FolderPath, "common", "TracySystem.hpp")); files.Add(Path.Combine(FolderPath, "client", "TracyCallstack.h")); } }