1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_CustomTarget_CustomTarget
,pyuno
/pythonloader_ini
))
12 $(eval
$(call gb_CustomTarget_register_targets
,pyuno
/pythonloader_ini
, \
13 $(call gb_Helper_get_rcfile
,pythonloader.uno
) \
16 $(gb_CustomTarget_workdir
)/pyuno
/pythonloader_ini
/$(call gb_Helper_get_rcfile
,pythonloader.uno
): \
17 $(BUILDDIR
)/config_
$(gb_Side
)/config_python.h \
18 $(SRCDIR
)/pyuno
/CustomTarget_pyuno_pythonloader_ini.mk
19 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
20 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),ECH
)
21 ( printf
'[Bootstrap]\n' && \
22 $(if
$(SYSTEM_PYTHON
),, \
23 printf
'PYUNO_LOADER_PYTHONHOME=%s\n' \
24 $(if
$(filter MACOSX
,$(OS
)), \
25 '$$ORIGIN/../Frameworks/LibreOfficePython.framework', \
26 '$$ORIGIN/python-core-$(PYTHON_VERSION)') &&) \
27 printf
'PYUNO_LOADER_PYTHONPATH=%s$$ORIGIN\n' \
28 $(if
$(SYSTEM_PYTHON
), \
30 $(if
$(filter MACOSX
,$(OS
)), \
31 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/../Frameworks/LibreOfficePython.framework/Versions/Current/lib/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)$(dir))) ', \
32 $(if
$(filter WNT
,$(OS
)), \
33 '$(foreach dir,/ /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) ', \
34 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) '))) \
36 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),ECH
)
38 # vim: set noet sw=4 ts=4: