# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-# require the power library
-build = dpdk_conf.has('RTE_LIB_POWER')
-if not build
- subdir_done()
-endif
-
allow_experimental_apis = true
deps += ['distributor', 'power']
sources = files(
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-# this app can be built if-and-only-if KNI library is buildable
-build = dpdk_conf.has('RTE_LIB_KNI')
-if not build
- subdir_done()
-endif
-
deps += ['kni', 'bus_pci']
sources = files(
'main.c',
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if not dpdk_conf.has('RTE_LIB_POWER')
- build = false
- subdir_done()
-endif
-
allow_experimental_apis = true
deps += ['power', 'timer', 'lpm', 'hash', 'metrics', 'telemetry']
sources = files(
deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
subdir(example)
+ if build
+ dep_objs = ext_deps
+ foreach d:deps
+ var_name = get_option('default_library') + '_rte_' + d
+ if not is_variable(var_name)
+ build = false
+ message('Missing dependency "@0@" for example "@1@"'.format(d, name))
+ break
+ endif
+ dep_objs += [get_variable(var_name)]
+ endforeach
+ endif
+
if not build
if not allow_skips
error('Cannot build requested example "' + name + '"')
continue
endif
- dep_objs = ext_deps
- foreach d:deps
- var_name = get_option('default_library') + '_rte_' + d
- if not is_variable(var_name)
- error('Missing dependency "@0@" for example "@1@"'.format(d, name))
- endif
- dep_objs += [get_variable(var_name)]
- endforeach
if allow_experimental_apis
cflags += '-DALLOW_EXPERIMENTAL_API'
endif
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-build = dpdk_conf.has('RTE_LIB_VHOST')
-if not build
- subdir_done()
-endif
-
allow_experimental_apis = true
deps += ['vhost', 'cryptodev']
sources = files(
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if not dpdk_conf.has('RTE_LIB_POWER')
- build = false
- subdir_done()
-endif
-
deps += ['power']
sources = files(
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if not dpdk_conf.has('RTE_LIB_POWER')
- build = false
- subdir_done()
-endif
-
deps += ['power']
if dpdk_conf.has('RTE_NET_BNXT')