# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") config("libn_public_config") { visibility = [ ":*" ] include_dirs = [ "include", "include/n_async", ] } ohos_shared_library("filemgmt_libn") { sources = [ "src/n_async/n_async_work_callback.cpp", "src/n_async/n_async_work_promise.cpp", "src/n_async/n_ref.cpp", "src/n_class.cpp", "src/n_error.cpp", "src/n_func_arg.cpp", "src/n_val.cpp", ] public_configs = [ ":libn_public_config" ] public_deps = [ "//foundation/arkui/napi:ace_napi", "//foundation/distributeddatamgr/distributedfile/utils/filemgmt_libhilog", ] subsystem_name = "distributeddatamgr" part_name = "distributedfilejs" }