qt4: Don't build examples/demos, if they are not selected.
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Aug 2010 16:27:49 +0000 (16:27 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Aug 2010 16:27:49 +0000 (16:27 +0000)
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

Xorg/lib/qt4/Makefile

index 9c8d5fb..e380712 100644 (file)
@@ -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++ \