examples: build some samples with meson
[dpdk.git] / meson.build
index c1cbdfe..8c08436 100644 (file)
@@ -49,7 +49,7 @@ if get_option('default_library') == 'static'
        driver_install_path = get_option('libdir')
        eal_pmd_path = ''
 else
-       driver_install_path = join_paths(get_option('datadir'), 'dpdk/drivers')
+       driver_install_path = join_paths(get_option('libdir'), 'dpdk/drivers')
        eal_pmd_path = join_paths(get_option('prefix'), driver_install_path)
 endif
 
@@ -68,6 +68,11 @@ subdir('drivers')
 subdir('usertools')
 subdir('app')
 
+# build any examples explicitly requested - useful for developers
+if get_option('examples') != ''
+       subdir('examples')
+endif
+
 # write the build config
 build_cfg = 'rte_build_config.h'
 configure_file(output: build_cfg,