1 # vim: set noet sw=4 ts=4:
2 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 $(eval
$(call gb_CustomTarget_CustomTarget
,static
/components
))
13 static_WORKDIR
:= $(call gb_CustomTarget_get_workdir
,static
)
14 postprocess_WORKDIR
:= $(call gb_CustomTarget_get_workdir
,postprocess
)
16 $(call gb_CustomTarget_get_target
,static
/components
): \
17 $(static_WORKDIR
)/component_maps.
cxx \
19 define gb_static_components_create_component_map
20 TEMPFILE
=`$(gb_MKTEMP)` && \
21 $(call gb_Helper_abbreviate_dirs
, \
22 $(call gb_ExternalExecutable_get_command
,python
) \
23 $(SRCDIR
)/solenv
/bin
/native-code.py
-c
$(postprocess_WORKDIR
)/services_constructors.list \
25 $(call gb_Helper_replace_if_different_and_touch
,$${TEMPFILE},$(1))
29 $(static_WORKDIR
)/component_maps.
cxx: \
30 $(postprocess_WORKDIR
)/services_constructors.list \
31 $(SRCDIR
)/solenv
/bin
/native-code.py \
32 $(call gb_ExternalExecutable_get_dependencies
,python
) \
33 |
$(static_WORKDIR
)/.
dir
34 $(call gb_Output_announce
,$(subst $(BUILDDIR
)/,,$@
),$(true
),GEN
,2)
35 $(call gb_static_components_create_component_map
,$@
)