From 0760742386e8e6034bbd619487ef156bc574e408 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jul 2016 07:23:37 +0200 Subject: Add bin.rc module (resource compiler) --- build2/bin/guess | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'build2/bin/guess') diff --git a/build2/bin/guess b/build2/bin/guess index d6ff76d..10f337a 100644 --- a/build2/bin/guess +++ b/build2/bin/guess @@ -48,7 +48,7 @@ namespace build2 // ld information. // - // Currently recognized ld and their ids: + // Currently recognized linkers and their ids: // // gnu GNU binutils ld.bfd // gold GNU binutils ld.gold @@ -68,13 +68,36 @@ namespace build2 // struct ld_info { - string ld_id; - string ld_signature; - string ld_checksum; + string id; + string signature; + string checksum; }; ld_info guess_ld (const path& ld); + + // rc information. + // + // Currently recognized resource compilers and their ids: + // + // gnu GNU binutils windres + // msvc Microsoft's rc.exe + // + // The signature is normally the --version line. + // + // The checksum is used to detect rc changes. It is calculated in a + // toolchain-specific manner (usually the output of --version) and is not + // bulletproof. + // + struct rc_info + { + string id; + string signature; + string checksum; + }; + + rc_info + guess_rc (const path& rc); } } -- cgit v1.1