because it causes loss of comments and information about
the location of strings in source files. Instead, clean
the ugly comments from the template.
Instead of msgcat, the CMake code is now used for joining
POT files, then repeating POT file headers are removed and
msguniq is used to merge unique strings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7eac0a0f68)
+ Added macros in the tde_conditional_add_project_* variant.
+ Macros can now be used from the project's top directory.
+ Added default processing for simple HTML documentation.
+ Added the 'other' directory to separate processing.
+ Added default processing for 'misc' directory.
Signed-off-by: Ray-V <ray-v@inbox.lv>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 23d7973b29)
Fix FTBFS when translations are missing and the desktop file passed to
tde_create_translated_desktop() is build-time generated.
See TDE/tde-packaging-gentoo #196 for details.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit f0a5bcc760)
file for use with intltool-merge already in the configuration phase,
prepare the file during the custom command call just before calling
intltool-merge. This will allow the natural use of the macro with
the generated files.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1686d0e64e)
to find tde_l10n_merge.pl because it does not have the executable
bit set.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 52001b9069)
If the list of files is obtained internally in a macro,
it will be sorted. This prevents unexpected order of files
- improves certainty for reproducible builds.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fb4f389731)
Although the processing with configure_file was done properly,
the original source file was used instead of the processed one
to merge the translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3bbc0e4d62)
properties not only for the default, but also for the specific
build type.
This resolve FTBFS when using private linking if the build is
of type Debug.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e769cc0003)
use the relative path according to the source directory instead of the
base file names. This will prevent potential base file name collisions
and allow the creation of common rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit c3b52f0e80)
This prevents multiple attempts to import exported tdelibs targets,
which would cause a collision if find_package( TDE ) is called
repeatedly for some reason.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e51ecbd591)
Using the optional SOURCE_BASEDIR argument, it is possible to use
tde_create_handbook in CMakeLists.txt from a folder other than the
folder containing the documentation itself.
This will allow the creation of common rules for generating documentation
for all languages that are currently available, without the need to
create CMakeLists.txt in the directory of each individual language.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f7a3d5c3e2)
In the cmake binary directory, the name of the working file must
be used according to the source file to avoid possible collisions
if the source directory contains multiple desktop files installed
as a ".directory" file in multiple destination directories.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3b6509cacf)
Because some of our desktop files contain underscores in variable
names (for example eventsrc), which is not an allowed character
for names of entries in desktop style files, we can't use msgfmt,
so we need intltool-merge.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 34e3154c44)
+ Fix comment replacement and flag addition for _translatorinfo.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f6f7bfc007)
+ For _translatorinfo strings, replace the references
to an intentionally non-existent source file and use
instead comments explaining the purpose of these strings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4ced9fd928)
+ Targets are created to generate files, not just commands.
+ Generating kidl files is created as a separate targets.
+ Headers are added to the list of generated files.
+ This allows for more accurate dependency determination.
+ This prevents files generation from being repeated.
+ This prevents the occasional FTBFS during a parallel build.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5cd16d6fb9)