From 00a2b6ea5e1645abe39245cd02ae3504f556d452 Mon Sep 17 00:00:00 2001 From: yudechen Date: Thu, 28 Apr 2022 19:05:22 +0800 Subject: [PATCH] add lite system build of syscap_tool_shared. Signed-off-by: yudechen Change-Id: I5ad4880847b8519a298ec0256f3871b3fbb45818 --- BUILD.gn | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index a7a61e4..5137892 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -94,21 +94,31 @@ ohos_shared_library("syscap_tool_shared") { part_name = "syscap_codec" } -ohos_shared_library("syscap_interface_shared") { - include_dirs = [ "./interfaces/inner_api/" ] - public_configs = [ ":pubilc" ] - sources = [ "./interfaces/inner_api/syscap_interface.c" ] - - deps = [ "//third_party/bounds_checking_function:libsec_static" ] - - if (defined(ohos_lite)) { - deps += [ "//build/lite/config/component/cJSON:cjson_static" ] - } else { - deps += [ "//third_party/cJSON:cjson_static" ] +if (defined(ohos_lite)) { + shared_library("syscap_interface_shared") { + include_dirs = [ "./interfaces/inner_api/" ] + public_configs = [ ":pubilc" ] + sources = [ "./interfaces/inner_api/syscap_interface.c" ] + + deps = [ + "//build/lite/config/component/cJSON:cjson_static", + "//third_party/bounds_checking_function:libsec_static", + ] + } +} else { + ohos_shared_library("syscap_interface_shared") { + include_dirs = [ "./interfaces/inner_api/" ] + public_configs = [ ":pubilc" ] + sources = [ "./interfaces/inner_api/syscap_interface.c" ] + + deps = [ + "//third_party/bounds_checking_function:libsec_static", + "//third_party/cJSON:cjson_static", + ] + + subsystem_name = "developtools" + part_name = "syscap_codec" } - - subsystem_name = "developtools" - part_name = "syscap_codec" } group("syscap_tool_bin_linux") { -- Gitee