Change-Id: Ia9dbb0510d59d0c96bf66bbc9970d7a1040daa9e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
+IF(ENABLE_DLOG STREQUAL on)
+ ADD_DEFINITIONS("-DFEATURE_DLOG")
+ENDIF()
+
ADD_SUBDIRECTORY(hw/board)
ADD_SUBDIRECTORY(hw/display)
ADD_SUBDIRECTORY(hw/led)
#include <unistd.h>
#ifdef FEATURE_DLOG
- #define LOG_TAG "HALBACKEND_DEVICE"
+ #define LOG_TAG "HAL_BACKEND_DEVICE"
#include <dlog.h>
#define _D(fmt, args...) SLOGD(fmt, ##args)
#define _I(fmt, args...) SLOGI(fmt, ##args)
cp %{SOURCE1} .
%build
-%cmake .
+%cmake . -DENABLE_DLOG=on \
make %{?jobs:-j%jobs}