diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-11 07:23:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-11 07:23:37 +0200 |
commit | 0760742386e8e6034bbd619487ef156bc574e408 (patch) | |
tree | 8b4df6a356e5424f89a94464809349bbde667189 /build2/bin/guess | |
parent | fac576a331d6587e4343d09d6caf959d9a776118 (diff) |
Add bin.rc module (resource compiler)
Diffstat (limited to 'build2/bin/guess')
-rw-r--r-- | build2/bin/guess | 31 |
1 files changed, 27 insertions, 4 deletions
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); } } |