Bump version to 21.06.18.1
[LibreOffice.git] / sysui / CustomTarget_infoplist.mk
blob98f5f1c427b9aed20545024bb248b1818e384538
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 info_WORKDIR := $(call gb_CustomTarget_get_workdir,sysui/infoplist)
11 info_SRCDIR := $(SRCDIR)/sysui/desktop/macosx
12 info_BUILDDIR := $(BUILDDIR)/sysui/desktop/macosx
15 $(eval $(call gb_CustomTarget_CustomTarget,sysui/infoplist))
17 $(eval $(call gb_CustomTarget_register_targets,sysui/infoplist,\
18 PkgInfo \
19 Info.plist \
20 $(foreach lang,$(filter ca cs da de el en es fi fr hr hu id it ja ko ms nl no pl pt pt_PT ro ru sk sv th tr uk vi zh_CN zh_TW,$(gb_WITH_LANG)),\
21 InfoPlist_$(lang)/InfoPlist.strings) \
24 $(info_WORKDIR)/PkgInfo:
25 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
26 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),ECH)
27 echo "APPLLIBO" > $@
28 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),ECH)
30 $(info_WORKDIR)/Info.plist: $(info_BUILDDIR)/Info.plist
31 cp $< $@
33 $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings: \
34 $(info_WORKDIR)/Info.plist $(info_WORKDIR)/documents.ulf
35 mkdir -p $(dir $@)
36 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,1)
37 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),PRL)
38 $(PERL) -w $(info_SRCDIR)/gen_strings.pl -l $* -p $^ | \
39 iconv -f UTF-8 -t UTF-16 >$@
40 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),PRL)
42 $(eval $(call gb_CustomTarget_ulfex_rule,\
43 $(info_WORKDIR)/documents.ulf,\
44 $(SRCDIR)/sysui/desktop/share/documents.ulf,\
45 $(foreach lang,$(gb_TRANS_LANGS),\
46 $(gb_POLOCATION)/$(lang)/sysui/desktop/share.po)))
48 # vim: set noet sw=4 ts=4: