Use IsRunningUnitTest / IsRunningUITest in vclplug_win, too
[LibreOffice.git] / pyuno / Module_pyuno.mk
blob3a12fc68efac428136cf0469f9cb7e505205540d
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 $(eval $(call gb_Module_add_check_targets,pyuno, \
50 PythonTest_pyuno_pytests_testssl \
51 PythonTest_pyuno_pytests_testbz2 \
54 ifeq ($(OS),MACOSX)
55 $(eval $(call gb_Module_add_check_targets,pyuno, \
56 PythonTest_pyuno_pytests_testsetuptools \
58 endif
60 $(eval $(call gb_Module_add_subsequentcheck_targets,pyuno, \
61 PythonTest_pyuno_pytests_testcollections \
62 PythonTest_pyuno_pytests_insertremovecells \
65 endif # DISABLE_PYTHON
67 # vim:set noet sw=4 ts=4: