devtools: pass custom options to checkpatch
[dpdk.git] / lib / meson.build
index 9398a3a..5ddf1ca 100644 (file)
@@ -43,6 +43,7 @@ enabled_libs = [] # used to print summary at the end
 
 foreach l:libraries
        build = true
+       reason = '<unknown reason>' # set if build == false to explain why
        name = l
        version = 1
        allow_experimental_apis = false
@@ -65,7 +66,10 @@ foreach l:libraries
        dir_name = 'librte_' + l
        subdir(dir_name)
 
-       if build
+       if not build
+               dpdk_libs_disabled += name
+               set_variable(name.underscorify() + '_disable_reason', reason)
+       else
                enabled_libs += name
                dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1)
                install_headers(headers)