#define FONT_COLOR_CYAN "\033[36m"
#define mm_util_debug(fmt, arg...) do { \
- LOGD(FONT_COLOR_RESET""fmt"", ##arg); \
+ LOGD(FONT_COLOR_RESET#fmt, ##arg); \
} while (0)
#define mm_util_info(fmt, arg...) do { \
- LOGI(FONT_COLOR_RESET""fmt"", ##arg); \
+ LOGI(FONT_COLOR_RESET#fmt, ##arg); \
} while (0)
#define mm_util_warn(fmt, arg...) do { \
- LOGW(FONT_COLOR_RESET""fmt"", ##arg); \
+ LOGW(FONT_COLOR_RESET#fmt, ##arg); \
} while (0)
#define mm_util_error(fmt, arg...) do { \
- LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+ LOGE(FONT_COLOR_RED#fmt FONT_COLOR_RESET, ##arg); \
} while (0)
#define mm_util_sec_debug(fmt, arg...) do { \
- SECURE_LOGD(FONT_COLOR_CYAN""fmt""FONT_COLOR_RESET, ##arg); \
+ SECURE_LOGD(FONT_COLOR_CYAN#fmt FONT_COLOR_RESET, ##arg); \
} while (0)
#define mm_util_fenter() do { \
#define mm_util_retm_if(expr, fmt, arg...) do { \
if (expr) { \
- LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+ LOGE(FONT_COLOR_RED#fmt FONT_COLOR_RESET, ##arg); \
return; \
} \
} while (0)
#define mm_util_retvm_if(expr, val, fmt, arg...) do { \
if (expr) { \
- LOGE(FONT_COLOR_RED""fmt""FONT_COLOR_RESET, ##arg); \
+ LOGE(FONT_COLOR_RED#fmt FONT_COLOR_RESET, ##arg); \
return (val); \
} \
} while (0)
#define mm_util_stderror(fmt) do { \
char buf[ERR_BUF_LENGHT] = {0,}; \
strerror_r(errno, buf, ERR_BUF_LENGHT); \
- mm_util_error(fmt" : standard error= [%s]", buf); \
+ mm_util_error(#fmt" : standard error= [%s]", buf); \
} while (0)
/**
pkg_check_modules(${fw_name} REQUIRED ${dependents})
FOREACH(flag ${${fw_name}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
ENDFOREACH(flag)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -fPIC")
+SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g --w")
IF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DTARGET")
Name: libmm-utility
Summary: Multimedia Framework Utility Library
-Version: 0.1.23
+Version: 0.1.24
Release: 0
Group: System/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: libjpeg-turbo-devel
BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(opencv)
+BuildRequires: pkgconfig(opencv) >= 3.4.1
BuildRequires: pkgconfig(libpng)
BuildRequires: giflib-devel
BuildRequires: pkgconfig(libbmp)