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