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 | |
| parent | 32165f04d49082773dbf6b78afe5506cba522f76 (diff) | |
| download | meta-qt5-ed6e2f317fd0839f51d03aee4120b25a1e1d704c.tar.gz | |
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')
| -rw-r--r-- | recipes-qt/qt5/qt5.inc | 47 | ||||
| -rw-r--r-- | recipes-qt/qt5/qtbase.inc | 49 |
2 files changed, 46 insertions, 50 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index ee035dc5..2feeed62 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | # Copyright (C) 2012 O.S. Systems Software LTDA. | 1 | # Copyright (C) 2012 O.S. Systems Software LTDA. |
| 2 | # Copyright (C) 2013 Martin Jansa <martin.jansa@gmail.com> | ||
| 2 | 3 | ||
| 3 | inherit qmake5 | 4 | inherit qmake5 |
| 4 | 5 | ||
| @@ -6,56 +7,10 @@ inherit qmake5 | |||
| 6 | ICU = "icu " | 7 | ICU = "icu " |
| 7 | ICU_powerpc = "pango" | 8 | ICU_powerpc = "pango" |
| 8 | 9 | ||
| 9 | DEPENDS += "virtual/libgl freetype jpeg libpng zlib openssl glib-2.0 ${ICU}" | ||
| 10 | |||
| 11 | require qt5_arch.inc | 10 | require qt5_arch.inc |
| 12 | 11 | ||
| 13 | QT_MODULE ?= "${BPN}" | 12 | QT_MODULE ?= "${BPN}" |
| 14 | 13 | ||
| 15 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" | ||
| 16 | QT_DISTRO_FLAGS_linuxstdbase = "-sm" | ||
| 17 | |||
| 18 | # Some can be used only for certain QT_MODULEs, so define them here, | ||
| 19 | # but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc | ||
| 20 | QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" | ||
| 21 | QT_GLFLAGS ?= "" | ||
| 22 | QT_XML ?= "-xmlpatterns" | ||
| 23 | QT_WEBKIT ?= "-webkit" | ||
| 24 | QT_PHONON ?= "-phonon" | ||
| 25 | QT_DBUS ?= "-qdbus" | ||
| 26 | QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', '-pulseaudio', '-no-pulseaudio', d)}" | ||
| 27 | QT_MODULE_FLAGS ?= "" | ||
| 28 | QT_NAS ?= "-no-nas-sound" | ||
| 29 | QT_NIS ?= "-no-nis" | ||
| 30 | QT_CUPS ?= "-no-cups" | ||
| 31 | QT_STL ?= "-stl" | ||
| 32 | QT_SYSTEM_LIBS ?= "-system-libjpeg -system-libpng -system-zlib" | ||
| 33 | QT_TESTS ?= "-nomake tests" | ||
| 34 | QT_EXAMPLES ?= "-nomake examples" | ||
| 35 | QT_DEMOS ?= "-nomake demos" | ||
| 36 | QT_RELEASE ?= "-release" | ||
| 37 | |||
| 38 | QT_CONFIG_FLAGS += " \ | ||
| 39 | ${QT_RELEASE} \ | ||
| 40 | -reduce-relocations \ | ||
| 41 | -shared \ | ||
| 42 | -silent \ | ||
| 43 | -glib \ | ||
| 44 | -no-pch \ | ||
| 45 | -no-rpath \ | ||
| 46 | -pkg-config \ | ||
| 47 | ${QT_SYSTEM_LIBS} \ | ||
| 48 | ${QT_NIS} \ | ||
| 49 | ${QT_CUPS} \ | ||
| 50 | ${QT_SQL_DRIVER_FLAGS} \ | ||
| 51 | ${QT_DISTRO_FLAGS} \ | ||
| 52 | ${QT_MODULE_FLAGS} \ | ||
| 53 | ${QT_GLFLAGS} \ | ||
| 54 | ${QT_TESTS} \ | ||
| 55 | ${QT_EXAMPLES} \ | ||
| 56 | ${QT_DEMOS} \ | ||
| 57 | " | ||
| 58 | |||
| 59 | SEPB = "${WORKDIR}/build" | 14 | SEPB = "${WORKDIR}/build" |
| 60 | B = "${SEPB}" | 15 | B = "${SEPB}" |
| 61 | 16 | ||
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 | |||
| 20 | XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" | 20 | XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" |
| 21 | # reenable when we switch to "-qt-xcb" and build of | 21 | # reenable when we switch to "-qt-xcb" and build of |
| 22 | # DEPENDS += "${XCB_DEPENDS}" | 22 | # DEPENDS += "${XCB_DEPENDS}" |
| 23 | # QT_MODULE_FLAGS = "-qt-xcb" | 23 | # QT_XCB = "-qt-xcb" |
| 24 | # src/platformsupport/glxconvenience/ is resolved to be before build of | 24 | # src/platformsupport/glxconvenience/ is resolved to be before build of |
| 25 | # src/plugins/platforms/xcb/ | 25 | # src/plugins/platforms/xcb/ |
| 26 | 26 | ||
| 27 | QT_MODULE_FLAGS = "-no-xcb" | 27 | QT_XCB ?= "-no-xcb" |
| 28 | |||
| 29 | QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" | ||
| 30 | QT_DISTRO_FLAGS_linuxstdbase = "-sm" | ||
| 31 | |||
| 32 | # Some can be used only for certain QT_MODULEs, so define them here, | ||
| 33 | # but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc | ||
| 34 | QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" | ||
| 35 | QT_GLFLAGS ?= "" | ||
| 36 | QT_XML ?= "-xmlpatterns" | ||
| 37 | QT_WEBKIT ?= "-webkit" | ||
| 38 | QT_PHONON ?= "-phonon" | ||
| 39 | QT_DBUS ?= "-qdbus" | ||
| 40 | QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', '-pulseaudio', '-no-pulseaudio', d)}" | ||
| 41 | QT_NAS ?= "-no-nas-sound" | ||
| 42 | QT_NIS ?= "-no-nis" | ||
| 43 | QT_CUPS ?= "-no-cups" | ||
| 44 | QT_STL ?= "-stl" | ||
| 45 | QT_SYSTEM_LIBS ?= "-system-libjpeg -system-libpng -system-zlib" | ||
| 46 | QT_TESTS ?= "-nomake tests" | ||
| 47 | QT_EXAMPLES ?= "-nomake examples" | ||
| 48 | QT_DEMOS ?= "-nomake demos" | ||
| 49 | QT_RELEASE ?= "-release" | ||
| 50 | |||
| 51 | QT_CONFIG_FLAGS += " \ | ||
| 52 | ${QT_RELEASE} \ | ||
| 53 | -reduce-relocations \ | ||
| 54 | -shared \ | ||
| 55 | -silent \ | ||
| 56 | -glib \ | ||
| 57 | -no-pch \ | ||
| 58 | -no-rpath \ | ||
| 59 | -pkg-config \ | ||
| 60 | ${QT_SYSTEM_LIBS} \ | ||
| 61 | ${QT_NIS} \ | ||
| 62 | ${QT_CUPS} \ | ||
| 63 | ${QT_SQL_DRIVER_FLAGS} \ | ||
| 64 | ${QT_DISTRO_FLAGS} \ | ||
| 65 | ${QT_XCB} \ | ||
| 66 | ${QT_GLFLAGS} \ | ||
| 67 | ${QT_TESTS} \ | ||
| 68 | ${QT_EXAMPLES} \ | ||
| 69 | ${QT_DEMOS} \ | ||
| 70 | " | ||
| 28 | 71 | ||
| 29 | INC_PR = "r0" | 72 | INC_PR = "r0" |
| 30 | 73 | ||
| 31 | # Qt uses atomic instructions not supported in thumb mode | 74 | # Qt uses atomic instructions not supported in thumb mode |
| 32 | ARM_INSTRUCTION_SET = "arm" | 75 | ARM_INSTRUCTION_SET = "arm" |
| 33 | 76 | ||
| 34 | inherit qmake5 | ||
| 35 | |||
| 36 | do_generate_qt_config_file_append() { | 77 | do_generate_qt_config_file_append() { |
| 37 | cat >> ${WORKDIR}/qt.conf <<EOF | 78 | cat >> ${WORKDIR}/qt.conf <<EOF |
| 38 | 79 | ||
