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": {