• 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")
15
16config("libn_public_config") {
17  visibility = [ ":*" ]
18
19  include_dirs = [
20    "include",
21    "include/n_async",
22  ]
23}
24
25ohos_shared_library("filemgmt_libn") {
26  sources = [
27    "src/n_async/n_async_work_callback.cpp",
28    "src/n_async/n_async_work_promise.cpp",
29    "src/n_async/n_ref.cpp",
30    "src/n_class.cpp",
31    "src/n_error.cpp",
32    "src/n_func_arg.cpp",
33    "src/n_val.cpp",
34  ]
35
36  public_configs = [ ":libn_public_config" ]
37  public_deps = [
38    "//foundation/arkui/napi:ace_napi",
39    "//foundation/distributeddatamgr/distributedfile/utils/filemgmt_libhilog",
40  ]
41
42  subsystem_name = "distributeddatamgr"
43  part_name = "distributedfilejs"
44}
45