X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=meson.build;h=3b7a2e7de89005699fe0f8160794ce4f0c6df4f6;hb=ad1ec9d61745de0dc09668a8b6eac74ad9b6f39a;hp=c5a3dda26bdcb505d73d635e00d5817aa9ad86c4;hpb=8baad6f884d687e30097dd5b5f23ec973b0a3e0a;p=dpdk.git diff --git a/meson.build b/meson.build index c5a3dda26b..3b7a2e7de8 100644 --- a/meson.build +++ b/meson.build @@ -7,10 +7,16 @@ project('DPDK', 'C', version: run_command(find_program('cat', 'more'), files('VERSION')).stdout().strip(), license: 'BSD', - default_options: ['buildtype=release', 'default_library=static'], + default_options: ['buildtype=debugoptimized', + 'default_library=static'], meson_version: '>= 0.47.1' ) +# for default "debugoptimized" builds override optimization level 2 with 3 +if get_option('buildtype') == 'debugoptimized' + add_project_arguments('-O3', language: 'c') +endif + # set up some global vars for compiler, platform, configuration, etc. cc = meson.get_compiler('c') dpdk_conf = configuration_data() @@ -22,6 +28,7 @@ dpdk_extra_ldflags = [] dpdk_app_link_libraries = [] dpdk_libs_disabled = [] dpdk_drvs_disabled = [] +abi_version_file = files('ABI_VERSION') # configure the build, and make sure configs here and in config folder are # able to be included in any file. We also store a global array of include dirs