Add metadata to windows executable

Those are build information or the project called ‘weidu’ (full page: http://www.weidu.org/~thebigg/new_compile.html)

Native OCaml (typically compiled with MinGW), obtained from ocaml.org. For less configuration, install to c:/ocaml.
A Cygwin-based *nix toolchain, particularly binutils and make from the Devel group. Perl is also required, but is normally installed by default. Optionally also git (Devel), openssh (Net), zip (Archive) and upx (Utils).
Cygwin-hosted MinGW-GCC, called mingw-gcc-core (Devel) or some such.
   
 Elkhound (vide infra). For less configuration, place the elkhound binary in Cygwin's /bin directory. Bear in mind the make process does not like paths with spaces.

Finally
Run make. Relevant build targets are
clean
weidu
windows_zip

How add metadata to compiled windows executable (example http://imgur.com/6tqIMzH) ? I have no clue were to start. It’s OCaml related stuff or build system stuff?

You have to tweak your build system. If you use the mingw-toolchain, the following steps should work:

  1. create a resource/manifest file (usually .rc) with version information as described here: https://stackoverflow.com/a/708382
  2. compile it with either i686-w64-mingw32-windres -i myres.rc -o myres.o or x86_64-w64-mingw32-windres -i myres.rc -o myres.o
  3. add myres.o to the files that get linked to the final executable.

I think that you can use windres tool. It is part of cygwin. I’m not sure
what you will have do do with the output of this tool? Maybe, just adding
it to the objects to be linked?

Hoping it can be of any help.

Salutations

Thanks! I’ve made it.