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. 13 14import("//build/ohos.gni") 15import("//build/ohos/sa_profile/sa_profile.gni") 16 17config("storage_manager_config") { 18 include_dirs = [ 19 "include", 20 "../../interfaces/innerkits/storage_manager/native", 21 "//utils/system/safwk/native/include", 22 "//utils/native/base/include", 23 "../storage_daemon/include", 24 "//foundation/filemanagement/storage_service/services/common/include", 25 "//foundation/appexecfwk/standard/services/bundlemgr/include", 26 "//foundation/aafwk/standard/interfaces/innerkits/base/include/ohos/aafwk/base", 27 ] 28} 29 30ohos_shared_library("storage_manager") { 31 sources = [ 32 "account_subscriber/account_subscriber.cpp", 33 "crypto/filesystem_crypto.cpp", 34 "disk/src/disk_manager_service.cpp", 35 "ipc/src/storage_manager.cpp", 36 "ipc/src/storage_manager_stub.cpp", 37 "storage/src/storage_status_service.cpp", 38 "storage/src/storage_total_status_service.cpp", 39 "storage_daemon_communication/src/storage_daemon_communication.cpp", 40 "user/src/multi_user_manager_service.cpp", 41 "volume/src/notification.cpp", 42 "volume/src/volume_manager_service.cpp", 43 ] 44 45 defines = [ 46 "STORAGE_LOG_TAG = \"StorageManager\"", 47 "LOG_DOMAIN = 0xD004300", 48 ] 49 50 configs = [ ":storage_manager_config" ] 51 52 deps = [ 53 "../../interfaces/innerkits/storage_manager/native:storage_manager_sa_proxy", 54 "//base/account/os_account/frameworks/common:libaccount_common", 55 "//foundation/appexecfwk/standard/services/bundlemgr:libbms", 56 "//utils/native/base:utils", 57 ] 58 59 external_deps = [ 60 "ability_base:base", 61 "ability_base:want", 62 "access_token:libaccesstoken_sdk", 63 "bundle_framework:appexecfwk_base", 64 "ces_standard:cesfwk_innerkits", 65 "hiviewdfx_hilog_native:libhilog", 66 "ipc:ipc_core", 67 "os_account_standard:os_account_innerkits", 68 "safwk:system_ability_fwk", 69 "samgr_standard:samgr_proxy", 70 ] 71 72 subsystem_name = "filemanagement" 73 part_name = "storage_service" 74 install_enable = true 75} 76