DLL version info on WIndows

Alex Merry alex.merry at kde.org
Mon Nov 3 22:53:17 UTC 2014


On Monday 03 November 2014 21:30:48 Ingo Klöcker wrote:
> On Monday 03 November 2014 16:41:08 Nicolás Alvarez wrote:
> > 3. Put a template in ECM with placeholders in every value, and a macro to
> > fill it in. This way there won't be a .rc file in each framework, but
> > every
> > framework will need CMake code like this:
> > 
> > include(ECMCreateVersionResource)
> > ecm_create_version_resource(version.rc
> > 
> >     PRODUCT_NAME KCoreAddons
> >     FILE_DESCRIPTION "Addons to QtCore"
> >     COMPANY_NAME "KDE Community"
> >     COPYRIGHT "Copyright (c) 2014 KDE Community"
> >     ORIG_FILENAME "KF5CoreAddons.dll"
> > 
> > )
> > 
> > plus adding version.rc to the list of sources.
> > 
> > I lean towards #3 (I couldn't find a way to get the ORIG_FILENAME
> > automatically; suggestions welcome)
> 
> Yes, I think this makes the most sense and is the most convenient solution.
> Maintaining the version numbers in such .rc files manually is a PITA and is
> usually forgotten. Automation is the only working solution.

Agreed. For the orig_filename, I think it might be possible to generate the file 
at build time (rather than configure time) and use generator expressions. I'd 
have to investigate how to do that, though.

Alex


More information about the Kde-buildsystem mailing list