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 sources = [ 31 "${storage_daemon_path}/ipc/src/storage_daemon_proxy.cpp", 32 "${storage_manager_path}/innerkits_impl/src/bundle_stats.cpp", 33 "${storage_manager_path}/innerkits_impl/src/disk.cpp", 34 "${storage_manager_path}/innerkits_impl/src/storage_manager_proxy.cpp", 35 "${storage_manager_path}/innerkits_impl/src/storage_stats.cpp", 36 "${storage_manager_path}/innerkits_impl/src/volume_core.cpp", 37 "${storage_manager_path}/innerkits_impl/src/volume_external.cpp", 38 ] 39 40 defines = [ 41 "STORAGE_LOG_TAG = \"StorageManager\"", 42 "LOG_DOMAIN = 0xD004300", 43 ] 44 45 configs = [ ":private_config" ] 46 public_configs = [ ":public_config" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 "hitrace:hitrace_meter", 52 "ipc:ipc_core", 53 ] 54 55 part_name = "storage_service" 56 innerapi_tags = [ "platformsdk" ] 57 subsystem_name = "filemanagement" 58} 59