mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 20:02:42 +08:00
b15a23a268
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.
24 lines
400 B
C++
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);
|
|
}}
|