[v5,2/2] buildtools: when building static library use static deps
Checks
Commit Message
Use the value of default_library and use it when building deps instead
of always using static deps so we get the correct static or shared deps.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
---
buildtools/chkincs/meson.build | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -20,10 +20,11 @@ sources += gen_c_files.process(dpdk_chkinc_headers)
# some driver SDK headers depend on these two buses, which are mandatory in build
# so we always include them in deps list
-deps = [get_variable('shared_rte_bus_vdev'), get_variable('shared_rte_bus_pci')]
+library_type = get_option('default_library')
+deps = [get_variable(library_type + '_rte_bus_vdev'), get_variable(library_type + '_rte_bus_pci')]
# add the rest of the libs to the dependencies
foreach l:dpdk_libs_enabled
- deps += get_variable('shared_rte_' + l)
+ deps += get_variable(library_type + '_rte_' + l)
endforeach
executable('chkincs', sources,