mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 19:43:33 +01:00

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);
|
|
}}
|