Make it possible for ECM to detect po files at configure time
ClosedPublic

Authored by apol on Aug 2 2018, 10:47 PM.

Details

Summary

ECMPoQmTools will need to have the translations downloaded at configure time instead of on build time, otherwise it needs an awkward second configure.
To that end we introduce a KDE_L10N_SYNC_TRANSLATIONS variable that allows it to do so.
ECMPoTools will download the translations in the build directory, because cmake shouldn't touch the sources. Have it check the build directory too when the macro is called.

Test Plan

Built analitza translations.

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.
apol created this revision.Aug 2 2018, 10:47 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptAug 2 2018, 10:47 PM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
apol requested review of this revision.Aug 2 2018, 10:47 PM
krop accepted this revision.Aug 3 2018, 8:23 AM
krop added a subscriber: krop.
krop added inline comments.
kde-modules/KDECMakeSettings.cmake
95

typo, "download the"

This revision is now accepted and ready to land.Aug 3 2018, 8:23 AM
krop added inline comments.Aug 4 2018, 1:35 PM
kde-modules/KDECMakeSettings.cmake
98

Too late for 5.49

apol updated this revision to Diff 39197.Aug 6 2018, 2:20 PM

Correct version

This revision was automatically updated to reflect the committed changes.