From 59230b96c27aa747ee632052af26648ae1f113e5 Mon Sep 17 00:00:00 2001 From: 18721213663 Date: Tue, 9 May 2023 20:13:04 +0800 Subject: [PATCH] fileapi_securitylabel_add_innerkit Signed-off-by: 18721213663 --- bundle.json | 10 ++++++++++ interfaces/kits/js/BUILD.gn | 9 ++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index 051ad6b08..c26f930ff 100644 --- a/bundle.json +++ b/bundle.json @@ -63,6 +63,16 @@ ], "header_base": "//foundation/filemanagement/file_api/utils/filemgmt_libn/include" } + }, + { + "name": "//foundation/filemanagement/file_api/interfaces/kits/js:securitylabel", + "header": { + "header_files": [ + "security_label.h", + "securitylabel_n_exporter.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 b8bbd116a..1441868bc 100644 --- a/interfaces/kits/js/BUILD.gn +++ b/interfaces/kits/js/BUILD.gn @@ -14,6 +14,13 @@ import("//build/ohos.gni") import("//foundation/filemanagement/file_api/file_api.gni") +config("securitylabel_public_config") { + visibility = [ ":*" ] + include_dirs = [ + "src/mod_securitylabel", + ] +} + file_common_src = [ "src/common/file_helper/fd_guard.cpp", "src/common/napi/n_async/n_async_work_callback.cpp", @@ -281,7 +288,7 @@ ohos_shared_library("securitylabel") { "src/mod_securitylabel/securitylabel_n_exporter.cpp", "src/mod_securitylabel/securitylabel_napi.cpp", ] - + public_configs = [ "securitylabel_public_config" ] deps = [ "${utils_path}/filemgmt_libn:filemgmt_libn" ] } -- Gitee