2024-07-26 04:17:36 -05:00
|
|
|
# -*- 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_CustomTarget_CustomTarget,instsetoo_native/emscripten-install))
|
|
|
|
|
|
|
|
$(if $(or $(gb_not $(filter emscripten,$(PKGFORMAT))),$(filter-out emscripten,$(PKGFORMAT))), \
|
|
|
|
$(error Emscripten only supports --with-package-format=emscripten))
|
|
|
|
|
|
|
|
emscripten_install_files := \
|
|
|
|
favicon.ico \
|
|
|
|
soffice.data \
|
|
|
|
soffice.data.js.metadata \
|
|
|
|
soffice.js \
|
|
|
|
soffice.wasm \
|
|
|
|
soffice.worker.js \
|
|
|
|
$(if $(ENABLE_SYMBOLS_FOR),soffice.wasm.dwp) \
|
2024-10-09 09:18:35 -05:00
|
|
|
$(if $(DISABLE_GUI),, \
|
2024-08-28 09:30:10 -05:00
|
|
|
qt_soffice.html \
|
|
|
|
qtloader.js \
|
|
|
|
qtlogo.svg) \
|
2024-07-26 04:17:36 -05:00
|
|
|
|
Fix --with-package-format=emscripten
For one, a dependency on gb_Postprocess_get_target,AllModulesButInstsetNative
was missing, so copying from instdir might have kicked in too early, before the
instdir files had been updated (e.g., in an incremental build). For another, in
a from-scratch build, files like instdir/program/qt_soffice.html might not yet
have been around, but I'm too dumb to get gbuild to do what I want here (i.e.,
copy files from instdir to workdir once the files are available in instdir and
only if the files in instdir are newer than those in workdir). So just make
this .PHONY and always copy all the files (in line with how other PKGFORMATs
also always rebuild their artifacts, IIUC).
Change-Id: I8b84677cdf867a2b66027ec4a4d781cd1fe623b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171077
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-26 10:27:17 -05:00
|
|
|
.PHONY: $(call gb_CustomTarget_get_target,instsetoo_native/emscripten-install)
|
2024-07-26 04:17:36 -05:00
|
|
|
$(call gb_CustomTarget_get_target,instsetoo_native/emscripten-install): \
|
Fix --with-package-format=emscripten
For one, a dependency on gb_Postprocess_get_target,AllModulesButInstsetNative
was missing, so copying from instdir might have kicked in too early, before the
instdir files had been updated (e.g., in an incremental build). For another, in
a from-scratch build, files like instdir/program/qt_soffice.html might not yet
have been around, but I'm too dumb to get gbuild to do what I want here (i.e.,
copy files from instdir to workdir once the files are available in instdir and
only if the files in instdir are newer than those in workdir). So just make
this .PHONY and always copy all the files (in line with how other PKGFORMATs
also always rebuild their artifacts, IIUC).
Change-Id: I8b84677cdf867a2b66027ec4a4d781cd1fe623b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171077
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-26 10:27:17 -05:00
|
|
|
| $(call gb_Postprocess_get_target,AllModulesButInstsetNative)
|
|
|
|
mkdir -p $(WORKDIR)/installation/LibreOffice/emscripten
|
|
|
|
for i in $(emscripten_install_files); do \
|
|
|
|
cp $(INSTDIR)/program/$$i $(WORKDIR)/installation/LibreOffice/emscripten/ || exit 1; \
|
|
|
|
done
|
2024-07-26 04:17:36 -05:00
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|