simplify personas generation by using a single template

Change-Id: I127181fff198dd865d0d958675db7446c73d09d0
Reviewed-on: https://gerrit.libreoffice.org/62427
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
This commit is contained in:
Christian Lohmaier 2018-10-27 16:26:04 +02:00
parent db7e454bf7
commit 3cccff0bbd
8 changed files with 16 additions and 114 deletions

View file

@ -74,12 +74,6 @@ endif
$(eval $(call gb_Module_add_targets,extras,\
Personas \
Persona_dark \
Persona_gray \
Persona_green \
Persona_pink \
Persona_sand \
Persona_white \
))
$(eval $(call gb_Module_add_targets,extras,\

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_dark,$(SRCDIR)/extras/source/gallery/personas/dark))
$(eval $(call gb_Package_add_files,extras_persona_dark,$(LIBO_SHARE_FOLDER)/gallery/personas/dark,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_gray,$(SRCDIR)/extras/source/gallery/personas/gray))
$(eval $(call gb_Package_add_files,extras_persona_gray,$(LIBO_SHARE_FOLDER)/gallery/personas/gray,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_green,$(SRCDIR)/extras/source/gallery/personas/green))
$(eval $(call gb_Package_add_files,extras_persona_green,$(LIBO_SHARE_FOLDER)/gallery/personas/green,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_pink,$(SRCDIR)/extras/source/gallery/personas/pink))
$(eval $(call gb_Package_add_files,extras_persona_pink,$(LIBO_SHARE_FOLDER)/gallery/personas/pink,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_sand,$(SRCDIR)/extras/source/gallery/personas/sand))
$(eval $(call gb_Package_add_files,extras_persona_sand,$(LIBO_SHARE_FOLDER)/gallery/personas/sand,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -1,18 +0,0 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Package_Package,extras_persona_white,$(SRCDIR)/extras/source/gallery/personas/white))
$(eval $(call gb_Package_add_files,extras_persona_white,$(LIBO_SHARE_FOLDER)/gallery/personas/white,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:

View file

@ -7,8 +7,24 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
LO_PERSONAS_LIST=dark gray green pink sand white
$(foreach persona,$(LO_PERSONAS_LIST),\
$(eval $(call gb_Package_Package,extras_persona_$(persona),$(SRCDIR)/extras/source/gallery/personas/$(persona))) \
$(eval $(call gb_Package_add_files,extras_persona_$(persona),$(LIBO_SHARE_FOLDER)/gallery/personas/$(persona),\
footer.png \
header.png \
preview.png \
))\
$(eval $(call gb_Package_get_target,extras_personas): $(call gb_Package_get_target,extras_persona_$(persona))) \
)
$(eval $(call gb_Package_Package,extras_personas,$(SRCDIR)/extras/source/gallery/personas))
$(call gb_Package_get_clean_target,extras_personas):
rm -rf $(INSTROOT)/$(LIBO_SHARE_FOLDER)/gallery/personas
# TODO: generate this, and potentiallly make labels translatable
$(eval $(call gb_Package_add_files,extras_personas,$(LIBO_SHARE_FOLDER)/gallery/personas,\
personas_list.txt \
))