examples/packet_ordering: enhance getopt_long usage
[dpdk.git] / examples / meson.build
index f643ec1..d065a6a 100644 (file)
@@ -6,8 +6,6 @@ if get_option('default_library') == 'static'
        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',
@@ -48,6 +46,12 @@ all_examples = [
        '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
@@ -64,7 +68,7 @@ if cc.has_argument('-Wno-format-truncation')
        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
 
@@ -76,7 +80,7 @@ foreach example: examples
        cflags = default_cflags
        ldflags = default_ldflags
 
-       ext_deps = [execinfo]
+       ext_deps = []
        includes = [include_directories(example)]
        deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline']
        subdir(example)