Add a favicon to the Wasm build

...to avoid "GET http://localhost:6931/favicon.ico 404 (File not found:
instdir/program/favicon.ico)" errors in the browser console.  The checked-in
static/emscripten/favicon.ico is a copy of
<https://www.libreoffice.org/themes/libreofficenew/favicon.ico>.

Change-Id: Ib40b3f159879cc39244bd81d7fc8a36cc8c7184a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163827
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
Stephan Bergmann
2024-02-24 00:06:13 +01:00
parent 0d8d71ba98
commit eb35b4293e
4 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -1033,7 +1033,10 @@ $(eval $(call gb_Helper_register_packages_for_install,ooo,\
) \
resource_fonts \
cui \
$(if $(filter EMSCRIPTEN,$(OS)),unoembind) \
$(if $(filter EMSCRIPTEN,$(OS)), \
favicon \
unoembind \
) \
))
$(eval $(call gb_Helper_register_packages_for_install,ooo_fonts,\
+1
View File
@@ -19,6 +19,7 @@ ifeq (EMSCRIPTEN,$(OS))
$(eval $(call gb_Module_add_targets,static,\
CustomTarget_emscripten_fs_image \
CustomTarget_unoembind \
Package_favicon \
Package_unoembind \
StaticLibrary_unoembind \
$(if $(ENABLE_QT5), \
+16
View File
@@ -0,0 +1,16 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t; fill-column: 100 -*-
#
# 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,favicon,$(SRCDIR)/static/emscripten))
$(eval $(call gb_Package_add_files,favicon,$(LIBO_BIN_FOLDER), \
favicon.ico \
))
# vim: set noet sw=4 ts=4:
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB