Add the description tag to the generated pkgconfig files
ClosedPublic

Authored by krop on Nov 29 2017, 4:21 PM.

Details

Summary

pkgconfig complains when the .pc file doesn't have a description. eg:
$ pkg-config Baloo
Package 'Baloo' has no Description: field

With this change, if the DESCRIPTION parameter is not used,
ECM_GENERATE_PKGCONFIG_FILE will :

  • First look if there's a metainfo.yaml file and get the description from there
  • If the file doesn't exist, or if the description tag is empty or non-existent,

create a description based on the LIB_NAME value

Test Plan

Tests added & pass

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
krop created this revision.Nov 29 2017, 4:21 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptNov 29 2017, 4:21 PM
Restricted Application added subscribers: Build System, Frameworks. · View Herald Transcript
krop requested review of this revision.Nov 29 2017, 4:21 PM
dfaure accepted this revision.Nov 30 2017, 6:34 AM
This revision is now accepted and ready to land.Nov 30 2017, 6:34 AM
This revision was automatically updated to reflect the committed changes.