1# Copyright (c) 2022-2023 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/ability/ability_runtime/ability_runtime.gni") 16import("//foundation/ability/idl_tool/idl_config.gni") 17 18idl_interface_sources = [ 19 "${target_gen_dir}/quick_fix_manager_proxy.cpp", 20 "${target_gen_dir}/quick_fix_manager_stub.cpp", 21] 22 23idl_gen_interface("quickfix_manager_interface") { 24 src_idl = rebase_path("IQuickFixManager.idl") 25 dst_file = string_join(",", idl_interface_sources) 26 hitrace = "HITRACE_TAG_ABILITY_MANAGER" 27 log_domainid = "0xD003900" 28 log_tag = "QuickFixManagerService" 29} 30 31config("quickfix_config") { 32 visibility = [ ":*" ] 33 include_dirs = [ 34 "include", 35 "${target_gen_dir}", 36 ] 37 cflags = [] 38 if (target_cpu == "arm") { 39 cflags += [ "-DBINDER_IPC_32BIT" ] 40 } 41} 42 43ohos_shared_library("quickfix_manager") { 44 include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper" ] 45 configs = [ "${ability_runtime_services_path}/common:common_config" ] 46 public_configs = [ ":quickfix_config" ] 47 48 output_values = get_target_outputs(":quickfix_manager_interface") 49 sources = [ 50 "src/quick_fix_error_utils.cpp", 51 "src/quick_fix_info.cpp", 52 "src/quick_fix_load_callback.cpp", 53 "src/quick_fix_manager_client.cpp", 54 "src/quick_fix_utils.cpp", 55 ] 56 sources += filter_include(output_values, [ "*.cpp" ]) 57 defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ] 58 deps = [ 59 ":quickfix_manager_interface", 60 "${ability_runtime_innerkits_path}/app_manager:app_manager", 61 "${ability_runtime_native_path}/appkit:appkit_manager_helper", 62 ] 63 64 external_deps = [ 65 "ability_base:want", 66 "bundle_framework:appexecfwk_base", 67 "bundle_framework:appexecfwk_core", 68 "c_utils:utils", 69 "hilog:libhilog", 70 "hitrace:hitrace_meter", 71 "ipc:ipc_single", 72 "safwk:system_ability_fwk", 73 "samgr:samgr_proxy", 74 ] 75 76 innerapi_tags = [ "platformsdk" ] 77 subsystem_name = "ability" 78 part_name = "ability_runtime" 79} 80