From 26fd4a6e66c6324db7e8ac8398645dcf3a9412d2 Mon Sep 17 00:00:00 2001 From: raojunjie Date: Mon, 22 Apr 2024 13:59:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9=E5=A4=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: raojunjie --- bundle.json | 9 +++++++++ interfaces/kits/js/BUILD.gn | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/bundle.json b/bundle.json index 9e9cef992..93fa97da5 100644 --- a/bundle.json +++ b/bundle.json @@ -138,6 +138,15 @@ ], "header_base": "//foundation/filemanagement/file_api/interfaces/kits/cj" } + }, + { + "name": "//foundation/filemanagement/file_api/interfaces/kits/js:security_label", + "header": { + "header_files": [ + "security_label.h" + ], + "header_base": "//foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel" + } } ], "test": [ diff --git a/interfaces/kits/js/BUILD.gn b/interfaces/kits/js/BUILD.gn index 20648a0b7..bfce70eb7 100644 --- a/interfaces/kits/js/BUILD.gn +++ b/interfaces/kits/js/BUILD.gn @@ -25,6 +25,14 @@ file_common_src = [ "src/common/uni_error.cpp", ] +config("kits_public_config") { + visibility = [ ":*" ] + + include_dirs = [ + "src/mod_securitylabel", + ] +} + ohos_shared_library("fileio") { stack_protector_ret = true sanitize = { @@ -429,6 +437,8 @@ ohos_shared_library("securitylabel") { "src/mod_securitylabel/securitylabel_napi.cpp", ] + public_configs = [ ":kits_public_config" ] + deps = [ "${utils_path}/filemgmt_libhilog:filemgmt_libhilog", "${utils_path}/filemgmt_libn:filemgmt_libn", -- Gitee From 27de5317c6711ada184c53b7104603a3b1b3d18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E6=B5=9A=E8=8A=82?= Date: Tue, 23 Apr 2024 10:48:53 +0000 Subject: [PATCH 2/2] update bundle.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 饶浚节 --- bundle.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index 93fa97da5..d30a25d04 100644 --- a/bundle.json +++ b/bundle.json @@ -140,7 +140,7 @@ } }, { - "name": "//foundation/filemanagement/file_api/interfaces/kits/js:security_label", + "name": "//foundation/filemanagement/file_api/interfaces/kits/js:securitylabel", "header": { "header_files": [ "security_label.h" -- Gitee