cmGccDepfileReader.h 550 B

12345678910111213141516171819202122
  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 <cm/optional>
  6. #include "cmGccDepfileReaderTypes.h"
  7. enum class GccDepfilePrependPaths
  8. {
  9. All,
  10. Deps,
  11. };
  12. /*
  13. * Read dependencies file and prepend prefix to all relative paths
  14. */
  15. cm::optional<cmGccDepfileContent> cmReadGccDepfile(
  16. const char* filePath, const std::string& prefix = {},
  17. GccDepfilePrependPaths prependPaths = GccDepfilePrependPaths::All);