1# Copyright (c) 2021 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. 13import("//build/ohos.gni") 14import("//build/ohos_var.gni") 15import("//foundation/filemanagement/storage_service/storage_service_aafwk.gni") 16 17config("public_config") { 18 include_dirs = [ "." ] 19} 20 21config("private_config") { 22 include_dirs = [ 23 "${storage_manager_path}/include", 24 "${storage_service_path}/services/storage_daemon/include", 25 "${storage_service_common_path}/include", 26 ] 27} 28 29ohos_shared_library("storage_manager_sa_proxy") { 30 stack_protector_ret = true 31 sanitize = { 32 integer_overflow = true 33 ubsan = true 34 boundary_sanitize = true 35 cfi = true 36 cfi_cross_dso = true 37 debug = false 38 } 39 40 sources = [ 41 "${storage_daemon_path}/ipc/src/storage_daemon_proxy.cpp", 42 "${storage_manager_path}/innerkits_impl/src/bundle_stats.cpp", 43 "${storage_manager_path}/innerkits_impl/src/disk.cpp", 44 "${storage_manager_path}/innerkits_impl/src/storage_manager_proxy.cpp", 45 "${storage_manager_path}/innerkits_impl/src/storage_stats.cpp", 46 "${storage_manager_path}/innerkits_impl/src/volume_core.cpp", 47 "${storage_manager_path}/innerkits_impl/src/volume_external.cpp", 48 ] 49 50 defines = [ 51 "STORAGE_LOG_TAG = \"StorageManager\"", 52 "LOG_DOMAIN = 0xD004300", 53 ] 54 55 configs = [ ":private_config" ] 56 public_configs = [ ":public_config" ] 57 58 external_deps = [ 59 "c_utils:utils", 60 "hilog:libhilog", 61 "hitrace:hitrace_meter", 62 "ipc:ipc_core", 63 ] 64 65 part_name = "storage_service" 66 innerapi_tags = [ "platformsdk" ] 67 subsystem_name = "filemanagement" 68} 69