summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-02-23 14:07:04 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-02-24 00:06:13 +0100
commiteb35b4293ebcd322cb13ffe19913841a8c99b3dd (patch)
tree7a8e7d35a21b8d74dbebe3582c5c48125fc5e584 /static
parent0d8d71ba986d6c3d4a460d980e2709b9051ba989 (diff)
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>
Diffstat (limited to 'static')
-rw-r--r--static/Module_static.mk1
-rw-r--r--static/Package_favicon.mk16
-rw-r--r--static/emscripten/favicon.icobin0 -> 5430 bytes
3 files changed, 17 insertions, 0 deletions
diff --git a/static/Module_static.mk b/static/Module_static.mk
index c91441a6b924..ff036fac3213 100644
--- a/static/Module_static.mk
+++ b/static/Module_static.mk
@@ -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), \
diff --git a/static/Package_favicon.mk b/static/Package_favicon.mk
new file mode 100644
index 000000000000..b0ce6f69f4db
--- /dev/null
+++ b/static/Package_favicon.mk
@@ -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:
diff --git a/static/emscripten/favicon.ico b/static/emscripten/favicon.ico
new file mode 100644
index 000000000000..b890a56a8b26
--- /dev/null
+++ b/static/emscripten/favicon.ico
Binary files differ