chore: rework cus name
This commit is contained in:
parent
3b1b6e3a27
commit
f7169103c8
|
@ -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 @@
|
||||||
|
|
||||||
#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 " -> "
|
||||||
|
|
Loading…
Reference in New Issue