How to embedd DLL Version Info on Windows via RC files

71 views
Skip to first unread message

Daniel Kuschny

unread,
Oct 15, 2023, 12:31:12 PM10/15/23
to skia-discuss
Hey devs. 

I am currently working on a Skia based library for my needs and would like to properly versionize the DLLs. Unfortunately it seems that the current build toolchain in Skia doesn't support supplying and compiling the RC files related to this. 


I am currenltly modifying the BUILD.gn and BUILDCONFIG.gn files in my pipelines with custom configs and components and the compile static and shared libs. For the shared libs (DLLs on windows) I tried to add RC files to the source list but it is just filtered out. 

The chrome DLLs and executables are having the version information but I couldn't figure out yet how things are embedded there, but it proves that it is possible. 

As a workaround I could try calling llvm-rc myself and then try pass the resulting object to the linker, but maybe there is a better way?

Greetings
Daniel 


Reply all
Reply to author
Forward
0 new messages