diff --git a/BUILD.gn b/BUILD.gn index 4f4c38001eae4445fff5045bf7b6854c5d9d7024..589bc5bd4c38a906b5048a695df56dba38376b88 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,3 +31,16 @@ ohos_static_library("liblz4_static") { ] public_configs = [ ":lz4_config" ] } + +ohos_shared_library("liblz4_shared") { + sources = [ + "lib/lz4.c", + "lib/lz4hc.c", + ] + public_configs = [ ":lz4_config" ] + install_enable = true + part_name = "lz4" + innerapi_tags = [ "platformsdk" ] + subsystem_name = "thirdparty" + install_images = [ "system" ] +} diff --git a/bundle.json b/bundle.json index e646f0dbee330ce4dd1cbcc886d93979c9472726..7adb7e5b61294dbb083983bfe19eecea16632c38 100644 --- a/bundle.json +++ b/bundle.json @@ -26,6 +26,9 @@ "inner_kits": [ { "name": "//third_party/lz4:liblz4_static" + }, + { + "name": "//third_party/lz4:liblz4_shared" } ], "test": []