CMake/Source/bindexplib.h
Bill Hoffman 1c1ace2db0 De-duplicate symbols listed in generated module definition files
MS tools have a limit on the number of symbols that can be listed
in a `.def` file.  If multiple `.obj` files provide a symbol then
avoid listing it more than once in the generated `.def` file to
avoid counting toward the limit.
2015-11-18 10:02:48 -05:00

30 lines
857 B
C++

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef bindexplib_h
#define bindexplib_h
#include "cmStandardIncludes.h"
class bindexplib
{
public:
bindexplib() {}
bool AddObjectFile(const char* filename);
void WriteFile(FILE* file);
private:
std::set<std::string> Symbols;
std::set<std::string> DataSymbols;
};
#endif