Fix gbs build from external lib including Aurum.h 55/318755/2 accepted/tizen_unified_x_asan accepted/tizen/unified/20250124.043542 accepted/tizen/unified/x/20250124.061122 accepted/tizen/unified/x/asan/20250211.003515
authorYoungsun Suh <youngsun.suh@samsung.com>
Thu, 23 Jan 2025 08:44:34 +0000 (17:44 +0900)
committerYoungsun Suh <youngsun.suh@samsung.com>
Thu, 23 Jan 2025 08:45:33 +0000 (17:45 +0900)
Change-Id: I5fe25f8b7a7dbefbdb2df270006fe7ff5214b75c

libaurum/inc/Aurum.h
meson.build

index 58f85f885022bf11ff9259e16ab4336a5649574a..8aafe68553692a417c34fe6b4d1eb2f3205f15fa 100644 (file)
@@ -18,7 +18,9 @@
 #ifndef _AURUM_H_
 #define _AURUM_H_
 
-#ifdef TIZEN
+#include "config.h"
+
+#ifdef HAVE_DLOG
 #include <dlog.h>
 
 #ifdef LOG_TAG
index 9054985a883e3f1f58bd5d86cd3cc82f08d93202..7bee8177136a26f262c165d2ffb3d0e4424bc05a 100644 (file)
@@ -29,6 +29,11 @@ if get_option('libaurum_only') == false
 endif
 subdir('tests')
 
+dlog = dependency('dlog', required:false)
+if (dlog.found())
+  config_h.set('HAVE_DLOG', 1)
+endif
+
 configure_file(
   output: 'config.h',
   configuration: config_h,