wafsamba: Add CHECK_CMOCKA function
authorAndreas Schneider <asn@samba.org>
Fri, 7 Apr 2017 13:44:22 +0000 (15:44 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 10 Apr 2017 05:45:24 +0000 (07:45 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
buildtools/wafsamba/samba_third_party.py

index 8cfa4df7214b6d82c4acc4b4d3a021d6c136e85b..ac77be74f5ac5050f9aa2466ceb31c59542967e2 100644 (file)
@@ -33,3 +33,9 @@ def CHECK_POPT(conf):
     return conf.CHECK_BUNDLED_SYSTEM('popt', checkfunctions='poptGetContext', headers='popt.h')
 
 Build.BuildContext.CHECK_POPT = CHECK_POPT
+
+@conf
+def CHECK_CMOCKA(conf):
+    return conf.CHECK_BUNDLED_SYSTEM_PKG('cmocka', minversion='1.1.1')
+
+Build.BuildContext.CHECK_CMOCKA = CHECK_CMOCKA