X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=meson.build;h=5561171617ab533e040c02b2e10ce0fb0d5cae52;hb=d9934a8a3dfe4de79306249493813d94369ea992;hp=13412780cd43cda9f08a5b9090dac234359b15c9;hpb=8dcb898c65b76fbd6f4b4aca634290311679390f;p=dpdk.git diff --git a/meson.build b/meson.build index 13412780cd..5561171617 100644 --- a/meson.build +++ b/meson.build @@ -5,9 +5,13 @@ project('DPDK', 'C', # Get version number from file. # Fallback to "more" for Windows compatibility. version: run_command(find_program('cat', 'more'), - files('VERSION')).stdout().strip(), + files('VERSION'), check: true).stdout().strip(), license: 'BSD', - default_options: ['buildtype=release', 'default_library=static'], + default_options: [ + 'buildtype=release', + 'default_library=static', + 'warning_level=2', + ], meson_version: '>= 0.49.2' ) @@ -27,6 +31,8 @@ endif # set up some global vars for compiler, platform, configuration, etc. cc = meson.get_compiler('c') +dpdk_source_root = meson.current_source_dir() +dpdk_build_root = meson.current_build_dir() dpdk_conf = configuration_data() dpdk_libraries = [] dpdk_static_libraries = [] @@ -36,6 +42,8 @@ dpdk_drivers = [] dpdk_extra_ldflags = [] dpdk_libs_disabled = [] dpdk_drvs_disabled = [] +testpmd_drivers_sources = [] +testpmd_drivers_deps = [] abi_version_file = files('ABI_VERSION') if host_machine.cpu_family().startswith('x86') @@ -50,9 +58,9 @@ endif # able to be included in any file. We also store a global array of include dirs # for passing to pmdinfogen scripts global_inc = include_directories('.', 'config', - 'lib/librte_eal/include', - 'lib/librte_eal/@0@/include'.format(host_machine.system()), - 'lib/librte_eal/@0@/include'.format(arch_subdir), + 'lib/eal/include', + 'lib/eal/@0@/include'.format(host_machine.system()), + 'lib/eal/@0@/include'.format(arch_subdir), ) # do configuration and get tool paths