aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qt5-native.inc
blob: 0231c0f6b0fdc8bb60f7cd50c4f5a458519025f6 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]"
DEPENDS = "zlib-native dbus-native"
SECTION = "libs"
HOMEPAGE = "http://qt-project.org"
PROVIDES = "qt5-tools-native"

INC_PR = "r0"

inherit native

QT_MODULE = "qtbase"

FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"

SRC_URI += " \
  file://0001-qlibraryinfo-Allow-the-specification-of-where-to-loa.patch \
  file://0001-Always-build-uic.patch \
"

EXTRA_OECONF = " \
  -prefix ${prefix} \
  -L ${STAGING_LIBDIR_NATIVE} \
  -I ${STAGING_INCDIR_NATIVE} \
  -system-zlib \
  -no-libjpeg \
  -no-libpng \
  -no-gif \
  -no-accessibility \
  -no-cups \
  -no-nis \
  -no-gui \
  -no-qml-debug \
  -no-sql-mysql \
  -no-sql-sqlite \
  -no-opengl \
  -no-openssl \
  -qt-xcb \
  -verbose -release \
  -headerdir ${includedir}/qt5 \
  -datadir ${datadir}/qt5 \
  -no-glib \
  -no-iconv \
  -no-fast \
  -silent \
  -nomake examples \
  -nomake tests \
  -nomake demos \
  -no-rpath \
"

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

	(echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
}

do_install() {
	install -d ${D}${bindir}/
	for i in findtr fixqt4headers.pl moc qdoc qmake rcc qdbuscpp2xml qdbusxml2cpp syncqt uic; do
		install -v -m 0755 bin/${i} ${D}${bindir}/${i}
	done
	install -d ${D}${datadir}/qt5/
	cp -PfR mkspecs ${D}${datadir}/qt5/
	cp -f ${WORKDIR}/g++.conf ${D}${datadir}/qt5/mkspecs/common/g++-unix.conf
	cp -f ${WORKDIR}/linux.conf ${D}${datadir}/qt5/mkspecs/common/
}