summaryrefslogtreecommitdiff
path: root/desktop/CustomTarget_soffice_bin-emscripten-exports.mk
blob: eec384150801958d17ad79ddee15939f2dc5adc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- 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,desktop/soffice_bin-emscripten-exports))

$(eval $(call gb_CustomTarget_register_targets,desktop/soffice_bin-emscripten-exports, \
    exports \
))

$(gb_CustomTarget_workdir)/desktop/soffice_bin-emscripten-exports/exports: \
        $(SRCDIR)/desktop/util/Executable_soffice_bin-emscripten-exports \
        $(gb_CustomTarget_workdir)/bridges/gcc3_wasm/exports
	# Prior to <https://github.com/emscripten-core/emscripten/commit/
	# 7baa690ed4bf801a411130c7137ce830b93120f3> "Allow comments in response files. (#21330)" towards
	# emsdk 3.1.54, comment lines were not supported, so filter them out here for now:
	grep -v '^#' $(SRCDIR)/desktop/util/Executable_soffice_bin-emscripten-exports >$@
	cat $(gb_CustomTarget_workdir)/bridges/gcc3_wasm/exports >>$@

# vim: set noet sw=4 ts=4: