From 0ea6e4c10fd7467b00c2c33ebc716afb96916b9c Mon Sep 17 00:00:00 2001 From: luwh0708 <1632083718@qq.com> Date: Tue, 5 Apr 2022 19:59:03 +0800 Subject: [PATCH] samgr adapt mingw Change-Id: I68a37685bacf32046129319ef6056ae979acd7a3 Signed-off-by: luwh0708 <1632083718@qq.com> --- interfaces/innerkits/samgr_proxy/BUILD.gn | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/interfaces/innerkits/samgr_proxy/BUILD.gn b/interfaces/innerkits/samgr_proxy/BUILD.gn index b4fa947e..d93d7f39 100644 --- a/interfaces/innerkits/samgr_proxy/BUILD.gn +++ b/interfaces/innerkits/samgr_proxy/BUILD.gn @@ -40,11 +40,23 @@ ohos_shared_library("samgr_proxy") { configs = [ ":samgr_proxy_private_config" ] public_configs = [ ":samgr_proxy_config" ] - if (is_standard_system) { - external_deps = [ - "hiviewdfx_hilog_native:libhilog", - "ipc:ipc_single", - "utils_base:utils", + deps = [] + + if (current_os != "mingw") { + if (is_standard_system) { + external_deps = [ + "hiviewdfx_hilog_native:libhilog", + "ipc:ipc_single", + "utils_base:utils", + ] + + part_name = "samgr_standard" + } + } else { + deps += [ + "//foundation/communication/ipc/interfaces/innerkits/ipc_single:ipc_single", + "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", + "//utils/native/base:utils", ] part_name = "samgr_standard" -- Gitee