resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / bindexplib.h
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 "cmConfigure.h" // IWYU pragma: keep
6
7 #include <cstdio>
8 #include <set>
9 #include <string>
10
11 class bindexplib
12 {
13 public:
14   bindexplib() { NmPath = "nm"; }
15   bool AddDefinitionFile(const char* filename);
16   bool AddObjectFile(const char* filename);
17   void WriteFile(FILE* file);
18
19   void SetNmPath(std::string const& nm);
20
21 private:
22   std::set<std::string> Symbols;
23   std::set<std::string> DataSymbols;
24   std::string NmPath;
25 };