use DLOG for Tizen 26/317326/1
authorInki Dae <inki.dae@samsung.com>
Mon, 9 Sep 2024 04:12:51 +0000 (13:12 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 9 Sep 2024 04:12:51 +0000 (13:12 +0900)
Use DLOG for Tizen platform.

Singleo framework will be installed in Tizen platform image soon
so change the log backend to DLOG.

With this patch, we can check singleo logs by typing like below

Change-Id: I79314f967369dfec8cc82d7ccbbf3c0157821326
Signed-off-by: Inki Dae <inki.dae@samsung.com>
log/tizen/SingleoLogBackend.cpp
packaging/singleo.spec

index 42ab3dc5b0417472118426f4e4eaac7b1a15700e..338741f215f5f6a38be3c2b5824857242a9fc292 100644 (file)
 #include <dlog.h>
 #include "SingleoLogBackend.h"
 
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "TIZEN_SINGLEO"
+
 using namespace std;
 
 SingleoLogType singleoCurrentLogLevel = SingleoLogType::ERROR;
index 0710a63cd09b543fd59a0c5d594ebc1658bc6f78..76800fbe2ade663d4de8f0801a5f1fde9b779a2f 100644 (file)
@@ -53,7 +53,7 @@ export CXXFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\" -DSYSCONFDIR=\\\"%{_hal_sysc
 
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DTZ_SYS_BIN=%TZ_SYS_BIN \
-         -DPLATFORM_IS_TIZEN=OFF \
+         -DPLATFORM_IS_TIZEN=ON \
          -DUSE_EXTERNAL_INFERENCE_SERVICE=OFF \
          -DUSE_INPUT_OPENCV_BACKEND=ON \
          -DUSE_AUTOZOOM_API=ON \