X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Fmvep%2Fmeson.build;h=0e17e100cd62724bb993238100e7337e224b7ab2;hb=3de9af2aaa680b33a9a597b8ec4d76163dee2029;hp=8df4bc6e0b24d224fc5f238d5bb7ea9c2018bfef;hpb=530588f3cd50d5626cfa2b94e161b97e97d84ade;p=dpdk.git diff --git a/drivers/common/mvep/meson.build b/drivers/common/mvep/meson.build index 8df4bc6e0b..0e17e100cd 100644 --- a/drivers/common/mvep/meson.build +++ b/drivers/common/mvep/meson.build @@ -3,18 +3,20 @@ # Copyright(c) 2018 Semihalf. # All rights reserved. # -path = get_option('lib_musdk_dir') -lib_dir = path + '/lib' -inc_dir = path + '/include' -lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false) -if not lib.found() - build = false - reason = 'missing dependency, "libmusdk"' -else - ext_deps += lib - includes += include_directories(inc_dir) - cflags += ['-DMVCONF_TYPES_PUBLIC', '-DMVCONF_DMA_PHYS_ADDR_T_PUBLIC'] +if is_windows + build = false + reason = 'not supported on Windows' + subdir_done() endif +dep = dependency('libmusdk', required: false, method: 'pkg-config') +if not dep.found() + build = false + reason = 'missing dependency, "libmusdk"' + subdir_done() +endif + +ext_deps += dep + sources = files('mvep_common.c')