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("../../dbms.gni") 16 17group("dbms_target") { 18 if (bundle_framework_graphics) { 19 deps = [ ":libdbms" ] 20 } 21} 22 23config("distributed_bms_config") { 24 include_dirs = [ "include" ] 25} 26 27ohos_shared_library("libdbms") { 28 sources = [ 29 "src/account_manager_helper.cpp", 30 "src/distributed_bms.cpp", 31 "src/distributed_bms_host.cpp", 32 "src/distributed_data_storage.cpp", 33 "src/image_compress.cpp", 34 ] 35 36 defines = [ 37 "APP_LOG_TAG = \"DistributedBundleMgrService\"", 38 "LOG_DOMAIN = 0xD001120", 39 ] 40 41 configs = [ ":distributed_bms_config" ] 42 43 deps = [ 44 "${common_path}:libappexecfwk_common", 45 "${dbms_inner_api_path}:dbms_fwk", 46 ] 47 48 external_deps = [ 49 "ability_base:want", 50 "access_token:libaccesstoken_sdk", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "c_utils:utils", 54 "common_event_service:cesfwk_innerkits", 55 "hicollie_native:libhicollie", 56 "hiviewdfx_hilog_native:libhilog", 57 "i18n:intl_util", 58 "init:libbegetutil", 59 "ipc:ipc_core", 60 "kv_store:distributeddata_inner", 61 "multimedia_image_framework:image_native", 62 "resource_management:global_resmgr", 63 "safwk:system_ability_fwk", 64 "samgr:samgr_proxy", 65 ] 66 67 if (hisysevent_enable) { 68 sources += [ "src/event_report.cpp" ] 69 external_deps += [ "hisysevent_native:libhisysevent" ] 70 defines += [ "HISYSEVENT_ENABLE" ] 71 } 72 73 if (account_enable) { 74 external_deps += [ "os_account:os_account_innerkits" ] 75 defines += [ "ACCOUNT_ENABLE" ] 76 } 77 78 part_name = "distributed_bundle_framework" 79 subsystem_name = "bundlemanager" 80} 81