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_CustomTarget_CustomTarget
,pyuno
/zipcore
))
12 # system python (only mingw)
13 ifneq ($(SYSTEM_PYTHON
),)
14 # mingw: MINGW_SYSROOT is defined in configure
15 ifeq ($(OS
)$(COM
),WNTGCC
)
16 pyuno_PYTHON_LIB_DIR
=$(MINGW_SYSROOT
)/lib
/python
$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)
19 $(error SHOULD NOT GET HERE
)
22 pyuno_PYTHON_ARCHIVE_NAME
:=python-core-
$(PYTHON_VERSION
).zip
24 $(call gb_CustomTarget_get_target
,pyuno
/zipcore
) : \
25 $(call gb_CustomTarget_get_workdir
,pyuno
/zipcore
)/$(pyuno_PYTHON_ARCHIVE_NAME
)
28 $(call gb_CustomTarget_get_workdir
,pyuno
/zipcore
)/$(pyuno_PYTHON_ARCHIVE_NAME
) \
29 : $(call gb_ExternalPackage_get_target
,python3
) \
30 |
$(call gb_CustomTarget_get_workdir
,pyuno
/zipcore
)/.
dir
31 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ZIP
,1)
32 cd
$(pyuno_PYTHON_LIB_DIR
) && zip
-q
$@
$(shell cd
$(pyuno_PYTHON_LIB_DIR
) && $(FIND
) .
-type f | grep
-v
"\.pyc" | grep
-v
"\.py~" | grep
-v .orig | grep
-v _failed
)
34 # vim: set noet sw=4 ts=4: