Bump version to 4.1-6
[LibreOffice.git] / scp2 / InstallModule_python.mk
blobc84ac382c8314e3dd9eaf2f3198f1fcd1d9afc7c
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_InstallModule_InstallModule,scp2/python))
12 ifeq ($(DISABLE_PYTHON),TRUE)
13 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
14 -DDISABLE_PYUNO \
16 else ifeq ($(SYSTEM_PYTHON),YES)
17 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
18 -DSYSTEM_PYTHON \
21 # mingw: mix mode copy file from system python to installation set
22 ifeq ($(OS)$(COM),WNTGCC)
23 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
24 -DPYVERSION=$(PYTHON_VERSION) \
25 -DMINGW_SYSTEM_PYTHON \
27 endif
29 else
30 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
31 -DPYVERSION=$(PYTHON_VERSION) \
32 -DPYMAJMIN=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR) \
33 -DPYMAJOR=$(PYTHON_VERSION_MAJOR) \
34 -DPY_FULL_DLL_NAME=$(if $(filter WNT-MSC,$(OS)-$(COM)),python$(PYTHON_VERSION_MAJOR)$(PYTHON_VERSION_MINOR)$(if $(MSVC_USE_DEBUG_RUNTIME),_d).dll,libpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m.so) \
35 $(if $(filter MSC,$(COM)),$(if $(MSVC_USE_DEBUG_RUNTIME),-DMSVC_PKG_DEBUG_RUNTIME)) \
37 endif
39 $(eval $(call gb_InstallModule_add_scpfiles,scp2/python,\
40 scp2/source/python/file_python \
41 scp2/source/python/file_python_librelogo \
42 scp2/source/python/profileitem_python \
43 scp2/source/python/module_python \
46 $(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/python,\
47 scp2/source/python/module_python_librelogo \
50 # vim: set shiftwidth=4 tabstop=4 noexpandtab: