]> code.ossystems Code Review - openembedded-core.git/commitdiff
libQtOpenGL:Add libQtOpenGL to an lsb image
authorXiaofeng Yan <xiaofeng.yan@windriver.com>
Tue, 5 Jul 2011 08:40:46 +0000 (16:40 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jul 2011 12:32:29 +0000 (13:32 +0100)
I make "opengl" as a DISTO_FEATURE for installing libQtOpenGL to image.
Fix Bug [YOCTO #1020]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/tasks/task-core-lsb.bb
meta/recipes-qt/qt4/qt4-x11-free.inc

index 2ec63ccd83773e0390740ff2b0bcd12a9fe6f952..672b487dfc0f4d150a9d78d84e93f7ca3ccc5e25 100644 (file)
@@ -173,23 +173,7 @@ RDEPENDS_task-core-lsb-graphic-add = "\
     gtk+ \
     atk \
     libasound \
-"
-
-RDEPENDS_task-core-lsb-graphic-add_qemux86 = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_atom-pc = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_qemuppc = "\
-    libqtopengl4 \
-"
-RDEPENDS_task-core-lsb-graphic-add_emenlow = "\
-    libqtopengl4 \
-"
-
-RDEPENDS_task-core-lsb-graphic-add_mpc8315e-rdb = "\
-    libqtopengl4 \
+    ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \
 "
 
 #    mesa-dri 
index 7a30af63247ee48da6470b9a790b0180fade953b..e6169f3dcfe736a63d7777e043e4076199662177 100644 (file)
@@ -7,7 +7,7 @@ DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender li
 
 INC_PR = "r24"
 
-QT_GLFLAGS ?= "-no-opengl"
+QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
 QT_GLFLAGS_qemux86 = "-opengl"
 QT_GLFLAGS_qemuppc = "-opengl"
 QT_CONFIG_FLAGS += "-no-xinerama -no-xkb ${QT_GLFLAGS}"