From: mb Date: Wed, 18 Aug 2010 16:27:49 +0000 (+0000) Subject: qt4: Don't build examples/demos, if they are not selected. X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=52abffa52f90d61e86c7822091ae3c7aa699f92e;p=packages.git qt4: Don't build examples/demos, if they are not selected. This also adds PKG_CONFIG_DEPENDS to force a rebuild if those options change. This brings a significant build speed improvement. git-svn-id: svn://svn.openwrt.org/openwrt/packages@22705 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/Xorg/lib/qt4/Makefile b/Xorg/lib/qt4/Makefile index 9c8d5fb77..e380712ee 100644 --- a/Xorg/lib/qt4/Makefile +++ b/Xorg/lib/qt4/Makefile @@ -20,6 +20,10 @@ PKG_SOURCE_URL:=ftp://ftp.qt.nokia.com/qt/source PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-opensource-src-$(PKG_VERSION) PKG_BUILD_PARALLEL:=1 +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_qt4-demos \ + CONFIG_PACKAGE_qt4-examples + include $(INCLUDE_DIR)/package.mk # this should be moved to a more generic place later, as other packages are configured different as well depending on available nptl support @@ -265,8 +269,8 @@ define Build/Configure -no-rpath \ -force-pkg-config \ -nomake tools \ - -make demos \ - -make examples \ + $(if $(CONFIG_PACKAGE_qt4-demos),-make,-nomake) demos \ + $(if $(CONFIG_PACKAGE_qt4-examples),-make,-nomake) examples \ -nomake docs \ -nomake translations \ -xplatform qws/linux-openwrt-g++ \