tdf#127294 one new tip of the day; clarification of three existing tips
[LibreOffice.git] / pyuno / CustomTarget_pyuno_pythonloader_ini.mk
blob3dfd4549c1acdc2360d88e80ad476db39bea0bb6
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 $(call gb_CustomTarget_get_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 ( printf '[Bootstrap]\n' && \
21 $(if $(SYSTEM_PYTHON),, \
22 printf 'PYUNO_LOADER_PYTHONHOME=%s\n' \
23 $(if $(filter MACOSX,$(OS)), \
24 '$$ORIGIN/../Frameworks/LibreOfficePython.framework', \
25 '$$ORIGIN/python-core-$(PYTHON_VERSION)') &&) \
26 printf 'PYUNO_LOADER_PYTHONPATH=%s$$ORIGIN\n' \
27 $(if $(SYSTEM_PYTHON), \
28 '', \
29 $(if $(filter MACOSX,$(OS)), \
30 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/../Frameworks/LibreOfficePython.framework/Versions/Current/lib/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)$(dir))) ', \
31 $(if $(filter WNT,$(OS)), \
32 '$(foreach dir,/ /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) ', \
33 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) '))) \
34 ) > $@
36 # vim: set noet sw=4 ts=4: