app/eventdev: build with meson
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Fri, 19 Jan 2018 18:15:21 +0000 (23:45 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Jan 2018 20:58:59 +0000 (21:58 +0100)
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/meson.build
app/test-eventdev/meson.build [new file with mode: 0644]

index c5b7859..0088de4 100644 (file)
@@ -2,3 +2,4 @@
 # Copyright(c) 2017 Intel Corporation
 
 subdir('test-pmd')
+subdir('test-eventdev')
diff --git a/app/test-eventdev/meson.build b/app/test-eventdev/meson.build
new file mode 100644 (file)
index 0000000..e5be150
--- /dev/null
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2017 Cavium, Inc
+
+sources = files('evt_main.c',
+               'evt_options.c',
+               'evt_test.c',
+               'parser.c',
+               'test_order_common.c',
+               'test_order_atq.c',
+               'test_order_queue.c',
+               'test_perf_common.c',
+               'test_perf_atq.c',
+               'test_perf_queue.c')
+
+dep_objs = [get_variable(get_option('default_library') + '_rte_eventdev')]
+
+link_libs = []
+if get_option('default_library') == 'static'
+       link_libs = dpdk_drivers
+endif
+
+executable('dpdk-test-eventdev',
+       sources,
+       c_args: [machine_arg, '-DALLOW_EXPERIMENTAL_API'],
+       link_whole: link_libs,
+       dependencies: dep_objs,
+       install_rpath: join_paths(get_option('prefix'), driver_install_path),
+       install: true)