build: improve error message for missing dependency
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 20 Jul 2018 13:28:25 +0000 (14:28 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 08:04:59 +0000 (10:04 +0200)
commit203b61dc5e182ffe07e07e457d4f079dc06d1cb7
tree84fc2f97524eb6eee9dd62938350d06283a34b55
parentc49825f8956bffcd23502a4dd98b3a32d66bb975
build: improve error message for missing dependency

When building a driver or library and a required internal dependency
is missing, the error message printed was:

    Tried to get unknown variable "shared_rte_<libname>".

However, a better way to handle this is to catch the missing variable
earlier and convert it into a proper message, informing the user
that the required dependency is missing, and most importantly, what
library or driver wanted that dependency.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/meson.build
lib/meson.build