From eb35b4293ebcd322cb13ffe19913841a8c99b3dd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 23 Feb 2024 14:07:04 +0100 Subject: 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 . Change-Id: Ib40b3f159879cc39244bd81d7fc8a36cc8c7184a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163827 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- static/Module_static.mk | 1 + static/Package_favicon.mk | 16 ++++++++++++++++ static/emscripten/favicon.ico | Bin 0 -> 5430 bytes 3 files changed, 17 insertions(+) create mode 100644 static/Package_favicon.mk create mode 100644 static/emscripten/favicon.ico (limited to 'static') 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 Binary files /dev/null and b/static/emscripten/favicon.ico differ -- cgit