bump product version to 5.0.4.1
[LibreOffice.git] / pyuno / Module_pyuno.mk
blobac09d980090c6342bd4dacbf849ff48f86a9163b
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_Module_Module,pyuno))
12 ifneq ($(DISABLE_PYTHON),TRUE)
14 $(eval $(call gb_Module_add_targets,pyuno,\
15 CustomTarget_pyuno_pythonloader_ini \
16 Library_pyuno \
17 Library_pythonloader \
18 Package_python_scripts \
19 Package_pyuno_pythonloader_ini \
20 Rdb_pyuno \
23 ifneq ($(OS),WNT)
24 $(eval $(call gb_Module_add_targets,pyuno,\
25 Library_pyuno_wrapper \
27 endif
30 # Windows: only --enable-python=internal possible
31 # mingw: both cases possible: internal && system
32 # that why it makes sense to handle the next 3 targets
33 # with SYSTEM_PYTHON=TRUE and SYSTEM_PYTHON=
35 # zipcore: pyuno/python.exe on Windows
36 ifeq ($(OS),WNT)
37 $(eval $(call gb_Module_add_targets,pyuno,\
38 Executable_python \
40 endif
42 ifeq ($(SYSTEM_PYTHON),)
44 # zipcore: python.sh on Unix
45 ifneq ($(OS),WNT)
46 $(eval $(call gb_Module_add_targets,pyuno,\
47 CustomTarget_python_shell \
48 Package_python_shell \
50 endif
52 else # SYSTEM_PYTHON
54 # these two targets have to be executed only with system-python on mingw
55 # FIXME remove this
56 ifeq ($(OS)$(COM),WNTGCC)
57 $(eval $(call gb_Module_add_targets,pyuno,\
58 CustomTarget_zipcore \
59 Package_zipcore \
61 endif
63 endif # SYSTEM_PYTHON
65 ifneq ($(OS),MACOSX)
66 $(eval $(call gb_Module_add_check_targets,pyuno, \
67 PythonTest_pyuno_pytests_ssl \
69 endif
71 ifneq (,$(filter PythonTest_pytests,$(MAKECMDGOALS)))
72 $(eval $(call gb_Module_add_targets,pyuno, \
73 PythonTest_pytests \
74 PythonTest_pyuno_pytests_insertremovecells \
76 endif
78 endif # DISABLE_PYTHON
80 # vim:set noet sw=4 ts=4: