AssetSeedUtil.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/IO/FileIO.h>
  10. #include <AzCore/Module/DynamicModuleHandle.h>
  11. #include <AzCore/Module/ModuleManager.h>
  12. #include <AzCore/Outcome/Outcome.h>
  13. #include <AzCore/std/string/string.h>
  14. #include <AzCore/StringFunc/StringFunc.h>
  15. #include <AzFramework/Application/Application.h>
  16. #include <AzFramework/FileFunc/FileFunc.h>
  17. #include <AzFramework/Gem/GemInfo.h>
  18. #include <AzFramework/Platform/PlatformDefaults.h>
  19. namespace AssetValidation::AssetSeed
  20. {
  21. constexpr char SeedFileExtension[] = "seed";
  22. constexpr char PlatformsDirectoryName[] = "Platforms";
  23. constexpr char GemsDirectoryName[] = "Gems";
  24. constexpr char GemsSeedFileName[] = "seedList";
  25. constexpr char EngineSeedFileName[] = "SeedAssetList";
  26. constexpr auto EngineDirectoryName = AZ::IO::FixedMaxPath("Assets") / "Engine";
  27. void AddPlatformSeeds(const AZStd::string& rootFolder, AZStd::vector<AZStd::string>& defaultSeedLists, AzFramework::PlatformFlags platformFlags);
  28. void AddPlatformsDirectorySeeds(const AZStd::string& rootFolder, AZStd::vector<AZStd::string>& defaultSeedLists, AzFramework::PlatformFlags platformFlags);
  29. AZStd::vector<AZStd::string> GetGemSeedListFiles(const AZStd::vector<AzFramework::GemInfo>& gemInfoList, AzFramework::PlatformFlags platformFlags);
  30. AZStd::vector<AZStd::string> GetDefaultSeedListFiles(const AZStd::vector<AzFramework::GemInfo>& gemInfoList, AzFramework::PlatformFlags platformFlag);
  31. }