• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15
16config("public_config") {
17  include_dirs = [ "." ]
18}
19
20config("private_config") {
21  include_dirs = [
22    "//foundation/filemanagement/storage_service/services/storage_manager/include",
23    "//foundation/filemanagement/storage_service/services/storage_daemon/include",
24    "//foundation/filemanagement/storage_service/services/common/include",
25  ]
26}
27
28ohos_shared_library("storage_manager_sa_proxy") {
29  sources = [
30    "//foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/storage_daemon_proxy.cpp",
31    "//foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/bundle_stats.cpp",
32    "//foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/disk.cpp",
33    "//foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/storage_stats.cpp",
34    "//foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/volume_core.cpp",
35    "//foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/volume_external.cpp",
36    "//foundation/filemanagement/storage_service/services/storage_manager/ipc/src/storage_manager_proxy.cpp",
37  ]
38
39  defines = [
40    "STORAGE_LOG_TAG = \"StorageManager\"",
41    "LOG_DOMAIN = 0xD004300",
42  ]
43
44  configs = [ ":private_config" ]
45  public_configs = [ ":public_config" ]
46
47  external_deps = [
48    "hiviewdfx_hilog_native:libhilog",
49    "ipc:ipc_core",
50  ]
51  public_deps = [
52    "//commonlibrary/c_utils/base:utils",
53    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
54  ]
55
56  part_name = "storage_service"
57  subsystem_name = "filemanagement"
58}
59