1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//build/ohos_var.gni") 16 17config("public_config") { 18 include_dirs = [ "." ] 19} 20 21config("private_config") { 22 include_dirs = [ 23 "../../../../services/storage_manager/include", 24 "../../../../services/storage_manager/include", 25 "../../../../services/storage_daemon/include", 26 "../../../../services/common/include", 27 "../../../../interfaces/innerkits/storage_manager/native", 28 ] 29} 30 31ohos_shared_library("storage_manager_acl") { 32 branch_protector_ret = "pac_ret" 33 sanitize = { 34 integer_overflow = true 35 ubsan = true 36 boundary_sanitize = true 37 cfi = true 38 cfi_cross_dso = true 39 debug = false 40 } 41 42 sources = [ 43 "../../../../services/storage_daemon/file_sharing/src/acl.cpp", 44 "../../../../services/storage_daemon/file_sharing/src/setacl.cpp", 45 "../../../../services/storage_daemon/utils/file_utils.cpp", 46 ] 47 48 defines = [ 49 "STORAGE_LOG_TAG = \"StorageManager\"", 50 "LOG_DOMAIN = 0xD004300", 51 ] 52 53 configs = [ ":private_config" ] 54 public_configs = [ ":public_config" ] 55 56 cflags = [ 57 "-D_FORTIFY_SOURCE=2", 58 "-fstack-protector-strong", 59 ] 60 61 external_deps = [ 62 "c_utils:utils", 63 "hilog:libhilog", 64 "ipc:ipc_core", 65 ] 66 67 innerapi_tags = [ "chipsetsdk_indirect" ] 68 part_name = "storage_service" 69 subsystem_name = "filemanagement" 70} 71