[exo-tflite] Make "Check.h" to use pepper instead of pp (#7038)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Fri, 30 Aug 2019 07:07:32 +0000 (16:07 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 30 Aug 2019 07:07:32 +0000 (16:07 +0900)
* [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 <hyunsik.yoon@samsung.com>
* pp to lightweight pepper::str

compiler/exo-tflite/CMakeLists.txt
compiler/exo-tflite/requires.cmake
compiler/exo-tflite/src/Check.h

index 40acd21..46b2df7 100644 (file)
@@ -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)
index 554bbe3..0b6a885 100644 (file)
@@ -2,3 +2,4 @@ require("stdex")
 require("loco")
 require("locoex-customop")
 require("logo")
+require("pepper-str")
index 1baa171..41d49a1 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CHECK_H__
 #define __CHECK_H__
 
-#include "pp/Format.h"
+#include <pepper/str.h>
 
 #include <stdexcept>
 #include <cassert>
@@ -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)                                   \
   {                                                                  \