cmScanDepFormat.h 920 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <string>
  5. #include <vector>
  6. enum class LookupMethod
  7. {
  8. ByName,
  9. IncludeAngle,
  10. IncludeQuote,
  11. };
  12. struct cmSourceReqInfo
  13. {
  14. std::string LogicalName;
  15. std::string SourcePath;
  16. std::string CompiledModulePath;
  17. bool UseSourcePath = false;
  18. LookupMethod Method = LookupMethod::ByName;
  19. };
  20. struct cmScanDepInfo
  21. {
  22. std::string PrimaryOutput;
  23. std::vector<std::string> ExtraOutputs;
  24. // Set of provided and required modules.
  25. std::vector<cmSourceReqInfo> Provides;
  26. std::vector<cmSourceReqInfo> Requires;
  27. };
  28. bool cmScanDepFormat_P1689_Parse(std::string const& arg_pp,
  29. cmScanDepInfo* info);
  30. bool cmScanDepFormat_P1689_Write(std::string const& path,
  31. cmScanDepInfo const& info);