• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("//foundation/filemanagement/storage_service/storage_service_aafwk.gni")
16
17ohos_shared_library("storagestatistics") {
18  relative_install_dir = "module/file"
19  subsystem_name = "filemanagement"
20  part_name = "storage_service"
21
22  defines = [
23    "STORAGE_LOG_TAG = \"StorageManager\"",
24    "LOG_DOMAIN = 0xD004300",
25  ]
26
27  include_dirs = [
28    "include",
29    "${storage_service_path}/services/storage_manager/include",
30    "${storage_service_path}/interfaces/innerkits/storage_manager/native",
31    "${storage_service_path}/services/common/include",
32  ]
33
34  sources = [
35    "${storage_service_path}/services/storage_manager/kits_impl/src/storage_manager_connect.cpp",
36    "${storage_service_path}/services/storage_manager/kits_impl/src/storage_statistics_n_exporter.cpp",
37    "${storage_service_path}/services/storage_manager/kits_impl/src/storage_statistics_napi.cpp",
38  ]
39
40  deps = [ "${storage_interface_path}/innerkits/storage_manager/native:storage_manager_sa_proxy" ]
41
42  external_deps = [
43    "access_token:libtokenid_sdk",
44    "c_utils:utils",
45    "file_api:filemgmt_libhilog",
46    "file_api:filemgmt_libn",
47    "hilog:libhilog",
48    "ipc:ipc_core",
49    "napi:ace_napi",
50    "safwk:system_ability_fwk",
51    "samgr:samgr_proxy",
52  ]
53}
54
55ohos_shared_library("volumemanager") {
56  relative_install_dir = "module/file"
57  subsystem_name = "filemanagement"
58  part_name = "storage_service"
59
60  include_dirs = [
61    "include",
62    "${storage_service_path}/services/storage_manager/include",
63    "${storage_service_path}/interfaces/innerkits/storage_manager/native",
64    "${storage_service_path}/services/common/include",
65  ]
66
67  sources = [
68    "${storage_service_path}/services/storage_manager/kits_impl/src/storage_manager_connect.cpp",
69    "${storage_service_path}/services/storage_manager/kits_impl/src/volumemanager_n_exporter.cpp",
70    "${storage_service_path}/services/storage_manager/kits_impl/src/volumemanager_napi.cpp",
71  ]
72
73  defines = [
74    "STORAGE_LOG_TAG = \"StorageManager\"",
75    "LOG_DOMAIN = 0xD004300",
76  ]
77
78  deps = [ "${storage_interface_path}/innerkits/storage_manager/native:storage_manager_sa_proxy" ]
79
80  external_deps = [
81    "access_token:libtokenid_sdk",
82    "c_utils:utils",
83    "file_api:filemgmt_libhilog",
84    "file_api:filemgmt_libn",
85    "hilog:libhilog",
86    "ipc:ipc_core",
87    "napi:ace_napi",
88    "safwk:system_ability_fwk",
89    "samgr:samgr_proxy",
90  ]
91}
92
93group("storage_js") {
94  deps = [
95    ":storagestatistics",
96    ":volumemanager",
97  ]
98}
99