ADD_DEFINITIONS("-Wno-deprecated") # No warnings about deprecated features
ADD_DEFINITIONS("-std=c++0x") # accept C++11x standard
ADD_DEFINITIONS("-DWRT_SMACK_ENABLED") # enable smack
+ADD_DEFINITIONS("-DWRT_INSTALLER_LOG") # enable installer log
############################# Targets names ###################################
--- /dev/null
+/*
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * @file installer_log.h
+ * @author Sungsu Kim(sung-su.kim@samsung.com)
+ * @version 0.1
+ * @brief
+ */
+
+#ifndef INSTALLER_LOG_H
+#define INSTALLER_LOG_H
+
+#include <dlog.h>
+#include <dpl/log/secure_log.h>
+#include <dpl/string.h>
+
+#ifdef WRT_INSTALLER_LOG
+
+#undef COLOR_WARNING
+#define COLOR_WARNING "\e[0m"
+#undef COLOR_TAG
+#define COLOR_TAG "\e[0m"
+
+#endif
+
+#define DPLToChar(DS) { DPL::ToUTF8String(DS).c_str() }
+
+#endif // INSTALLER_LOG_H
+