From 95e49bf0f426e1f4bb063fb8fb4166d393333817 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sun, 18 Nov 2012 18:02:52 +0100 Subject: qt5: split QT_CONFIG_FLAGS to more separate variables Signed-off-by: Martin Jansa --- recipes-qt/qt5/qt5.inc | 49 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 8 deletions(-) (limited to 'recipes-qt/qt5/qt5.inc') diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index 5035ad08..12d5de2f 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc @@ -18,12 +18,50 @@ require qt5_arch.inc QT_MODULE ?= "${PN}" -QT_CONFIG_FLAGS ?= "" - +QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" +QT_DISTRO_FLAGS_linuxstdbase = "-sm" + +# Some can be used only for certain QT_MODULEs, so define them here, +# but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc +QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" +QT_GLFLAGS ?= "" +QT_QT3SUPPORT ?= "-qt3support" +QT_XML ?= "-xmlpatterns" +QT_WEBKIT ?= "-webkit" +QT_PHONON ?= "-phonon" +QT_DBUS ?= "-qdbus" +QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', '-pulseaudio', '-no-pulseaudio', d)}" +QT_MODULE_FLAGS ?= "" +QT_NAS ?= "-no-nas-sound" +QT_NIS ?= "-no-nis" +QT_CUPS ?= "-no-cups" +QT_STL ?= "-stl" +QT_SYSTEM_LIBS ?= "-system-libjpeg -system-libpng -system-zlib" QT_TESTS ?= "-nomake tests" QT_EXAMPLES ?= "-nomake examples" QT_DEMOS ?= "-nomake demos" +QT_CONFIG_FLAGS += " \ + -release \ + -reduce-relocations \ + -shared \ + -silent \ + -glib \ + -no-pch \ + -no-rpath \ + -no-fast \ + ${QT_SYSTEM_LIBS} \ + ${QT_NIS} \ + ${QT_CUPS} \ + ${QT_SQL_DRIVER_FLAGS} \ + ${QT_DISTRO_FLAGS} \ + ${QT_MODULE_FLAGS} \ + ${QT_GLFLAGS} \ + ${QT_TESTS} \ + ${QT_EXAMPLES} \ + ${QT_DEMOS} \ +" + EXTRA_OEMAKE = "-e" @@ -60,14 +98,9 @@ do_configure() { -importdir ${libdir}/${QT_DIR_NAME}/imports \ -translationdir ${datadir}/${QT_DIR_NAME}/translations \ -examplesdir ${bindir}/${QT_DIR_NAME}/examples \ - -shared \ - -no-rpath \ -platform build-oe-g++ \ -xplatform ${TARGET_OS}-oe-g++ \ - ${QT_TESTS} \ - ${QT_EXAMPLES} \ - ${QT_DEMOS} \ - ${QT_CONFIG_FLAGS} -no-fast + ${QT_CONFIG_FLAGS} } do_compile() { -- cgit v1.2.3