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. 13import("//build/ohos.gni") 14import("//foundation/distributeddatamgr/udmf/udmf.gni") 15 16config("udmf_client_config") { 17 include_dirs = [ 18 "${udmf_interfaces_path}/innerkits/client", 19 "${udmf_interfaces_path}/innerkits/common", 20 "${udmf_interfaces_path}/innerkits/data", 21 "${udmf_framework_path}/common", 22 "${udmf_framework_path}/innerkitsimpl/data", 23 "${udmf_framework_path}/innerkitsimpl/service", 24 "${kv_store_path}/frameworks/common", 25 "//third_party/libuv/include", 26 "//third_party/node/src", 27 "${kv_store_path}/frameworks/innerkitsimpl/distributeddatafwk/include", 28 "${kv_store_path}/frameworks/innerkitsimpl/distributeddatafwk/src", 29 "${kv_store_path}/frameworks/innerkitsimpl/distributeddatasvc/include", 30 "${kv_store_path}/interfaces/innerkits/distributeddata/include", 31 "${file_service_path}/interfaces/common/include", 32 "${file_service_path}/interfaces/innerkits/native/file_uri/include", 33 ] 34} 35 36ohos_shared_library("udmf_client") { 37 sources = [ 38 "${udmf_framework_path}/common/custom_utd_json_parser.cpp", 39 "${udmf_framework_path}/common/custom_utd_store.cpp", 40 "${udmf_framework_path}/common/graph.cpp", 41 "${udmf_framework_path}/common/tlv_object.cpp", 42 "${udmf_framework_path}/common/tlv_util.cpp", 43 "${udmf_framework_path}/common/udmf_types_util.cpp", 44 "${udmf_framework_path}/common/utd_cfgs_checker.cpp", 45 "${udmf_framework_path}/common/utd_graph.cpp", 46 "${udmf_framework_path}/innerkitsimpl/client/udmf_client.cpp", 47 "${udmf_framework_path}/innerkitsimpl/client/utd_client.cpp", 48 "${udmf_framework_path}/innerkitsimpl/common/unified_key.cpp", 49 "${udmf_framework_path}/innerkitsimpl/common/unified_meta.cpp", 50 "${udmf_framework_path}/innerkitsimpl/data/application_defined_record.cpp", 51 "${udmf_framework_path}/innerkitsimpl/data/audio.cpp", 52 "${udmf_framework_path}/innerkitsimpl/data/file.cpp", 53 "${udmf_framework_path}/innerkitsimpl/data/folder.cpp", 54 "${udmf_framework_path}/innerkitsimpl/data/html.cpp", 55 "${udmf_framework_path}/innerkitsimpl/data/image.cpp", 56 "${udmf_framework_path}/innerkitsimpl/data/link.cpp", 57 "${udmf_framework_path}/innerkitsimpl/data/plain_text.cpp", 58 "${udmf_framework_path}/innerkitsimpl/data/preset_type_descriptors.cpp", 59 "${udmf_framework_path}/innerkitsimpl/data/system_defined_appitem.cpp", 60 "${udmf_framework_path}/innerkitsimpl/data/system_defined_form.cpp", 61 "${udmf_framework_path}/innerkitsimpl/data/system_defined_pixelmap.cpp", 62 "${udmf_framework_path}/innerkitsimpl/data/system_defined_record.cpp", 63 "${udmf_framework_path}/innerkitsimpl/data/text.cpp", 64 "${udmf_framework_path}/innerkitsimpl/data/type_descriptor.cpp", 65 "${udmf_framework_path}/innerkitsimpl/data/unified_data.cpp", 66 "${udmf_framework_path}/innerkitsimpl/data/unified_data_helper.cpp", 67 "${udmf_framework_path}/innerkitsimpl/data/unified_record.cpp", 68 "${udmf_framework_path}/innerkitsimpl/data/video.cpp", 69 "${udmf_framework_path}/innerkitsimpl/service/udmf_service_client.cpp", 70 "${udmf_framework_path}/innerkitsimpl/service/udmf_service_proxy.cpp", 71 ] 72 73 public_configs = [ ":udmf_client_config" ] 74 75 external_deps = [ 76 "ability_base:zuri", 77 "access_token:libaccesstoken_sdk", 78 "app_file_service:fileuri_native", 79 "bundle_framework:appexecfwk_core", 80 "c_utils:utils", 81 "hilog:libhilog", 82 "hitrace:hitrace_meter", 83 "hitrace:libhitracechain", 84 "ipc:ipc_core", 85 "kv_store:distributeddata_inner", 86 "kv_store:distributeddata_mgr", 87 "samgr:samgr_proxy", 88 ] 89 90 public_configs += [ "//third_party/cJSON:cJSON_config" ] 91 deps = [ "//third_party/cJSON:cjson" ] 92 93 innerapi_tags = [ "platformsdk" ] 94 subsystem_name = "distributeddatamgr" 95 96 part_name = "udmf" 97 98 if (build_selinux) { 99 cflags = [ "-DWITH_SELINUX" ] 100 external_deps += [ "selinux_adapter:librestorecon" ] 101 } 102} 103