diff --git a/bundle.json b/bundle.json index 051ad6b0813219f5a3f2de9a77c04e5c50825010..c26f930ff02e827969a8ab7513ae592a49a8fb43 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 b8bbd116a5ddd294928ae80158fa06eb3cfb2023..1441868bc05e422860a96f2c3cac517b326a25d5 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" ] }