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
,\
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)
28 $(info_WORKDIR
)/Info.plist
: $(info_BUILDDIR
)/Info.plist
31 $(info_WORKDIR
)/InfoPlist_
%/InfoPlist.strings
: \
32 $(info_WORKDIR
)/Info.plist
$(info_WORKDIR
)/documents.ulf
34 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),PRL
,1)
35 $(PERL
) -w
$(info_SRCDIR
)/gen_strings.pl
-l
$* -p
$^ | \
36 iconv
-f UTF-8
-t UTF-16
>$@
38 $(eval
$(call gb_CustomTarget_ulfex_rule
,\
39 $(info_WORKDIR
)/documents.ulf
,\
40 $(SRCDIR
)/sysui
/desktop
/share
/documents.ulf
,\
41 $(foreach lang
,$(gb_TRANS_LANGS
),\
42 $(gb_POLOCATION
)/$(lang
)/sysui
/desktop
/share.po
)))
44 # vim: set noet sw=4 ts=4: