tdf#119856: thread-proof creating frames and setting menus
[LibreOffice.git] / sysui / CustomTarget_infoplist.mk
blobf8625c2d1132f93ed8fe67534533ec38735c569d
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,en-US $(gb_WITH_LANG),\
21 InfoPlist_$(lang).zip InfoPlist_$(lang)/InfoPlist.strings) \
24 $(info_WORKDIR)/PkgInfo:
25 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
26 echo "APPLLIBO" > $@
28 $(info_WORKDIR)/Info.plist: $(info_BUILDDIR)/Info.plist
29 cp $< $@
31 $(info_WORKDIR)/InfoPlist_%.zip: $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings
32 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ZIP,1)
33 zip -j $@ $<
35 $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings: \
36 $(info_WORKDIR)/Info.plist $(info_WORKDIR)/documents.ulf
37 mkdir -p $(dir $@)
38 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,1)
39 $(PERL) -w $(info_SRCDIR)/gen_strings.pl -l $* -p $^ | \
40 iconv -f UTF-8 -t UTF-16 >$@
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: