diff --git a/BUILD.gn b/BUILD.gn index a7a61e4d96cc5cb4519f298fc5b7410416635ab5..5137892902317271e906c86e0b0a7d6497caa6c5 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") {