cmScanDepFormat.h 851 B

123456789101112131415161718192021222324252627282930
  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. struct cmSourceReqInfo
  7. {
  8. std::string LogicalName;
  9. std::string CompiledModulePath;
  10. };
  11. struct cmSourceInfo
  12. {
  13. std::string PrimaryOutput;
  14. // Set of provided and required modules.
  15. std::vector<cmSourceReqInfo> Provides;
  16. std::vector<cmSourceReqInfo> Requires;
  17. // Set of files included in the translation unit.
  18. std::vector<std::string> Includes;
  19. };
  20. bool cmScanDepFormat_P1689_Parse(std::string const& arg_pp,
  21. cmSourceInfo* info);
  22. bool cmScanDepFormat_P1689_Write(std::string const& path,
  23. std::string const& input,
  24. cmSourceInfo const& info);