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