From 75e2d5b7b68844e5c485a117bcdcfdb29250c7ec Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 29 Jun 2017 04:41:36 +0300 Subject: mingw: upgrade windows python to 3.5.2 This adds support for 64bit windows toolchain with using different binary archives for the prebuild python when building i686 and x86_64 mingw toolchains. Task-number: QTBUG-58918 Change-Id: I1a02546749dd924fd3d2222bbbebf74b31dab07d Reviewed-by: Mikko Gronoff --- recipes/python/nativesdk-prebuild-python.inc | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 recipes/python/nativesdk-prebuild-python.inc (limited to 'recipes/python/nativesdk-prebuild-python.inc') diff --git a/recipes/python/nativesdk-prebuild-python.inc b/recipes/python/nativesdk-prebuild-python.inc new file mode 100644 index 0000000..71e8e72 --- /dev/null +++ b/recipes/python/nativesdk-prebuild-python.inc @@ -0,0 +1,57 @@ +############################################################################ +## +## Copyright (C) 2017 The Qt Company Ltd. +## Contact: https://www.qt.io/licensing/ +## +## This file is part of the Boot to Qt meta layer. +## +## $QT_BEGIN_LICENSE:GPL$ +## Commercial License Usage +## Licensees holding valid commercial Qt licenses may use this file in +## accordance with the commercial license agreement provided with the +## Software or, alternatively, in accordance with the terms contained in +## a written agreement between you and The Qt Company. For licensing terms +## and conditions see https://www.qt.io/terms-conditions. For further +## information use the contact form at https://www.qt.io/contact-us. +## +## GNU General Public License Usage +## Alternatively, this file may be used under the terms of the GNU +## General Public License version 3 or (at your option) any later version +## approved by the KDE Free Qt Foundation. The licenses are as published by +## the Free Software Foundation and appearing in the file LICENSE.GPL3 +## included in the packaging of this file. Please review the following +## information to ensure the GNU General Public License requirements will +## be met: https://www.gnu.org/licenses/gpl-3.0.html. +## +## $QT_END_LICENSE$ +## +############################################################################ + +LICENSE = "PSFv2" + +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4b8a9367e6bb2acb6f26dc08654f6ee5" + +do_unpack[depends] += "p7zip-native:do_populate_sysroot" + +DEPENDS = "unzip-native" + +inherit bin_package nativesdk python3-dir + +PV = "3.5.2" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${includedir}/${PYTHON_DIR} + install -m 0644 ${S}/include/* ${D}${includedir}/${PYTHON_DIR} + + install -d ${D}${libdir} + install -m 0644 ${S}/libs/*.a ${D}${libdir} + + install -d ${D}${bindir} + install -m 0644 ${S}/python.exe ${D}${bindir} + install -m 0644 ${S}/python35.dll ${D}${bindir} + + install -d ${D}${libdir}/${PYTHON_DIR} + unzip ${S}/python35.zip -d ${D}${libdir}/${PYTHON_DIR} +} -- cgit v1.2.3-54-g00ecf