chore: rework cus name

This commit is contained in:
Shuduo Sang 2023-01-05 21:05:16 +08:00
parent 3b1b6e3a27
commit f7169103c8
2 changed files with 8 additions and 4 deletions

View File

@ -26,6 +26,10 @@ ELSE ()
SET(LINK_WEBSOCKET "")
ENDIF ()
IF (CUS_NAME OR CUS_PROMPT)
ADD_DEFINITIONS(-I${CMAKE_CURRENT_SOURCE_DIR}/../../../enterprise/packaging)
ENDIF (CUS_NAME)
if(TD_WINDOWS)
target_link_libraries(shell PUBLIC taos_static ${LINK_WEBSOCKET})
else()

View File

@ -21,14 +21,14 @@
#ifndef CUS_NAME
char cusName[] = "TDengine";
#else
char cusName[] = CUS_NAME;
#endif
#ifndef CUS_PROMPT
char cusPrompt[] = "taos";
#else
char cusPrompt[] = CUS_PROMPT;
#endif
#if defined(CUS_NAME) || defined(CUS_PROMPT)
#include "cus_name.h"
#endif
#define TAOS_CONSOLE_PROMPT_CONTINUE " -> "