1# Copyright (c) 2025 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("../../../../appexecfwk.gni") 16 17config("bms_ani_common_config") { 18 include_dirs = [ 19 "./", 20 "${kits_path}/js/common", 21 "${common_path}/log/include", 22 ] 23} 24 25ohos_shared_library("bms_ani_common") { 26 branch_protector_ret = "pac_ret" 27 sanitize = { 28 boundary_sanitize = true 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 integer_overflow = true 33 ubsan = true 34 } 35 36 sources = [ 37 "business_error_ani.cpp", 38 "common_fun_ani.cpp", 39 ] 40 41 cflags = [ 42 "-Os", 43 "-fstack-protector-strong", 44 ] 45 46 cflags_cc = [ 47 "-Os", 48 "-fstack-protector-strong", 49 ] 50 51 deps = [ 52 "${base_path}:appexecfwk_base", 53 "${common_path}:libappexecfwk_common", 54 "${core_path}:appexecfwk_core", 55 "${kits_path}/js/common:bundle_napi_common", 56 ] 57 58 defines = [ 59 "APP_LOG_TAG = \"BMS\"", 60 "LOG_DOMAIN = 0xD001120", 61 ] 62 63 public_configs = [ ":bms_ani_common_config" ] 64 65 external_deps = [ 66 "ability_base:want", 67 "c_utils:utils", 68 "hilog:libhilog", 69 "ipc:ipc_core", 70 "runtime_core:ani", 71 "safwk:system_ability_fwk", 72 "samgr:samgr_proxy", 73 ] 74 75 subsystem_name = "bundlemanager" 76 part_name = "bundle_framework" 77} 78