meson: Enable dlog logging system only if dlog library available 18/210718/3
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 24 Jul 2019 03:50:33 +0000 (12:50 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 26 Jul 2019 14:35:56 +0000 (14:35 +0000)
Change-Id: I76b5125489c3bef004ffc7bba3342c485c1a03b6

src/lib/eina/meson.build

index c2c9a3e..42aa56c 100644 (file)
@@ -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,