kconfig_compiler: new kcfgc args HeaderExtension & SourceExtension
ClosedPublic

Authored by kossebau on Mar 6 2019, 12:55 PM.

Details

Summary

When using kconfig_compiler generated sources in projects where the used
file extensions for C++ files are not ".h" and/or ".cpp", the include for
the generated header looks a bit alien to the project, as well as the
generated source file if one looks closer at it.

This code adds new optional flags HeaderExtension & SourceExtension which
can be used to control the file extensions used for the generated files.

Test Plan

All unit tests and the new test_fileextensions pass, existing projects using
kcfg without & with the new flags build fine.

Diff Detail

Repository
R237 KConfig
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Mar 6 2019, 12:55 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 6 2019, 12:55 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Mar 6 2019, 12:55 PM
kossebau updated this revision to Diff 53273.Mar 6 2019, 1:16 PM

fixup: correct default cpp for SourceExtension in README.dox

apol added a subscriber: apol.Mar 6 2019, 3:00 PM

+1 LGTM

kossebau updated this revision to Diff 53299.Mar 6 2019, 4:46 PM

update to latest master

@apol Thanks for review.

No further comments anyone? Would then proceed to push this next Monday, March 18th, if no-one objects.

apol accepted this revision.Mar 13 2019, 2:30 PM
This revision is now accepted and ready to land.Mar 13 2019, 2:30 PM
This revision was automatically updated to reflect the committed changes.