diff --git a/BUILD.gn b/BUILD.gn index dc49db9c9b44f6420546dfd867e950cb639cfaff..b8f2518f5473ab0b72997f0ff61288651eddc64a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -30,7 +30,7 @@ config("ark_toolchain_common_config") { "-fasynchronous-unwind-tables", "-Wformat=2", ] - include_dirs = [ "//third_party/libuv/include" ] + if (is_linux) { defines += [ "PANDA_TARGET_UNIX", diff --git a/test/fuzztest/dispatchprotocolmessage_fuzzer/BUILD.gn b/test/fuzztest/dispatchprotocolmessage_fuzzer/BUILD.gn index a1a6254e8f4caba17e7474f438c340720e71df00..6e7a6043d7ad12ff9441ebafd0725baac8ccf58c 100644 --- a/test/fuzztest/dispatchprotocolmessage_fuzzer/BUILD.gn +++ b/test/fuzztest/dispatchprotocolmessage_fuzzer/BUILD.gn @@ -33,6 +33,7 @@ ohos_fuzztest("DispatchProtocolMessageFuzzTest") { "//arkcompiler/ets_runtime:libark_jsruntime", "//arkcompiler/toolchain/tooling:libark_ecma_debugger_set", "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", + "//third_party/libuv:uv", sdk_libc_secshared_dep, ] } diff --git a/test/fuzztest/initializedebugger_fuzzer/BUILD.gn b/test/fuzztest/initializedebugger_fuzzer/BUILD.gn index cfde7f605c40dbf091696740bb7d5bb62095ef49..53e1683c35a436c75540dcea46d393fb41827fe5 100644 --- a/test/fuzztest/initializedebugger_fuzzer/BUILD.gn +++ b/test/fuzztest/initializedebugger_fuzzer/BUILD.gn @@ -33,6 +33,7 @@ ohos_fuzztest("InitializeDebuggerFuzzTest") { "//arkcompiler/ets_runtime:libark_jsruntime", "//arkcompiler/toolchain/tooling:libark_ecma_debugger_set", "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", + "//third_party/libuv:uv", sdk_libc_secshared_dep, ] } diff --git a/tooling/BUILD.gn b/tooling/BUILD.gn index d779f558900b4bc9d9460056fddd26cb7da36c68..b9402222673286767e2ff98c712f2708b1215a6a 100644 --- a/tooling/BUILD.gn +++ b/tooling/BUILD.gn @@ -24,6 +24,9 @@ config("ark_ecma_debugger_config") { ".", "//third_party/cJSON", ] + if (!is_mingw && !is_mac && target_os != "ios") { + include_dirs += [ "//third_party/libuv/include" ] + } } debugger_sources = [ @@ -59,7 +62,6 @@ source_set("libark_ecma_debugger_set") { deps = [ "$ark_root/libpandafile:arkfile_header_deps", "//third_party/cJSON:cjson_static", - "//third_party/libuv:uv", ] if (is_mingw || is_mac) { @@ -137,7 +139,6 @@ source_set("libark_ecma_debugger_test_set") { deps = [ "$ark_root/libpandafile:arkfile_header_deps", "//third_party/cJSON:cjson_static", - "//third_party/libuv:uv", ] }