qt4: Add X11 support

git-svn-id: svn://svn.openwrt.org/openwrt/packages@22740 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2010-08-20 16:00:37 +00:00
parent a5268117b5
commit ff16f17a1f
3 changed files with 27 additions and 16 deletions
Xorg/lib/qt4

@ -5,12 +5,15 @@ choice
config QT4_WS_QWS config QT4_WS_QWS
bool "QWS window system" bool "QWS window system"
depends on FEATURE_drawing-backend_DirectFB
select PACKAGE_directfb
select PACKAGE_tslib
help help
Use QT4's internal QWS window system. Use QT4's internal QWS window system.
config QT4_WS_X11 config QT4_WS_X11
bool "X11 window system" bool "X11 window system"
depends on FEATURE_drawing-backend_libX11 && BROKEN depends on FEATURE_drawing-backend_libX11
select PACKAGE_libX11 select PACKAGE_libX11
help help
Use X11 Use X11

@ -6,7 +6,7 @@
# #
# TODO: # TODO:
# - test/add X11/xcb support # - test/add xcb support
# - handle plugins in a granular way (find out which packages should provide which plugins) # - handle plugins in a granular way (find out which packages should provide which plugins)
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
@ -23,6 +23,7 @@ PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:= \ PKG_CONFIG_DEPENDS:= \
CONFIG_QT4_WS_QWS \ CONFIG_QT4_WS_QWS \
CONFIG_QT4_WS_X11 \ CONFIG_QT4_WS_X11 \
CONFIG_PACKAGE_directfb \
CONFIG_PACKAGE_qt4-demos \ CONFIG_PACKAGE_qt4-demos \
CONFIG_PACKAGE_qt4-examples \ CONFIG_PACKAGE_qt4-examples \
CONFIG_PACKAGE_qt4-svg \ CONFIG_PACKAGE_qt4-svg \
@ -60,7 +61,7 @@ endef
define Package/qt4 define Package/qt4
$(call Package/qt4/Default) $(call Package/qt4/Default)
DEPENDS:=@FEATURE_drawing-backend_DirectFB +FEATURE_drawing-backend_DirectFB:directfb +zlib +libstdcpp +libsqlite3 +tslib # require directfb for now, as other systems (libX11, xcb) are untested DEPENDS:=@FEATURE_drawing-backend_DirectFB||@FEATURE_drawing-backend_libX11 +zlib +libstdcpp +libsqlite3
endef endef
define Package/qt4-gui define Package/qt4-gui
@ -195,6 +196,7 @@ endef
define Package/qt4-drivers-mouse/Default define Package/qt4-drivers-mouse/Default
$(call Package/qt4/Default) $(call Package/qt4/Default)
TITLE+=mousedrivers TITLE+=mousedrivers
DEPENDS+=@QT4_WS_QWS
endef endef
define Package/qt4-drivers-mouse-tpmousedriver define Package/qt4-drivers-mouse-tpmousedriver
@ -216,11 +218,13 @@ endef
define Package/qt4-drivers-gfx/Default define Package/qt4-drivers-gfx/Default
$(call Package/qt4/Default) $(call Package/qt4/Default)
TITLE+=gfxdrivers TITLE+=gfxdrivers
DEPENDS+=@QT4_WS_QWS
endef endef
define Package/qt4-drivers-gfx-directfb define Package/qt4-drivers-gfx-directfb
$(call Package/qt4-drivers-gfx/Default) $(call Package/qt4-drivers-gfx/Default)
TITLE+=directfb TITLE+=directfb
DEPENDS+=@FEATURE_drawing-backend_DirectFB +FEATURE_drawing-backend_DirectFB:directfb
endef endef
define Package/qt4-drivers-gfx-linuxfb define Package/qt4-drivers-gfx-linuxfb
@ -232,6 +236,7 @@ endef
define Package/qt4-drivers-kbd/Default define Package/qt4-drivers-kbd/Default
$(call Package/qt4/Default) $(call Package/qt4/Default)
TITLE+=kbddrivers TITLE+=kbddrivers
DEPENDS+=@QT4_WS_QWS
endef endef
define Package/qt4-drivers-kbd-linuxinput define Package/qt4-drivers-kbd-linuxinput
@ -258,9 +263,9 @@ define Build/Configure
# linuxfb/directfb: since directfb is not much overhead compared to plain framebuffer, force using directfb # linuxfb/directfb: since directfb is not much overhead compared to plain framebuffer, force using directfb
# do not use fontconfig as it doesn't work anyway for qte # do not use fontconfig as it doesn't work anyway for qte
# bindir: bindir is where the host tools (qmake, moc, rcc, uic) will get installed into - they are just used on the host and not goig to be packaged # bindir: bindir is where the host tools (qmake, moc, rcc, uic) will get installed into - they are just used on the host and not goig to be packaged
mkdir -p $(PKG_BUILD_DIR)/mkspecs/qws/linux-openwrt-g++ mkdir -p $(PKG_BUILD_DIR)/mkspecs/$(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++
$(CP) ./files/$(FILEPFX)qmake.conf $(PKG_BUILD_DIR)/mkspecs/qws/linux-openwrt-g++/qmake.conf $(CP) ./files/$(FILEPFX)qmake.conf $(PKG_BUILD_DIR)/mkspecs/$(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++/qmake.conf
$(CP) ./files/$(FILEPFX)qplatformdefs.h $(PKG_BUILD_DIR)/mkspecs/qws/linux-openwrt-g++/qplatformdefs.h $(CP) ./files/$(FILEPFX)qplatformdefs.h $(PKG_BUILD_DIR)/mkspecs/$(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++/qplatformdefs.h
( cd $(PKG_BUILD_DIR) ; \ ( cd $(PKG_BUILD_DIR) ; \
TARGET_CC="$(TARGET_CROSS)gcc" \ TARGET_CC="$(TARGET_CROSS)gcc" \
TARGET_CXX="$(TARGET_CROSS)g++" \ TARGET_CXX="$(TARGET_CROSS)g++" \
@ -275,6 +280,7 @@ define Build/Configure
STAGING_DIR="$(STAGING_DIR)" \ STAGING_DIR="$(STAGING_DIR)" \
STAGING_DIR_HOST="$(STAGING_DIR)/../host" \ STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
./configure \ ./configure \
-arch $(ARCH) \
-prefix $(CONFIGURE_PREFIX) \ -prefix $(CONFIGURE_PREFIX) \
-bindir $(CONFIGURE_PREFIX)/bin \ -bindir $(CONFIGURE_PREFIX)/bin \
-libdir $(CONFIGURE_PREFIX)/lib \ -libdir $(CONFIGURE_PREFIX)/lib \
@ -290,9 +296,10 @@ define Build/Configure
$(if $(CONFIG_PACKAGE_qt4-examples),-make,-nomake) examples \ $(if $(CONFIG_PACKAGE_qt4-examples),-make,-nomake) examples \
-nomake docs \ -nomake docs \
-nomake translations \ -nomake translations \
-xplatform qws/linux-openwrt-g++ \ -xplatform $(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++ \
-platform linux-g++ \ -platform linux-g++ \
-embedded \ $(if $(CONFIG_QT4_WS_QWS),-embedded) \
$(if $(CONFIG_QT4_WS_X11),-x11) \
-release \ -release \
-confirm-license \ -confirm-license \
-opensource \ -opensource \
@ -334,16 +341,16 @@ define Build/Configure
-no-openvg \ -no-openvg \
-no-sm \ -no-sm \
-no-xshape \ -no-xshape \
-no-xsync \ $(if $(CONFIG_QT4_WS_X11),-no-xsync,-xsync) \
-no-xinerama \ -no-xinerama \
-no-xcursor \ $(if $(CONFIG_QT4_WS_X11),-no-xcursor,-xcursor) \
-no-xfixes \ -no-xfixes \
-no-xrandr \ -no-xrandr \
-no-xrender \ -no-xrender \
-no-mitshm \ $(if $(CONFIG_QT4_WS_X11),-no-mitshm,-mitshm) \
-no-fontconfig \ $(if $(CONFIG_QT4_WS_X11),-no-fontconfig,-fontconfig) \
-no-xinput \ $(if $(CONFIG_QT4_WS_X11),-no-xinput,-xinput) \
-no-xkb \ $(if $(CONFIG_QT4_WS_X11),-no-xkb,-xkb) \
-no-glib \ -no-glib \
$(if $(CONFIG_PACKAGE_qt4-qt3support),-qt3support,-no-qt3support) \ $(if $(CONFIG_PACKAGE_qt4-qt3support),-qt3support,-no-qt3support) \
-no-gfx-transformed \ -no-gfx-transformed \
@ -351,7 +358,7 @@ define Build/Configure
-no-gfx-vnc \ -no-gfx-vnc \
-no-gfx-multiscreen \ -no-gfx-multiscreen \
-no-gfx-qnx \ -no-gfx-qnx \
-plugin-gfx-directfb \ $(if $(CONFIG_PACKAGE_directfb),-plugin-gfx-directfb) \
-plugin-gfx-linuxfb \ -plugin-gfx-linuxfb \
-no-mouse-qvfb \ -no-mouse-qvfb \
-no-mouse-qnx \ -no-mouse-qnx \

@ -5,7 +5,8 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
QMAKE_SPECFILE:=$(STAGING_DIR)/usr/share/mkspecs/qws/linux-openwrt-g++ QMAKE_PLATFORM_PREFIX:=$(if $(CONFIG_QT4_WS_QWS),qws/)
QMAKE_SPECFILE:=$(STAGING_DIR)/usr/share/mkspecs/$(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++
TARGET_INCDIRS+=$(STAGING_DIR)/include $(STAGING_DIR)/usr/include $(TOOLCHAIN_DIR)/include $(TOOLCHAIN_DIR)/usr/include TARGET_INCDIRS+=$(STAGING_DIR)/include $(STAGING_DIR)/usr/include $(TOOLCHAIN_DIR)/include $(TOOLCHAIN_DIR)/usr/include
TARGET_LIBDIRS+=$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib $(TOOLCHAIN_DIR)/lib $(TOOLCHAIN_DIR)/usr/lib TARGET_LIBDIRS+=$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib $(TOOLCHAIN_DIR)/lib $(TOOLCHAIN_DIR)/usr/lib