aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtjsbackend.inc
blob: 8b8374b5c0c4fbf3619ed2fd805f247974372a46 (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
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"

DEPENDS = "qtbase"

INC_PR = "r0"

inherit qmake5

SRC_URI += " \
    file://qmake.conf \
	file://0002-Make-sure-that-we-pick-up-the-mkv8snapshot-tool.patch \
	"

# Bitbake will not respect the make order set by qmake and at times it will try to compile
# parts of the source tree with out the 'mkv8snapshot' tool if it is enabled and that will fail
PARALLEL_MAKE = ""

export QT_CONF_PATH="${WORKDIR}/qt.conf"

do_configure () {
	# Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
	unset LD

	# This should not be needed. Perhaps the lack of this file is an indication
    # of an error on the native recipe...
    cp ${WORKDIR}/qmake.conf ${S}/.qmake.conf

    ${OE_QMAKE_QMAKE} -r -d
}

do_install() {
    oe_runmake install INSTALL_ROOT=${D}
}

FILES_${PN}-dev += "\
        ${incdir}/qt5/* \
        ${datadir}/qt5/* \
        ${libdir}/*.prl \
"