Change-Id: I50304e5eeafbc70a4b62836dd251392f19683c0c
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/battery)
ADD_SUBDIRECTORY(hw/display)
ADD_SUBDIRECTORY(hw/external_connection)
#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}