bump product version to 5.0.4.1
[LibreOffice.git] / pyuno / CustomTarget_pyuno_pythonloader_ini.mk
blob920a7a38bf35e585f74bd631554ae7ae274dd36c
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 $(SRCDIR)/pyuno/CustomTarget_pyuno_pythonloader_ini.mk
18 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
19 ( printf '[Bootstrap]\n' && \
20 $(if $(SYSTEM_PYTHON),, \
21 printf 'PYUNO_LOADER_PYTHONHOME=%s\n' \
22 $(if $(filter MACOSX,$(OS)), \
23 '$$ORIGIN/../Frameworks/LibreOfficePython.framework', \
24 '$$ORIGIN/python-core-$(PYTHON_VERSION)') &&) \
25 printf 'PYUNO_LOADER_PYTHONPATH=%s$$ORIGIN\n' \
26 $(if $(SYSTEM_PYTHON), \
27 '', \
28 $(if $(filter MACOSX,$(OS)), \
29 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/../Frameworks/LibreOfficePython.framework/Versions/Current/lib/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)$(dir))) ', \
30 $(if $(filter WNTMSC,$(OS)$(COM)), \
31 '$(foreach dir,/ /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) ', \
32 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) '))) \
33 ) > $@
35 # vim: set noet sw=4 ts=4: