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/ability/ability_runtime/ability_runtime.gni") 16 17ohos_prebuilt_etc("quick_fix.cfg") { 18 relative_install_dir = "init" 19 source = "quick_fix.cfg" 20 part_name = "ability_runtime" 21 subsystem_name = "ability" 22} 23 24config("quickfixms_config") { 25 visibility = [ ":*" ] 26 include_dirs = [ "include" ] 27 cflags = [] 28 if (target_cpu == "arm") { 29 cflags += [ "-DBINDER_IPC_32BIT" ] 30 } 31} 32 33ohos_shared_library("quickfixms") { 34 configs = [ "${ability_runtime_services_path}/common:common_config" ] 35 public_configs = [ ":quickfixms_config" ] 36 37 sources = [ 38 "src/quick_fix_manager_apply_task.cpp", 39 "src/quick_fix_manager_service.cpp", 40 "src/quick_fix_manager_service_ability.cpp", 41 ] 42 43 defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ] 44 45 deps = [ "${ability_runtime_services_path}/common:perm_verification" ] 46 47 external_deps = [ 48 "ability_base:want", 49 "ability_runtime:app_manager", 50 "ability_runtime:quickfix_manager", 51 "bundle_framework:appexecfwk_base", 52 "bundle_framework:appexecfwk_core", 53 "c_utils:utils", 54 "common_event_service:cesfwk_innerkits", 55 "eventhandler:libeventhandler", 56 "hitrace_native:hitrace_meter", 57 "hiviewdfx_hilog_native:libhilog", 58 "ipc:ipc_core", 59 "safwk:system_ability_fwk", 60 "samgr:samgr_proxy", 61 ] 62 63 subsystem_name = "ability" 64 part_name = "ability_runtime" 65} 66