Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / pyuno / Module_pyuno.mk
bloba91c58b6313a4d4af422fc184bd9a160319eba58
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 Library_pyuno \
16 Library_pythonloader \
17 Package_python_scripts \
18 Rdb_pyuno \
21 ifneq ($(OS),WNT)
22 $(eval $(call gb_Module_add_targets,pyuno,\
23 Library_pyuno_wrapper \
25 endif
28 # Windows: only --enable-python=internal possible
29 # mingw: both cases possible: internal && system
30 # that why it makes sense to handle the next 3 targets
31 # with SYSTEM_PYTHON=YES and SYSTEM_PYTHON=NO
33 # zipcore: pyuno/python.exe on Windows
34 ifeq ($(OS),WNT)
35 $(eval $(call gb_Module_add_targets,pyuno,\
36 Executable_python_wrapper \
38 endif
40 ifneq ($(SYSTEM_PYTHON),YES)
42 # zipcore: python.sh on Unix
43 ifneq ($(OS),WNT)
44 $(eval $(call gb_Module_add_targets,pyuno,\
45 CustomTarget_python_shell \
46 Package_python_shell \
48 endif
50 else # SYSTEM_PYTHON
52 # these two targets have to be executed only with system-python on mingw
53 # FIXME remove this
54 ifeq ($(OS)$(COM),WNTGCC)
55 $(eval $(call gb_Module_add_targets,pyuno,\
56 CustomTarget_zipcore \
57 Package_zipcore \
59 endif
61 endif # SYSTEM_PYTHON
63 endif # DISABLE_PYTHON
65 # vim:set noet sw=4 ts=4: