blob: 8f993cae2e5a4b6c380566630799a2bbe817b6b3 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
SUMMARY = "Qt Creator is a new cross-platform Qt IDE"
# Note:
# The toolchain auto detection does not work completely yet. To compile/debug
# open menu 'Tools/Options and select 'Build & Run'. In tab 'Kits' select 'Desktop'
# 'Compiler/Manage...' and add local gcc'. At 'Debugger' select
# 'System GDB at /usr/bin/gdb.
HOMEPAGE = "https://qt-project.org/"
LICENSE = "LGPLv2.1 | GPLv3"
LIC_FILES_CHKSUM = " \
file://LGPL_EXCEPTION.TXT;md5=f4748b0d1a72c5c8fb5dab2dd1f7fa46 \
file://LICENSE.LGPLv21;md5=825920de5f6db2eeb1bebe625476346d \
file://LICENSE.LGPLv3;md5=0786418af032b9e608909874f334a2d1 \
"
inherit qmake5
DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg qtquick1"
SRC_URI = " \
http://download.qt.io/official_releases/qtcreator/3.3/${PV}/qt-creator-opensource-src-${PV}.tar.gz \
file://0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch \
file://qtcreator.desktop.in \
"
SRC_URI[md5sum] = "54cb5918c6852731612672a22627dd08"
SRC_URI[sha256sum] = "afefb73a05cdc36cdfb8a760c2b39eb6c366a22ef47c7d365d446092dd1d5331"
S = "${WORKDIR}/qt-creator-opensource-src-${PV}"
EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}/${QT_DIR_NAME}"
do_configure_prepend() {
# causes gcc infinite loop with 4.9.x for arm targets similar to
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61033
export DO_NOT_BUILD_QMLDESIGNER=1
}
do_configure_append() {
# Find native tools
sed -i 's:${STAGING_BINDIR}.*/lrelease:${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/lrelease:g' ${B}/share/qtcreator/translations/Makefile
sed -i 's:${STAGING_BINDIR}.*/qdoc:${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qdoc:g' ${B}/Makefile
# see qtbase-native.inc
# sed -i 's:QT_INSTALL_DOCS=${docdir}:QT_INSTALL_DOCS=${STAGING_DATADIR_NATIVE}/${QT_DIR_NAME}/doc:g' ${B}/Makefile
}
do_compile_append() {
# build docs
#oe_runmake docs_online
}
do_install() {
oe_runmake install INSTALL_ROOT=${D}${prefix}
oe_runmake install_inst_qch_docs INSTALL_ROOT=${D}${prefix}
# install desktop and ensure that qt-creator finds qmake
install -d ${D}${datadir}/applications
install -m 0644 ${WORKDIR}/qtcreator.desktop.in ${D}${datadir}/applications/qtcreator.desktop
sed -i 's:@QT5_QMAKE@:${bindir}/${QT_DIR_NAME}:g' ${D}${datadir}/applications/qtcreator.desktop
}
FILES_${PN} += " \
${datadir}/qtcreator \
${datadir}/icons \
${libdir}/${QT_DIR_NAME}/qtcreator \
"
FILES_${PN}-dbg += " \
${libdir}/${QT_DIR_NAME}/qtcreator/.debug \
${libdir}/${QT_DIR_NAME}/qtcreator/plugins/.debug \
${libdir}/${QT_DIR_NAME}/qtcreator/plugins/qbs/plugins/.debug \
"
FILES_${PN}-dev += " \
${libdir}/${QT_DIR_NAME}/qtcreator/*${SOLIBSDEV} \
"
RDEPENDS_${PN} += "perl"
RCONFLICTS_${PN} = "qt-creator"
# To give best user experience out of the box..
RRECOMMENDS_${PN} += " \
packagegroup-qt5-toolchain-target \
binutils \
ccache \
gcc-symlinks \
gdb \
"
|