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