fix build
[LibreOffice.git] / pyuno / Module_pyuno.mk
blob71d7b48e8b8b3098632c69eb8d6d765fb900ae00
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
29 # Windows: only --enable-python=internal possible
30 # python-core: pyuno/python.exe on Windows
31 ifeq ($(OS),WNT)
32 $(eval $(call gb_Module_add_targets,pyuno,\
33 Executable_python \
35 endif
37 ifeq ($(SYSTEM_PYTHON),)
39 # python-core: python.sh on Unix
40 ifneq ($(OS),WNT)
41 $(eval $(call gb_Module_add_targets,pyuno,\
42 CustomTarget_python_shell \
43 Package_python_shell \
45 endif
47 endif # SYSTEM_PYTHON
49 ifneq ($(OS),MACOSX)
50 $(eval $(call gb_Module_add_check_targets,pyuno, \
51 PythonTest_pyuno_pytests_testssl \
53 endif
55 $(eval $(call gb_Module_add_subsequentcheck_targets,pyuno, \
56 PythonTest_pyuno_pytests_testcollections \
57 PythonTest_pyuno_pytests_insertremovecells \
60 endif # DISABLE_PYTHON
62 # vim:set noet sw=4 ts=4: