• 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.
13
14import("//build/ohos.gni")
15
16common_src = [
17  "common/napi/n_class.cpp",
18  "common/napi/n_func_arg.cpp",
19  "common/napi/n_val.cpp",
20  "common/uni_error.cpp",
21  "common/ability_helper.cpp",
22  "common/common_func.cpp",
23]
24
25ohos_shared_library("fileshare") {
26  relative_install_dir = "module"
27
28  include_dirs = [
29    "//third_party/node/src",
30    "//foundation/ace/napi/interfaces/kits",
31    "//utils/native/base/include",
32  ]
33
34  sources = common_src
35  sources += [
36    "file_share_ability/file_share_exporter.cpp",
37    "file_share_ability/module.cpp",
38  ]
39
40  deps = [
41    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
42    "//foundation/ace/napi:ace_napi",
43    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
44    "//utils/native/base:utilsecurec",
45  ]
46
47  external_deps = [
48    "ability_base:want",
49    "ability_runtime:ability_manager",
50    "bundle_framework:appexecfwk_base",
51    "bundle_framework:appexecfwk_core",
52    "hiviewdfx_hilog_native:libhilog",
53    "ipc:ipc_core",
54  ]
55  subsystem_name = "distributeddatamgr"
56  part_name = "storage_standard"
57}
58
59ohos_shared_library("devicesmgr") {
60  relative_install_dir = "module"
61
62  include_dirs = [
63    "//third_party/node/src",
64    "//foundation/ace/napi/interfaces/kits",
65    "//utils/native/base/include",
66    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
67    "//utils/system/safwk/native/include",
68  ]
69
70  sources = common_src
71  sources += [
72    "device_storage_manager/device_sm_exporter.cpp",
73    "device_storage_manager/module.cpp",
74  ]
75
76  deps = [
77    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
78    "//foundation/ace/napi:ace_napi",
79    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
80    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
81    "//utils/native/base:utilsecurec",
82  ]
83
84  external_deps = [
85    "ability_base:want",
86    "ability_runtime:ability_manager",
87    "bundle_framework:appexecfwk_base",
88    "bundle_framework:appexecfwk_core",
89    "hiviewdfx_hilog_native:libhilog",
90    "ipc:ipc_core",
91    "safwk:system_ability_fwk",
92    "samgr_standard:samgr_proxy",
93  ]
94  subsystem_name = "distributeddatamgr"
95  part_name = "storage_standard"
96}
97
98ohos_shared_library("filepicker") {
99  relative_install_dir = "module"
100
101  include_dirs = [
102    "//third_party/node/src",
103    "//foundation/ace/napi/interfaces/kits",
104    "//utils/native/base/include",
105    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
106    "//utils/system/safwk/native/include",
107  ]
108
109  sources = common_src
110  sources += [
111    "file_picker_service/file_picker_exporter.cpp",
112    "file_picker_service/module.cpp",
113  ]
114
115  deps = [
116    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
117    "//foundation/ace/napi:ace_napi",
118    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
119    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
120    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
121    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
122    "//utils/native/base:utilsecurec",
123  ]
124
125  external_deps = [
126    "ability_base:want",
127    "ability_runtime:ability_manager",
128    "bundle_framework:appexecfwk_base",
129    "bundle_framework:appexecfwk_core",
130    "hiviewdfx_hilog_native:libhilog",
131    "ipc:ipc_core",
132    "safwk:system_ability_fwk",
133  ]
134  subsystem_name = "distributeddatamgr"
135  part_name = "storage_standard"
136}
137
138group("build_kits_napi") {
139  deps = [
140    ":devicesmgr",
141    ":filepicker",
142    ":fileshare",
143  ]
144}
145