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") 15import("//foundation/filemanagement/dfs_service/distributedfile.gni") 16 17config("public_config") { 18 include_dirs = [ "." ] 19} 20 21config("private_config") { 22 include_dirs = [ 23 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/include", 24 "${distributedfile_path}/interfaces/inner_api/native/cloudsync_kit_inner", 25 "${distributedfile_path}/utils/log/include", 26 "${media_library_path}/frameworks/utils/include", 27 "${media_library_path}/interfaces/inner_api/media_library_helper/include", 28 ] 29} 30 31ohos_shared_library("cloudsync_kit_inner") { 32 sources = [ 33 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_download_callback_client.cpp", 34 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_download_callback_stub.cpp", 35 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_download_uri_manager.cpp", 36 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_callback_client.cpp", 37 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_callback_stub.cpp", 38 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_common.cpp", 39 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_manager.cpp", 40 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_manager_impl.cpp", 41 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_service_proxy.cpp", 42 "${distributedfile_path}/utils/log/src/utils_log.cpp", 43 ] 44 45 defines = [ 46 "LOG_DOMAIN=0xD004306", 47 "LOG_TAG=\"CLOUDSYNC_API\"", 48 ] 49 50 configs = [ ":private_config" ] 51 public_configs = [ ":public_config" ] 52 53 external_deps = [ 54 "ability_base:zuri", 55 "ability_runtime:ability_manager", 56 "ability_runtime:dataobs_manager", 57 "c_utils:utils", 58 "hilog:libhilog", 59 "ipc:ipc_core", 60 "media_library:media_library", 61 "safwk:system_ability_fwk", 62 "samgr:samgr_proxy", 63 ] 64 65 use_exceptions = true 66 part_name = "dfs_service" 67 subsystem_name = "filemanagement" 68} 69 70ohos_shared_library("cloudsync_asset_kit_inner") { 71 sources = [ 72 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_download_uri_manager.cpp", 73 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_asset_manager.cpp", 74 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_asset_manager_impl.cpp", 75 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_common.cpp", 76 "${distributedfile_path}/frameworks/native/cloudsync_kit_inner/src/cloud_sync_service_proxy.cpp", 77 ] 78 79 defines = [ 80 "LOG_DOMAIN=0xD004309", 81 "LOG_TAG=\"CLOUD_ASSET_API\"", 82 ] 83 84 configs = [ ":private_config" ] 85 public_configs = [ ":public_config" ] 86 87 external_deps = [ 88 "ability_base:zuri", 89 "hilog:libhilog", 90 "ipc:ipc_core", 91 "media_library:media_library", 92 "safwk:system_ability_fwk", 93 "samgr:samgr_proxy", 94 ] 95 96 deps = [ "${utils_path}:libdistributedfileutils" ] 97 98 use_exceptions = true 99 innerapi_tags = [ "platformsdk" ] 100 part_name = "dfs_service" 101 subsystem_name = "filemanagement" 102} 103