use build_selinux instead of use librestorecon feature

Signed-off-by: 张文迪 <zhangwendi3@huawei.com>
This commit is contained in:
张文迪 2022-09-03 19:22:10 +08:00
parent f1702dd242
commit 0908e36a30
3 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,7 @@
"features": [
"storage_service_fstools",
"storage_service_graphic",
"storage_service_user_file_sharing",
"storage_service_feature_use_librestorecon"
"storage_service_user_file_sharing"
],
"adapted_system_type": ["standard"],
"rom": "",

View File

@ -190,7 +190,7 @@ ohos_shared_library("storage_common_utils") {
"./utils/string_utils.cpp",
]
if (storage_service_feature_use_librestorecon) {
if (build_selinux) {
defines += [ "USE_LIBRESTORECON" ]
include_dirs +=
[ "//base/security/selinux/interfaces/policycoreutils/include" ]

View File

@ -15,5 +15,4 @@ ability_runtime_path = "//foundation/ability/ability_runtime"
ability_runtime_kits_path = "${ability_runtime_path}/frameworks/kits"
declare_args() {
storage_service_graphic = true
storage_service_feature_use_librestorecon = false
}