From b15a23a268fd0ab283a54e9670bfd4c6e4a2f69c Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Fri, 14 Oct 2016 16:51:15 -0700 Subject: 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. --- toolsrc/include/coff_file_reader.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 toolsrc/include/coff_file_reader.h (limited to 'toolsrc/include') diff --git a/toolsrc/include/coff_file_reader.h b/toolsrc/include/coff_file_reader.h new file mode 100644 index 000000000..81f107f10 --- /dev/null +++ b/toolsrc/include/coff_file_reader.h @@ -0,0 +1,23 @@ +#pragma once +#include +#include "MachineType.h" +#include + +namespace vcpkg {namespace COFFFileReader +{ + namespace fs = std::tr2::sys; + + struct dll_info + { + MachineType machine_type; + }; + + struct lib_info + { + std::vector machine_types; + }; + + dll_info read_dll(const fs::path path); + + lib_info read_lib(const fs::path path); +}} -- cgit v1.2.3