kossebau created this revision. kossebau added a reviewer: Frameworks. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. kossebau requested review of this revision.
REVISION 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. REPOSITORY R237 KConfig BRANCH configfileextensions REVISION DETAIL https://phabricator.kde.org/D19565 AFFECTED FILES KF5ConfigMacros.cmake autotests/kconfig_compiler/CMakeLists.txt autotests/kconfig_compiler/test_fileextensions.kcfg autotests/kconfig_compiler/test_fileextensions.kcfgc autotests/kconfig_compiler/test_fileextensions_main.cxx src/kconfig_compiler/README.dox src/kconfig_compiler/checkkcfg.pl src/kconfig_compiler/kconfig_compiler.cpp To: kossebau, #frameworks Cc: kde-frameworks-devel, michaelh, ngraham, bruns