X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=meson.build;h=937f6110c0918a6b7cfa9ff9598a01130ed5efe9;hb=1a8cb9199b4e9165e8f67d3aee5504be5952fea5;hp=12cb6e0e83f3bc92e285980d2ca060805474a566;hpb=99a2dd955fba6e4cc23b77d590a033650ced9c45;p=dpdk.git diff --git a/meson.build b/meson.build index 12cb6e0e83..937f6110c0 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 = []