make qt5base a build dependency for qt5base/host
authorMirko Vogt <mirko-dev@nanl.de>
Tue, 21 Feb 2017 15:56:28 +0000 (16:56 +0100)
committerMirko Vogt <mirko-dev@nanl.de>
Tue, 21 Feb 2017 18:19:20 +0000 (19:19 +0100)
frameworks/qt5base/Makefile

index 1490ff4a45b6d171bf74f76a9dd6d0c37e41052a..3fe52ca939695f7ef3ca2ad699e5a391ce2ab8a6 100644 (file)
@@ -27,6 +27,16 @@ HOST_BUILD_PARALLEL:=1
 PKG_BUILD_DEPENDS:=librpc
 PKG_INSTALL:=1
 PKG_USE_MIPS16:=0
+# Yes, the host build depends on the target build. This is not a mistake!
+# The target build provides the (target specific) qmake.mk file which
+# is also used for host builds.
+# Host projects depend on qt5base/host which however don't build
+# if qt5base didn't install the qmake.mk file before.
+# Benefit of the target build providing qmake.mk instead of the host build
+# is that the host build really only needs to be built, if there're targets
+# which actually depend on it. At the time of this writing, only qt5tools
+# makes use of the host build.
+HOST_BUILD_DEPENDS:=qt5base
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk