summaryrefslogtreecommitdiffstats
path: root/recipes/python/nativesdk-prebuild-python.bb
blob: 256a774930ef9ae4f13e32f6e030f5541e5cd485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#############################################################################
##
## 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() {
    sysroot_stage_dir $from${bindir} $to${bindir}
}