From: 윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Fri, 30 Aug 2019 07:07:32 +0000 (+0900) Subject: [exo-tflite] Make "Check.h" to use pepper instead of pp (#7038) X-Git-Tag: accepted/tizen/unified/20190903.052428~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58e218bc461263212851642821882d736cd2fc2e;p=platform%2Fcore%2Fml%2Fnnfw.git [exo-tflite] Make "Check.h" to use pepper instead of pp (#7038) * [exo-tflite] added pp into cmake scripts `pp` is added into cmake scripts to use "Check.h", which includes a header in pp. Signed-off-by: Hyun Sik Yoon * pp to lightweight pepper::str --- diff --git a/compiler/exo-tflite/CMakeLists.txt b/compiler/exo-tflite/CMakeLists.txt index 40acd21..46b2df7 100644 --- a/compiler/exo-tflite/CMakeLists.txt +++ b/compiler/exo-tflite/CMakeLists.txt @@ -32,6 +32,7 @@ target_include_directories(exo_tflite PRIVATE src) target_link_libraries(exo_tflite PUBLIC exo_tflite_fbs) target_link_libraries(exo_tflite PUBLIC loco) target_link_libraries(exo_tflite PRIVATE stdex) +target_link_libraries(exo_tflite PRIVATE pepper_str) target_link_libraries(exo_tflite PRIVATE pepper_strcast) target_link_libraries(exo_tflite PRIVATE locoex_customop) target_link_libraries(exo_tflite PRIVATE locop) diff --git a/compiler/exo-tflite/requires.cmake b/compiler/exo-tflite/requires.cmake index 554bbe3..0b6a885 100644 --- a/compiler/exo-tflite/requires.cmake +++ b/compiler/exo-tflite/requires.cmake @@ -2,3 +2,4 @@ require("stdex") require("loco") require("locoex-customop") require("logo") +require("pepper-str") diff --git a/compiler/exo-tflite/src/Check.h b/compiler/exo-tflite/src/Check.h index 1baa171..41d49a1 100644 --- a/compiler/exo-tflite/src/Check.h +++ b/compiler/exo-tflite/src/Check.h @@ -17,7 +17,7 @@ #ifndef __CHECK_H__ #define __CHECK_H__ -#include "pp/Format.h" +#include #include #include @@ -25,7 +25,7 @@ // TODO Add macro for Release version -#define EXO_THROW(msg) throw std::runtime_error(pp::fmt(msg, "at ", __FILE__, ":", __LINE__)) +#define EXO_THROW(msg) throw std::runtime_error(pepper::str(msg, "at ", __FILE__, ":", __LINE__)) #define EXO_ASSERT(condition, msg) \ { \