X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fmeson.build;h=3d77b1f9014a8310bc4876023967534e335e6cda;hb=9a6188035b25aee613df35914d8d5d67b1dd2307;hp=992091a9407edc7c4646193a0d4098e617a54a60;hpb=4c773788e05a3d5e2a55e134f015bea09350807b;p=dpdk.git diff --git a/lib/meson.build b/lib/meson.build index 992091a940..3d77b1f901 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -23,7 +23,7 @@ libraries = [ 'kni', 'latencystats', 'lpm', 'member', 'power', 'pdump', 'rawdev', 'rcu', 'reorder', 'sched', 'security', 'stack', 'vhost', - #ipsec lib depends on crypto and security + # ipsec lib depends on net, crypto and security 'ipsec', # add pkt framework libs which use other libs from above 'port', 'table', 'pipeline', @@ -41,11 +41,9 @@ endif enabled_libs = [] # used to print summary at the end -# -D_GNU_SOURCE unconditionally -default_cflags += '-D_GNU_SOURCE' - foreach l:libraries build = true + reason = '' # set if build == false to explain why name = l version = 1 allow_experimental_apis = false @@ -68,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)