From 02e6a0a7eaa4195cae05fdabfb83eef9bf819b34 Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Wed, 8 Dec 2021 17:53:53 +0800 Subject: [PATCH] chore(build): set complete_static_lib false for libkernel Signed-off-by: Caoruihong Change-Id: Ia3da4f963f44babdc802c58c0afbb1adc1f16ee9 --- BUILD.gn | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 9682002d..d9ac8748 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -54,8 +54,6 @@ exec_script("//build/lite/run_shell_cmd.py", import("liteos.gni") -visibility = [ ":*" ] - liteos_arch_cflags = [] if (defined(LOSCFG_ARCH_ARM)) { mcpu = LOSCFG_ARCH_CPU @@ -271,21 +269,15 @@ group("modules") { # when HAVE_DEVICE_SDK is not reached, gn raises an error. so we just use it as # not needed -not_needed("*", [ "$HAVE_DEVICE_SDK" ]) +not_needed([ "HAVE_DEVICE_SDK" ]) + static_library("libkernel") { deps = [ ":modules" ] - public_configs = [ - ":public", - ":los_config", - ] - complete_static_lib = true - visibility += [] + complete_static_lib = false } group("kernel") { - public_deps = [ ":libkernel" ] - visibility = [] - visibility += [ "*:*" ] + deps = [ ":libkernel" ] } group("liteos_m") {