Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / scp2 / InstallModule_python.mk
blobeedc2cb4de50b1f829a2eba1116443b75903e258
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # Major Contributor(s):
15 # Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
16 # (initial developer)
18 # All Rights Reserved.
20 # For minor contributions see the git repository.
22 # Alternatively, the contents of this file may be used under the terms of
23 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
24 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
25 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
26 # instead of those above.
28 $(eval $(call gb_InstallModule_InstallModule,scp2/python))
30 ifeq ($(DISABLE_PYTHON),TRUE)
31 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
32 -DDISABLE_PYUNO \
34 else ifeq ($(SYSTEM_PYTHON),YES)
35 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
36 -DSYSTEM_PYTHON \
39 # mingw: mix mode copy file from system python to installation set
40 ifeq ($(GUI)$(COM),WNTGCC)
41 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
42 -DPYVERSION=$(PYTHON_VERSION) \
43 -DMINGW_SYSTEM_PYTHON \
45 endif
47 else
48 $(eval $(call gb_InstallModule_add_defs,scp2/python,\
49 -DPYVERSION=$(PYTHON_VERSION) \
50 -DPYMAJMIN=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR) \
51 -DPYMAJOR=$(PYTHON_VERSION_MAJOR) \
52 -DPY_FULL_DLL_NAME=$(if $(filter WNT-MSC,$(OS)-$(COM)),python$(PYTHON_VERSION_MAJOR)$(PYTHON_VERSION_MINOR).dll,libpython$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)m.so) \
54 endif
56 $(eval $(call gb_InstallModule_add_scpfiles,scp2/python,\
57 scp2/source/python/file_python \
58 scp2/source/python/file_python_librelogo \
59 scp2/source/python/profileitem_python \
62 $(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/python,\
63 scp2/source/python/module_python \
64 scp2/source/python/module_python_librelogo \
65 scp2/source/python/module_python_mailmerge \
68 # vim: set shiftwidth=4 tabstop=4 noexpandtab: