Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/bindexplib.h
4998 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst 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(char const* filename);
16
bool AddObjectFile(char const* 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
};
26
27