diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-07 15:10:31 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-07 15:37:00 +0200 |
commit | ed6e2f317fd0839f51d03aee4120b25a1e1d704c (patch) | |
tree | 44a6b749c5a2ba3587485c6fdc8f7d5a11af92ea /recipes-qt/qt5/qtbase.inc | |
parent | 32165f04d49082773dbf6b78afe5506cba522f76 (diff) |
qt5: move variables used only in qtbase to qtbase.inc
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase.inc')
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index 281bbaba..2af91796 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc @@ -20,19 +20,60 @@ DEPENDS += "qtbase-native virtual/libgl freetype jpeg libpng zlib openssl glib-2 XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" # reenable when we switch to "-qt-xcb" and build of # DEPENDS += "${XCB_DEPENDS}" -# QT_MODULE_FLAGS = "-qt-xcb" +# QT_XCB = "-qt-xcb" # src/platformsupport/glxconvenience/ is resolved to be before build of # src/plugins/platforms/xcb/ -QT_MODULE_FLAGS = "-no-xcb" +QT_XCB ?= "-no-xcb" + +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_XML ?= "-xmlpatterns" +QT_WEBKIT ?= "-webkit" +QT_PHONON ?= "-phonon" +QT_DBUS ?= "-qdbus" +QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', '-pulseaudio', '-no-pulseaudio', d)}" +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_RELEASE ?= "-release" + +QT_CONFIG_FLAGS += " \ + ${QT_RELEASE} \ + -reduce-relocations \ + -shared \ + -silent \ + -glib \ + -no-pch \ + -no-rpath \ + -pkg-config \ + ${QT_SYSTEM_LIBS} \ + ${QT_NIS} \ + ${QT_CUPS} \ + ${QT_SQL_DRIVER_FLAGS} \ + ${QT_DISTRO_FLAGS} \ + ${QT_XCB} \ + ${QT_GLFLAGS} \ + ${QT_TESTS} \ + ${QT_EXAMPLES} \ + ${QT_DEMOS} \ +" INC_PR = "r0" # Qt uses atomic instructions not supported in thumb mode ARM_INSTRUCTION_SET = "arm" -inherit qmake5 - do_generate_qt_config_file_append() { cat >> ${WORKDIR}/qt.conf <<EOF |