-
-dep_objs = []
-foreach d:deps
- dep_objs += get_variable(get_option('default_library') + '_rte_' + d)
-endforeach
-
-link_libs = []
-if get_option('default_library') == 'static'
- link_libs = dpdk_drivers
+if dpdk_conf.has('RTE_LIB_GRO')
+ deps += 'gro'
+endif
+if dpdk_conf.has('RTE_LIB_GSO')
+ deps += 'gso'
+endif
+if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
+ deps += 'latencystats'
+endif
+if dpdk_conf.has('RTE_LIB_METRICS')
+ deps += 'metrics'
+endif
+if dpdk_conf.has('RTE_LIB_PDUMP')
+ deps += 'pdump'
+endif
+if dpdk_conf.has('RTE_NET_BOND')
+ deps += 'net_bond'
+endif
+if dpdk_conf.has('RTE_NET_BNXT')
+ deps += 'net_bnxt'
+endif
+if dpdk_conf.has('RTE_NET_I40E')
+ deps += 'net_i40e'
+endif
+if dpdk_conf.has('RTE_NET_IXGBE')
+ deps += 'net_ixgbe'
+endif
+if dpdk_conf.has('RTE_NET_DPAA')
+ deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']