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 33quickfixms_sources = [ 34 "src/quick_fix_manager_apply_task.cpp", 35 "src/quick_fix_manager_service.cpp", 36 "src/quick_fix_manager_service_ability.cpp", 37] 38 39ohos_shared_library("quickfixms") { 40 include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper" ] 41 shlib_type = "sa" 42 configs = [ "${ability_runtime_services_path}/common:common_config" ] 43 public_configs = [ ":quickfixms_config" ] 44 45 sources = quickfixms_sources 46 47 defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ] 48 49 deps = [ 50 "${ability_runtime_innerkits_path}/app_manager:app_manager", 51 "${ability_runtime_innerkits_path}/quick_fix:quickfix_manager", 52 "${ability_runtime_native_path}/appkit:appkit_manager_helper", 53 "${ability_runtime_services_path}/common:perm_verification", 54 ] 55 56 external_deps = [ 57 "ability_base:want", 58 "bundle_framework:appexecfwk_base", 59 "bundle_framework:appexecfwk_core", 60 "c_utils:utils", 61 "common_event_service:cesfwk_innerkits", 62 "eventhandler:libeventhandler", 63 "hilog:libhilog", 64 "hitrace:hitrace_meter", 65 "ipc:ipc_single", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 ] 69 70 subsystem_name = "ability" 71 part_name = "ability_runtime" 72} 73 74# Note: Just for test 75ohos_static_library("quickfixms_static") { 76 include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/appkit/ability_bundle_manager_helper" ] 77 configs = [ "${ability_runtime_services_path}/common:common_config" ] 78 public_configs = [ ":quickfixms_config" ] 79 80 sources = quickfixms_sources 81 82 defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ] 83 84 deps = [ "${ability_runtime_services_path}/common:perm_verification" ] 85 86 external_deps = [ 87 "ability_base:want", 88 "ability_runtime:app_manager", 89 "ability_runtime:quickfix_manager", 90 "bundle_framework:appexecfwk_base", 91 "bundle_framework:appexecfwk_core", 92 "c_utils:utils", 93 "common_event_service:cesfwk_innerkits", 94 "eventhandler:libeventhandler", 95 "hilog:libhilog", 96 "hitrace:hitrace_meter", 97 "ipc:ipc_single", 98 "safwk:system_ability_fwk", 99 "samgr:samgr_proxy", 100 ] 101 102 subsystem_name = "ability" 103 part_name = "ability_runtime" 104} 105