From 3b0f70a63d303af37dc1a77670eea12cfc364975 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 5 Jan 2016 09:15:54 +0100 Subject: Use prebuild windows python to create a python enabled gdb. Change-Id: I3cb97636ed064a1e9fd2a45f8fe0b12edba52428 Reviewed-by: Samuli Piippo --- recipes/python/nativesdk-prebuild-python.bb | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 recipes/python/nativesdk-prebuild-python.bb (limited to 'recipes/python') diff --git a/recipes/python/nativesdk-prebuild-python.bb b/recipes/python/nativesdk-prebuild-python.bb new file mode 100644 index 0000000..14e8278 --- /dev/null +++ b/recipes/python/nativesdk-prebuild-python.bb @@ -0,0 +1,47 @@ +############################################################################# +## +## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://www.qt.io/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +LICENSE = "PSFv2" + +inherit bin_package nativesdk + +SRC_URI[md5sum] = "6d37712f01fa836b1303141a6d4cabda" +SRC_URI[sha256sum] = "3835868c171dddb8cb68ed5578b6d4d639387a038e999a5b008f393b704d6ad7" +SRC_URI = "http://download.qt.io/development_releases/prebuilt/gdb/build-prerequisites/python.zip" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${bindir} + install ${WORKDIR}/python/python27.dll ${D}${bindir} + install -d ${D}${includedir} + install ${WORKDIR}/python/include/* ${D}${includedir} + install -d ${D}${libdir} + install ${WORKDIR}/python/libs/* ${D}${libdir} + install -d ${D}${libdir}/python2.7 + cp -r ${WORKDIR}/python/lib/* ${D}${libdir}/python2.7 +} + +sysroot_stage_dirs_append() { + install -d ${STAGING_BINDIR} + cp ${WORKDIR}/python/python27.dll -d ${STAGING_BINDIR} +} -- cgit v1.2.3-54-g00ecf