2016-10-30 18:24:19 +01:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2016-03-13 13:35:51 +01:00
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-10-30 18:24:19 +01:00
|
|
|
|
2017-04-14 19:02:05 +02:00
|
|
|
#include <set>
|
|
|
|
#include <string>
|
2016-03-13 13:35:51 +01:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-03-13 13:35:51 +01:00
|
|
|
class bindexplib
|
2012-02-18 12:40:36 +02:00
|
|
|
{
|
2016-03-13 13:35:51 +01:00
|
|
|
public:
|
2020-02-01 23:06:01 +01:00
|
|
|
bindexplib() { NmPath = "nm"; }
|
2017-07-20 19:35:53 +02:00
|
|
|
bool AddDefinitionFile(const char* filename);
|
2016-03-13 13:35:51 +01:00
|
|
|
bool AddObjectFile(const char* filename);
|
|
|
|
void WriteFile(FILE* file);
|
2017-07-20 19:35:53 +02:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
void SetNmPath(std::string const& nm);
|
|
|
|
|
2016-03-13 13:35:51 +01:00
|
|
|
private:
|
|
|
|
std::set<std::string> Symbols;
|
|
|
|
std::set<std::string> DataSymbols;
|
2020-02-01 23:06:01 +01:00
|
|
|
std::string NmPath;
|
2016-03-13 13:35:51 +01:00
|
|
|
};
|