From dff6a6c5720dbc23079f7a79f00ca859cfc4d70c Mon Sep 17 00:00:00 2001 From: sunjie Date: Thu, 9 Jan 2025 13:53:51 +0800 Subject: [PATCH] =?UTF-8?q?zlib=E8=BF=81=E7=A7=BB=E5=88=B0external=5Fdeps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunjie Change-Id: Idcb8ae3b4af0c909c63b5960253bd20eca536c50 --- BUILD.gn | 3 ++- bundle.json | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 9d1bd9a..2e85399 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -65,9 +65,10 @@ ohos_executable("restool") { "//third_party/bounds_checking_function:libsec_static", "//third_party/cJSON:cjson_static", "//third_party/libpng:libpng_static", - "//third_party/zlib:libz", ] + external_deps = [ "zlib:libz" ] + cflags = [ "-std=c++17" ] if (is_mingw) { ldflags = [ diff --git a/bundle.json b/bundle.json index e04267d..082a57a 100644 --- a/bundle.json +++ b/bundle.json @@ -18,12 +18,13 @@ "rom": "0KB", "ram": "0KB", "deps": { - "components": [], + "components": [ + "zlib" + ], "third_party": [ "bounds_checking_function", "cJSON", - "libpng", - "zlib" + "libpng" ] }, "build": {