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. 13import("//build/ohos.gni") 14 15config("native_preferences_config") { 16 visibility = [ ":*" ] 17 include_dirs = [ 18 "include", 19 "../../../frameworks/innerkitsimpl/native_preferences/include", 20 "//utils/native/base/include", 21 ] 22} 23 24config("native_preferences_public_config") { 25 visibility = [ "//foundation/distributeddatamgr/appdatamgr:*" ] 26 include_dirs = [ "include" ] 27} 28 29ohos_shared_library("native_preferences") { 30 sources = [ 31 "../../../frameworks/innerkitsimpl/native_preferences/src/preferences_helper.cpp", 32 "../../../frameworks/innerkitsimpl/native_preferences/src/preferences_impl.cpp", 33 "../../../frameworks/innerkitsimpl/native_preferences/src/preferences_observer.cpp", 34 "../../../frameworks/innerkitsimpl/native_preferences/src/preferences_value.cpp", 35 "../../../frameworks/innerkitsimpl/native_preferences/src/preferences_xml_utils.cpp", 36 "../../../frameworks/innerkitsimpl/native_preferences/src/task_pool.cpp", 37 "../../../frameworks/innerkitsimpl/native_preferences/src/task_queue.cpp", 38 ] 39 40 configs = [ ":native_preferences_config" ] 41 42 deps = [ 43 "//utils/native/base:utils", 44 "//third_party/libxml2:libxml2" 45 ] 46 47 external_deps = [ "hilog_native:libhilog" ] 48 49 public_configs = [ ":native_preferences_public_config" ] 50 51 subsystem_name = "distributeddatamgr" 52 part_name = "native_appdatamgr" 53} 54