git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/packet_ordering: enhance getopt_long usage
[dpdk.git]
/
examples
/
meson.build
diff --git
a/examples/meson.build
b/examples/meson.build
index
f643ec1
..
d065a6a
100644
(file)
--- a/
examples/meson.build
+++ b/
examples/meson.build
@@
-6,8
+6,6
@@
if get_option('default_library') == 'static'
link_whole_libs = dpdk_static_libraries + dpdk_drivers
endif
link_whole_libs = dpdk_static_libraries + dpdk_drivers
endif
-execinfo = cc.find_library('execinfo', required: false)
-
# list of all example apps. Keep 1-3 per line, in alphabetical order.
all_examples = [
'bbdev_app', 'bond',
# list of all example apps. Keep 1-3 per line, in alphabetical order.
all_examples = [
'bbdev_app', 'bond',
@@
-48,6
+46,12
@@
all_examples = [
'vmdq', 'vmdq_dcb',
]
'vmdq', 'vmdq_dcb',
]
+# on install, skip copying all meson.build files
+ex_file_excludes = ['meson.build']
+foreach ex:all_examples
+ ex_file_excludes += [ex + '/meson.build']
+endforeach
+
if get_option('examples') == ''
subdir_done()
endif
if get_option('examples') == ''
subdir_done()
endif
@@
-64,7
+68,7
@@
if cc.has_argument('-Wno-format-truncation')
default_cflags += '-Wno-format-truncation'
endif
default_ldflags = dpdk_extra_ldflags
default_cflags += '-Wno-format-truncation'
endif
default_ldflags = dpdk_extra_ldflags
-if get_option('default_library') == 'static'
+if get_option('default_library') == 'static'
and not is_windows
default_ldflags += ['-Wl,--export-dynamic']
endif
default_ldflags += ['-Wl,--export-dynamic']
endif
@@
-76,7
+80,7
@@
foreach example: examples
cflags = default_cflags
ldflags = default_ldflags
cflags = default_cflags
ldflags = default_ldflags
- ext_deps = [
execinfo
]
+ ext_deps = []
includes = [include_directories(example)]
deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
subdir(example)
includes = [include_directories(example)]
deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
subdir(example)