From 6574bc942e68fc5e6b5d138245708a2b9f73ddf1 Mon Sep 17 00:00:00 2001 From: huangyuchen Date: Mon, 12 Jun 2023 14:56:12 +0800 Subject: [PATCH] Fix compile failure on `mac`, since products of rust are not supported yet. Issue: I7CRP1 Test: NA Signed-off-by: huangyuchen Change-Id: I7c52827f9cc6a64c905c64f6115187d888ac44aa --- base/BUILD.gn | 12 ++++++++++++ bundle.json | 6 +----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/base/BUILD.gn b/base/BUILD.gn index b73111d..2688445 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -226,4 +226,16 @@ ohos_rust_shared_library("utils_rust") { "updater", ] } + +######## Group on different platforms######## +group("c_utils_components") { + deps = [ + "//commonlibrary/c_utils/base:utils", + "//commonlibrary/c_utils/base:utilsbase", + ] + + if (current_os != "ios") { + deps += [ "//commonlibrary/c_utils/base:utils_rust" ] + } +} ############################################################################### diff --git a/bundle.json b/bundle.json index ce59662..71ffcba 100644 --- a/bundle.json +++ b/bundle.json @@ -26,11 +26,7 @@ ] }, "build": { - "sub_component": [ - "//commonlibrary/c_utils/base:utils", - "//commonlibrary/c_utils/base:utilsbase", - "//commonlibrary/c_utils/base:utils_rust" - ], + "sub_component": [ "//commonlibrary/c_utils/base:c_utils_components" ], "inner_kits": [ { "name": "//commonlibrary/c_utils/base:utils", -- Gitee