diff --git a/BUILD.gn b/BUILD.gn index c308ba8..7aff8f3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -44,7 +44,6 @@ config("libbpf_public_config") { "./src", "./include", "./include/uapi", - "//third_party/zlib", "//third_party/elfio/c_wrapper", "//third_party/elfio/elfio", ] @@ -52,10 +51,8 @@ config("libbpf_public_config") { ohos_shared_library("libbpf") { branch_protector_ret = "pac_ret" - deps = [ - "//third_party/elfio:elfio", - "//third_party/zlib:libz", - ] + deps = [ "//third_party/elfio:elfio" ] + external_deps = [ "zlib:libz" ] sources = [ "./src/bpf.c", "./src/bpf.h", diff --git a/bundle.json b/bundle.json index 56fca2d..b5e8c69 100644 --- a/bundle.json +++ b/bundle.json @@ -21,11 +21,8 @@ "rom": "", "ram": "", "deps": { - "components": [], - "third_party": [ - "elfio", - "zlib" - ] + "components": [ "zlib" ], + "third_party": [ "elfio" ] }, "build": { "sub_component": [],