qt5: unify indentation

* use 4 spaces everywhere like meta-oe and other layers do now
This commit is contained in:
Martin Jansa 2013-04-17 16:33:22 +02:00
parent 1e5520a64f
commit 97738e9d62
7 changed files with 79 additions and 81 deletions

View File

@ -2,7 +2,7 @@
# each module needs to define valid SRCREV # each module needs to define valid SRCREV
SRC_URI += " \ SRC_URI += " \
git://qt.gitorious.org/qt/${QT_MODULE}.git;protocol=git;branch=stable \ git://qt.gitorious.org/qt/${QT_MODULE}.git;protocol=git;branch=stable \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"

View File

@ -35,24 +35,24 @@ QT_EXAMPLES ?= "-nomake examples"
QT_DEMOS ?= "-nomake demos" QT_DEMOS ?= "-nomake demos"
QT_CONFIG_FLAGS += " \ QT_CONFIG_FLAGS += " \
-release \ -release \
-reduce-relocations \ -reduce-relocations \
-shared \ -shared \
-silent \ -silent \
-glib \ -glib \
-no-pch \ -no-pch \
-no-rpath \ -no-rpath \
-pkg-config \ -pkg-config \
${QT_SYSTEM_LIBS} \ ${QT_SYSTEM_LIBS} \
${QT_NIS} \ ${QT_NIS} \
${QT_CUPS} \ ${QT_CUPS} \
${QT_SQL_DRIVER_FLAGS} \ ${QT_SQL_DRIVER_FLAGS} \
${QT_DISTRO_FLAGS} \ ${QT_DISTRO_FLAGS} \
${QT_MODULE_FLAGS} \ ${QT_MODULE_FLAGS} \
${QT_GLFLAGS} \ ${QT_GLFLAGS} \
${QT_TESTS} \ ${QT_TESTS} \
${QT_EXAMPLES} \ ${QT_EXAMPLES} \
${QT_DEMOS} \ ${QT_DEMOS} \
" "
do_configure() { do_configure() {
@ -64,7 +64,6 @@ do_configure() {
} }
do_compile() { do_compile() {
unset CFLAGS CXXFLAGS AR unset CFLAGS CXXFLAGS AR
oe_runmake ${EXTRA_ENV} oe_runmake ${EXTRA_ENV}
@ -80,8 +79,8 @@ FILES_${PN}-plugins = "${libdir}/${QT_DIR_NAME}/plugins/*/*${SOLIBSDEV}"
FILES_${PN}-plugins-dbg = "${libdir}/${QT_DIR_NAME}/plugins/*/.debug/*" FILES_${PN}-plugins-dbg = "${libdir}/${QT_DIR_NAME}/plugins/*/.debug/*"
FILES_${PN}-dev += " \ FILES_${PN}-dev += " \
${libdir}/cmake/* \ ${libdir}/cmake/* \
${libdir}/*.prl \ ${libdir}/*.prl \
${includedir}/qt5/* \ ${includedir}/qt5/* \
${datadir}/qt5/* \ ${datadir}/qt5/* \
" "

View File

@ -1,13 +1,13 @@
inherit siteinfo inherit siteinfo
set_arch() { set_arch() {
case ${TARGET_ARCH} in case ${TARGET_ARCH} in
arm*) QT_ARCH=arm ;; arm*) QT_ARCH=arm ;;
i*86*) QT_ARCH=i386 ;; i*86*) QT_ARCH=i386 ;;
mips*) QT_ARCH=mips ;; mips*) QT_ARCH=mips ;;
powerpc*) QT_ARCH=powerpc ;; powerpc*) QT_ARCH=powerpc ;;
x86_64*) QT_ARCH=x86_64 ;; x86_64*) QT_ARCH=x86_64 ;;
esac esac
} }
set_endian() { set_endian() {

View File

@ -13,48 +13,48 @@ SSTATE_SCAN_FILES += "*.pri *.prl"
QT_DIR_NAME ?= "qt5" QT_DIR_NAME ?= "qt5"
SRC_URI += " \ SRC_URI += " \
file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
file://0001-Always-build-uic.patch \ file://0001-Always-build-uic.patch \
file://qmake.conf \ file://qmake.conf \
" "
EXTRA_ENV = 'MAKE="make -e ${PARALLEL_MAKE}"' EXTRA_ENV = 'MAKE="make -e ${PARALLEL_MAKE}"'
EXTRA_OEMAKE = " MAKEFLAGS='${PARALLEL_MAKE}'" EXTRA_OEMAKE = " MAKEFLAGS='${PARALLEL_MAKE}'"
EXTRA_OECONF = " \ EXTRA_OECONF = " \
-prefix ${prefix} \ -prefix ${prefix} \
-L ${STAGING_LIBDIR_NATIVE} \ -L ${STAGING_LIBDIR_NATIVE} \
-I ${STAGING_INCDIR_NATIVE} \ -I ${STAGING_INCDIR_NATIVE} \
-system-zlib \ -system-zlib \
-no-libjpeg \ -no-libjpeg \
-no-libpng \ -no-libpng \
-no-gif \ -no-gif \
-no-accessibility \ -no-accessibility \
-no-cups \ -no-cups \
-no-nis \ -no-nis \
-no-gui \ -no-gui \
-no-qml-debug \ -no-qml-debug \
-no-sql-mysql \ -no-sql-mysql \
-no-sql-sqlite \ -no-sql-sqlite \
-no-opengl \ -no-opengl \
-no-openssl \ -no-openssl \
-no-xcb \ -no-xcb \
-verbose -release \ -verbose -release \
-prefix ${prefix} \ -prefix ${prefix} \
-bindir ${bindir}/${QT_DIR_NAME} \ -bindir ${bindir}/${QT_DIR_NAME} \
-headerdir ${includedir}/${QT_DIR_NAME} \ -headerdir ${includedir}/${QT_DIR_NAME} \
-archdatadir ${libdir}/${QT_DIR_NAME} \ -archdatadir ${libdir}/${QT_DIR_NAME} \
-datadir ${datadir}/${QT_DIR_NAME} \ -datadir ${datadir}/${QT_DIR_NAME} \
-docdir ${docdir}/${QT_DIR_NAME} \ -docdir ${docdir}/${QT_DIR_NAME} \
-hostdatadir ${datadir}/${QT_DIR_NAME} \ -hostdatadir ${datadir}/${QT_DIR_NAME} \
-hostbindir ${bindir}/${QT_DIR_NAME} \ -hostbindir ${bindir}/${QT_DIR_NAME} \
-no-glib \ -no-glib \
-no-iconv \ -no-iconv \
-silent \ -silent \
-nomake examples \ -nomake examples \
-nomake tests \ -nomake tests \
-nomake demos \ -nomake demos \
-no-rpath \ -no-rpath \
" "
# qtbase is exception, we need to use mkspecs from ${S} # qtbase is exception, we need to use mkspecs from ${S}
@ -72,12 +72,12 @@ do_configure_prepend() {
} }
do_configure() { do_configure() {
# Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
unset LD unset LD
(echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
} }
do_install() { do_install() {
oe_runmake install INSTALL_ROOT=${D} oe_runmake install INSTALL_ROOT=${D}
} }

View File

@ -1,11 +1,11 @@
require qt5.inc require qt5.inc
SRC_URI += " \ SRC_URI += " \
file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
file://0002-qmake-is-already-built-in-qt5-tools-native.patch \ file://0002-qmake-is-already-built-in-qt5-tools-native.patch \
file://0003-Allow-building-a-separate-qmake-for-the-target.patch \ file://0003-Allow-building-a-separate-qmake-for-the-target.patch \
file://0004-configure-eval-QMAKE_CXX.patch \ file://0004-configure-eval-QMAKE_CXX.patch \
file://qmake.conf \ file://qmake.conf \
" "
DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev" DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev"
@ -20,7 +20,6 @@ XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus"
QT_MODULE_FLAGS = "-no-xcb" QT_MODULE_FLAGS = "-no-xcb"
INC_PR = "r0" INC_PR = "r0"
QT_BASE_NAME = "qt5" QT_BASE_NAME = "qt5"

View File

@ -12,7 +12,7 @@ inherit qmake5
SRC_URI += " \ SRC_URI += " \
file://module_qmake.conf \ file://module_qmake.conf \
" "
export QT_CONF_PATH="${WORKDIR}/qt.conf" export QT_CONF_PATH="${WORKDIR}/qt.conf"

View File

@ -22,10 +22,10 @@ PARALLEL_MAKE = ""
export QT_CONF_PATH="${WORKDIR}/qt.conf" export QT_CONF_PATH="${WORKDIR}/qt.conf"
do_configure () { do_configure () {
# Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++)
unset LD unset LD
# This should not be needed. Perhaps the lack of this file is an indication # This should not be needed. Perhaps the lack of this file is an indication
# of an error on the native recipe... # of an error on the native recipe...
cp ${WORKDIR}/module_qmake.conf ${S}/.qmake.conf cp ${WORKDIR}/module_qmake.conf ${S}/.qmake.conf