vcpkg/toolsrc/include/coff_file_reader.h
Alexander Karatarakis b15a23a268 Add coff_file_reader to extract info/from dll/lib files without dumpbin
Calling dumpbin was very slow in some cases (e.g. boost).
With coff_file_reader we directly examine the binary for the few bits we need.
2016-10-14 16:51:15 -07:00

24 lines
400 B
C++

#pragma once
#include <vector>
#include "MachineType.h"
#include <filesystem>
namespace vcpkg {namespace COFFFileReader
{
namespace fs = std::tr2::sys;
struct dll_info
{
MachineType machine_type;
};
struct lib_info
{
std::vector<MachineType> machine_types;
};
dll_info read_dll(const fs::path path);
lib_info read_lib(const fs::path path);
}}