list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/components/ui_video.cpp)\r
list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/dfx/performance_task.cpp)\r
list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/dfx/ui_screenshot.cpp)\r
+if(NOT "thunderbird_toys" IN_LIST TARGET_COMPONENT)\r
+ list(REMOVE_ITEM COMPONENT_SRC ${PROP_UI_SRC}/dfx/ws_net_task.cpp)\r
+endif()\r
list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/dock/lite_input_distributer.cpp)\r
list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/dock/ohos/ohos_input_device.cpp)\r
list(REMOVE_ITEM COMPONENT_SRC ${UIKIT_ROOT_DIR}/ui/frameworks/dock/screen_device_proxy.cpp)\r
}
}
+#if defined (THUNDERBIRD_TOYS)
extern "C" void ShowWSNet(int argc, char *argv[])
{
if (argc == 0) {
{
WSNetTask::GetInstance()->HideWSNet();
}
-
+#endif
#if defined (SUPPORT_DIAL_DEBUG)
void PrintWatchDialInfo(const watch_dial_info &info)
{
{"printfps", OHOS::PrintFPS},
{"hidefps", OHOS::HideFPS},
{"showfps", OHOS::ShowFPS},
+#if defined (THUNDERBIRD_TOYS)
{"showws", OHOS::ShowWSNet},
{"hidews", OHOS::HideWSNet},
+#endif
{"showtime", OHOS::ShowTime},
{"refresh", OHOS::ForceRefresh},
#if defined (SUPPORT_DIAL_DEBUG)
*/
#include "dfx/ws_net_task.h"
-#if ENABLE_DFX_CMD
+#if ENABLE_DFX_CMD && defined(THUNDERBIRD_TOYS)
#include <cmath>
#include <string>
#include <cstdio>
#include "custom_runtime.h"
#endif
-// 前向声明,避免循环依赖
-#ifdef __cplusplus
-extern "C" {
-#endif
-// WebSocket连接状态函数声明
-const char* ln_ws_get_connection_state_string(void);
-#ifdef __cplusplus
-}
+#ifdef THUNDERBIRD_TOYS
+#include "ln_api.h"
#endif
namespace OHOS {
#define WS_NET_TASK_H
#include "graphic_config.h"
-#if ENABLE_DFX_CMD
+#if ENABLE_DFX_CMD && defined(THUNDERBIRD_TOYS)
#include <atomic>
#include "common/task_manager.h"
#include "components/ui_label.h"
char textBuffer_[256];
};
}
-#endif // ENABLE_DFX_CMD
+#endif // ENABLE_DFX_CMD && defined(THUNDERBIRD_TOYS)
#endif // WS_NET_TASK_H