X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=meson.build;h=c914bc6298e2c582e277dd3c565aa6b6bde2c3a7;hb=2d245e6983a727f1f453dcf5b432a21e842dc3aa;hp=45d974cd2c488aff6b001e12ea1844298c9e38f3;hpb=e5b95003f1df2ac65cbd11e642b1d6a91bd1058a;p=dpdk.git diff --git a/meson.build b/meson.build index 45d974cd2c..c914bc6298 100644 --- a/meson.build +++ b/meson.build @@ -11,11 +11,26 @@ project('DPDK', 'C', meson_version: '>= 0.47.1' ) +# check for developer mode +developer_mode = false +if get_option('developer_mode').auto() + if meson.version().version_compare('>=0.53') # fs module available + fs = import('fs') + developer_mode = fs.is_dir('.git') + endif +else + developer_mode = get_option('developer_mode').enabled() +endif +if developer_mode + message('## Building in Developer Mode ##') +endif + # set up some global vars for compiler, platform, configuration, etc. cc = meson.get_compiler('c') dpdk_conf = configuration_data() dpdk_libraries = [] dpdk_static_libraries = [] +dpdk_chkinc_headers = [] dpdk_driver_classes = [] dpdk_drivers = [] dpdk_extra_ldflags = [] @@ -45,7 +60,6 @@ subdir('buildtools') subdir('config') # build libs and drivers -subdir('buildtools/pmdinfogen') subdir('lib') subdir('drivers') @@ -61,13 +75,18 @@ subdir('doc') subdir('examples') install_subdir('examples', install_dir: get_option('datadir') + '/dpdk', - exclude_files: 'meson.build') + exclude_files: ex_file_excludes) # build kernel modules if enabled if get_option('enable_kmods') subdir('kernel') endif +# check header includes if requested +if get_option('check_includes') + subdir('buildtools/chkincs') +endif + # write the build config build_cfg = 'rte_build_config.h' configure_file(output: build_cfg,