提交 f7169103 编写于 作者: sangshuduo's avatar sangshuduo

chore: rework cus name

上级 3b1b6e3a
...@@ -26,6 +26,10 @@ ELSE () ...@@ -26,6 +26,10 @@ ELSE ()
SET(LINK_WEBSOCKET "") SET(LINK_WEBSOCKET "")
ENDIF () ENDIF ()
IF (CUS_NAME OR CUS_PROMPT)
ADD_DEFINITIONS(-I${CMAKE_CURRENT_SOURCE_DIR}/../../../enterprise/packaging)
ENDIF (CUS_NAME)
if(TD_WINDOWS) if(TD_WINDOWS)
target_link_libraries(shell PUBLIC taos_static ${LINK_WEBSOCKET}) target_link_libraries(shell PUBLIC taos_static ${LINK_WEBSOCKET})
else() else()
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
#ifndef CUS_NAME #ifndef CUS_NAME
char cusName[] = "TDengine"; char cusName[] = "TDengine";
#else
char cusName[] = CUS_NAME;
#endif #endif
#ifndef CUS_PROMPT #ifndef CUS_PROMPT
char cusPrompt[] = "taos"; char cusPrompt[] = "taos";
#else #endif
char cusPrompt[] = CUS_PROMPT;
#if defined(CUS_NAME) || defined(CUS_PROMPT)
#include "cus_name.h"
#endif #endif
#define TAOS_CONSOLE_PROMPT_CONTINUE " -> " #define TAOS_CONSOLE_PROMPT_CONTINUE " -> "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册