diff --git a/BUILD.gn b/BUILD.gn index c86a5ad6b911746370ed0ce345a526ad51f501cb..6d0618e009072514815d916a2c87b35c5913107c 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -168,11 +168,16 @@ config("libext2_blkid-defaults") { defines = [ "secure_getenv=getenv" ] } +config("libext2_blkid_public_config") { + include_dirs = [ "//third_party/e2fsprogs/e2fsprogs/lib" ] +} + ohos_shared_library("libext2_blkid") { configs = [ ":libext2_blkid-defaults", ":libext2-headers", ] + public_configs = [ ":libext2_blkid_public_config" ] sources = [ "e2fsprogs/lib/blkid/cache.c", "e2fsprogs/lib/blkid/dev.c", diff --git a/bundle.json b/bundle.json index 5785e581ae146ec94fbd9793f5d54820e2ff98b5..0fae868d468b6d9e7ae0990ac9b7ff4ed3e6d7bb 100644 --- a/bundle.json +++ b/bundle.json @@ -34,6 +34,10 @@ "sub_component": [], "inner_kits": [ { + "header": { + "header_base": "//third_party/e2fsprogs/e2fsprogs/lib", + "header_files": ["config.h"] + }, "name": "//third_party/e2fsprogs:libext2_blkid" }, { @@ -71,9 +75,6 @@ }, { "name": "//third_party/e2fsprogs:libdacconfig" - }, - { - "name": "//third_party/e2fsprogs:e2fsprogs" } ], "test": []