From 12969299a1870b0a07f9a5c483551e9bc09b55d5 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Wed, 24 Jul 2019 12:50:33 +0900 Subject: [PATCH] meson: Enable dlog logging system only if dlog library available Change-Id: I76b5125489c3bef004ffc7bba3342c485c1a03b6 --- src/lib/eina/meson.build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build index c2c9a3e..42aa56c 100644 --- a/src/lib/eina/meson.build +++ b/src/lib/eina/meson.build @@ -314,9 +314,6 @@ if cc.has_header('dirent.h') endif eina_config.set('EINA_ENABLE_LOG', '1') -#TIZEN_ONLY(20190702): support tizen dlog logging system -config_h.set('HAVE_DLOG', 1) -# if cc.has_header_symbol('alloca.h', 'alloca') eina_config.set('EINA_HAVE_ALLOCA_H', '1') @@ -364,7 +361,11 @@ endif execinfo = cc.find_library('execinfo', required: false) -dlog = dependency('dlog') +#TIZEN_ONLY(20190724): support tizen dlog logging system +dlog = dependency('dlog', required:false) +if (dlog.found()) + config_h.set('HAVE_DLOG', 1) +endif eina_lib = library('eina', sources, include_directories : config_dir, -- 2.7.4