+ 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)
except when building tdelibs, where a separate target will be used and
writing metadata will be the last step.
This also resolve TDE/tdelibs#80.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 374fcabb18)
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)
This prevents concurrency of writing metadata and linking
with other libraries, which could cause FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e72aabadf5)
+ 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)