build fix
[LibreOffice.git] / pyuno / Module_pyuno.mk
blob9d38455c69f275cd002512852020445ce392a32e
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 # python-core: 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 # python-core: 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 GeneratedPackage_python-core \
60 endif
62 endif # SYSTEM_PYTHON
64 ifneq ($(OS),MACOSX)
65 $(eval $(call gb_Module_add_check_targets,pyuno, \
66 PythonTest_pyuno_pytests_ssl \
68 endif
70 ifneq (,$(filter PythonTest_pytests,$(MAKECMDGOALS)))
71 $(eval $(call gb_Module_add_targets,pyuno, \
72 PythonTest_pytests \
73 PythonTest_pyuno_pytests_testcollections \
74 PythonTest_pyuno_pytests_insertremovecells \
76 endif
78 endif # DISABLE_PYTHON
80 # vim:set noet sw=4 ts=4: