Commit 3c71b90c authored by Spenser Gilliland's avatar Spenser Gilliland Committed by Peter Korsgaard
Browse files

qt: add powervr and opengl



Use the following to test:
/usr/share/qt/examples/opengl/hellogl_es2/hellogl_es2 -qws -display powervr

Signed-off-by: default avatarSpenser Gilliland <spenser@gillilanding.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Sundareson, Prabindh <prabu@ti.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Sinan Akpolat <sinan@linkas.com.tr>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 7fdcf8e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23,4 +23,9 @@ config BR2_PACKAGE_QT_GFX_DIRECTFB
	depends on BR2_PACKAGE_DIRECTFB
	bool "directFB"

config BR2_PACKAGE_QT_GFX_POWERVR
	depends on BR2_PACKAGE_QT_OPENGL_ES
	depends on BR2_PACKAGE_HAS_POWERVR
	bool "powervr"

endmenu
+8 −0
Original line number Diff line number Diff line
@@ -281,6 +281,14 @@ config BR2_PACKAGE_QT_PHONON_BACKEND
	help
	  Build the platform Phonon plugin.
	  If unsure, say n.

config BR2_PACKAGE_QT_OPENGL_ES
	bool "OpenGL ES v2.x support"
	depends on BR2_PACKAGE_HAS_OPENGL_ES
	depends on BR2_PACKAGE_HAS_OPENGL_EGL
	help
	  Enable the OpenGL ES v2.x support.

endif

config BR2_PACKAGE_QT_DBUS

package/qt/powervr.ini

0 → 100644
+2 −0
Original line number Diff line number Diff line
[default]
WindowSystem=libpvrQWSWSEGL.so.1
+802 −0

File added.

Preview size limit exceeded, changes collapsed.

+28 −1
Original line number Diff line number Diff line
@@ -136,7 +136,11 @@ QT_DEPENDENCIES += directfb
else
QT_CONFIGURE_OPTS += -no-gfx-directfb
endif

ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y)
QT_CONFIGURE_OPTS += \
	-plugin-gfx-powervr -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT
QT_DEPENDENCIES += powervr
endif

### Mouse drivers
ifeq ($(BR2_PACKAGE_QT_MOUSE_PC),y)
@@ -313,6 +317,13 @@ else
QT_CONFIGURE_OPTS += -no-openssl
endif

ifeq ($(BR2_PACKAGE_QT_OPENGL_ES),y)
QT_CONFIGURE_OPTS += -opengl es2 -egl
QT_DEPENDENCIES   += libgles libegl
else
QT_CONFIGURE_OPTS += -no-opengl
endif

# Qt SQL Drivers
ifeq ($(BR2_PACKAGE_QT_SQL_MODULE),y)
ifeq ($(BR2_PACKAGE_QT_IBASE),y)
@@ -564,6 +575,12 @@ endif
ifeq ($(BR2_PACKAGE_QT_QT3SUPPORT),y)
QT_INSTALL_LIBS    += Qt3Support
endif
ifeq ($(BR2_PACKAGE_QT_OPENGL_ES),y)
QT_INSTALL_LIBS    += QtOpenGL
endif
ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y)
QT_INSTALL_LIBS    += pvrQWSWSEGL
endif

QT_CONF_FILE=$(HOST_DIR)/usr/bin/qt.conf

@@ -640,12 +657,22 @@ define QT_INSTALL_TARGET_FONTS_TTF
endef
endif

ifeq ($(BR2_PACKAGE_QT_GFX_POWERVR),y)
define QT_INSTALL_TARGET_POWERVR
	# Note: this overwrites the default powervr.ini provided by the ti-gfx
	# package.
	$(INSTALL) -D -m 0644 package/qt/powervr.ini \
		$(TARGET_DIR)/etc/powervr.ini
endef
endif

define QT_INSTALL_TARGET_CMDS
	$(QT_INSTALL_TARGET_LIBS)
	$(QT_INSTALL_TARGET_PLUGINS)
	$(QT_INSTALL_TARGET_IMPORTS)
	$(QT_INSTALL_TARGET_FONTS)
	$(QT_INSTALL_TARGET_FONTS_TTF)
	$(QT_INSTALL_TARGET_POWERVR)
endef

define QT_CLEAN_CMDS