Revert "Related tdf#158739: blacklist Nvidia RTX 4050 for Skia hardware"
[LibreOffice.git] / extras / CustomTarget_gallsystem.mk
blob434cbb6e17dd2b9fe3db5416cebd234ec3aa4313
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,extras/gallsysstr))
12 # bullets, fontwork symbolshapes not listed in ulf/not currently enabled for translation
13 $(eval $(call gb_CustomTarget_register_targets,extras/gallsysstr,\
14 $(addsuffix .str,$(filter-out bullets fontwork symbolshapes,$(system_galleries))) \
17 $(eval $(call gb_CustomTarget_ulfex_rule,\
18 $(call gb_CustomTarget_get_workdir,extras/gallsysstr)/extras_gallsystem.ulf,\
19 $(SRCDIR)/extras/source/gallery/share/gallery_names.ulf,\
20 $(foreach lang,$(gb_TRANS_LANGS),\
21 $(gb_POLOCATION)/$(lang)/extras/source/gallery/share.po)))
23 # desktop-translate.py is ugly af/doesn't play nice with make dependencies.
24 # It expects the target filename to exist and modifies it, so do the hack with own
25 # temporary dir
26 $(call gb_CustomTarget_get_workdir,extras/gallsysstr)/%.str : \
27 $(call gb_CustomTarget_get_workdir,extras/gallsysstr)/extras_gallsystem.ulf \
28 $(SRCDIR)/extras/source/gallery/gallery_system/dummy.str \
29 $(call gb_ExternalExecutable_get_dependencies,python) \
30 $(SRCDIR)/solenv/bin/desktop-translate.py
31 mkdir -p $(@D)/$* && cp $(SRCDIR)/extras/source/gallery/gallery_system/dummy.str $(@D)/$*/$*.str && \
32 $(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/solenv/bin/desktop-translate.py \
33 --ext "str" -d $(@D)/$*/ $(@D)/extras_gallsystem.ulf && \
34 mv $(@D)/$*/$*.str $@
36 # vim: set noet sw=4 ts=4: