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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
+ 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>
as a separate target instead of POST_BUILD command. This prevents the
command from being executed multiple times and thus FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
that is generated for merging desktop file translations
will not be performed as a POST BUILD command, but as a
separate target.
This solves premature file deletion if multiple desktop
files use a common translation folder.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
instead of the current build date. The use of a stable date
is necessary to achieve reproducible builds.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>