#ifndef _TVG_COMMON_H_
#define _TVG_COMMON_H_
+#include <dlog.h>
#include "config.h"
#include "thorvg.h"
#define TVG_UNUSED __attribute__ ((__unused__))
#endif
+#define LOG_TAG "thorvg"
//TVG class identifier values
#define TVG_CLASS_ID_UNDEFINED 0
enum class FileType { Tvg = 0, Svg, Raw, Png, Jpg, Unknown };
#ifdef THORVG_LOG_ENABLED
- #define TVGLOG(tag, fmt, ...) fprintf(stdout, tag ": " fmt "\n", ##__VA_ARGS__) //Log Message for notifying user some useful info
- #define TVGERR(tag, fmt, ...) fprintf(stderr, tag ": " fmt "\n", ##__VA_ARGS__) //Error Message for us to fix it
+ //#define TVGLOG(tag, fmt, ...) fprintf(stdout, tag ": " fmt "\n", ##__VA_ARGS__) //Log Message for notifying user some useful info
+ //#define TVGERR(tag, fmt, ...) fprintf(stderr, tag ": " fmt "\n", ##__VA_ARGS__) //Error Message for us to fix it
+
+ //Use dlog system in Tizen
+ #define TVGLOG(tag, fmt, ...)
+ #define TVGERR(tag, fmt, ...) dlog_print(DLOG_ERROR, LOG_TAG, tag ": " fmt "\n", ##__VA_ARGS__)
#else
#define TVGERR(...)
#define TVGLOG(...)
#endif
-#endif //_TVG_COMMON_H_
\ No newline at end of file
+#endif //_TVG_COMMON_H_
subdir('bindings')
thread_dep = meson.get_compiler('cpp').find_library('pthread')
-thorvg_lib_dep = [common_dep, loader_dep, saver_dep, binding_dep, thread_dep]
+dlog_dep = dependency('dlog', required: false)
+thorvg_lib_dep = [common_dep, loader_dep, saver_dep, binding_dep, thread_dep, dlog_dep]
thorvg_lib = library(
'thorvg',