From 557d59516be474411fc93dd9ff6615b504a2529f Mon Sep 17 00:00:00 2001 From: zhujie Date: Tue, 19 Sep 2023 11:25:58 +0800 Subject: [PATCH] Cross-platform (Android/IOS) debugger support add static gn file https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I82I5L Signed-off-by: zhujie --- inspector/BUILD.gn | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/inspector/BUILD.gn b/inspector/BUILD.gn index 964c72a3..4df11861 100644 --- a/inspector/BUILD.gn +++ b/inspector/BUILD.gn @@ -160,3 +160,48 @@ ohos_shared_library("connectserver_debugger") { subsystem_name = "arkcompiler" part_name = "toolchain" } + +ohos_source_set("arkui_debugger_static") { + stack_protector_ret = false + deps = [ sdk_libc_secshared_dep ] + configs = [ sdk_libc_secshared_config ] + defines = [] + + if (is_mingw || is_mac) { + if (is_mingw) { + lib_dirs = [ "//prebuilts/mingw-w64/ohos/linux-x86_64/clang-mingw/x86_64-w64-mingw32/lib" ] + libs = [ "wsock32" ] + } + + cflags = [ "-std=c++17" ] + } + + include_dirs = [ + "$toolchain_root", + "$toolchain_root/websocket" + ] + + deps += [ + "../websocket:websocket" + ] + sources = [ + "inspector.cpp", + "library_loader.cpp", + "log_wrapper.cpp", + "connect_inspector.cpp", + "connect_server.cpp", + "ws_server.cpp" + ] + + if (target_os == "ios") { + sources -= [ "log_wrapper.cpp" ] + } + + # hiviewdfx libraries + external_deps = hiviewdfx_ext_deps + deps += hiviewdfx_deps + + configs += [ ":ark_platform_config" ] + subsystem_name = "arkcompiler" + part_name = "toolchain" +} -- Gitee