Revert "Revert "meson: Enable dlog logging system only if dlog library available"" 18/211218/2
authorHermet Park <hermetpark@gmail.com>
Wed, 31 Jul 2019 07:29:07 +0000 (16:29 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 5 Aug 2019 07:38:47 +0000 (07:38 +0000)
This reverts commit 4b134a0d878fe54953bc73253bfef3c22113a1b3.

Change-Id: Ia56df95a7a5d2c89c4ecd23ab5e4c739d6882409

src/lib/eina/meson.build

index 6f77c16..a1b4383 100644 (file)
@@ -316,9 +316,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')
@@ -366,7 +363,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,