1# Copyright (c) 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/bundlemanager/app_domain_verify/app_domain_verify.gni") 16 17config("app_domain_verify_common_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "include/zidl", 22 "${app_domain_verify_frameworks_common_path}/include", 23 ] 24 cflags = [ 25 "-fdata-sections", 26 "-ffunction-sections", 27 "-Os", 28 ] 29 30 cflags_cc = [ "-Os" ] 31} 32 33ohos_shared_library("app_domain_verify_common") { 34 branch_protector_ret = "pac_ret" 35 sources = [ 36 "src/app_verify_base_info.cpp", 37 "src/bundle_verify_status_info.cpp", 38 "src/common_utils.cpp", 39 "src/skill_uri.cpp", 40 "src/zidl/convert_callback_proxy.cpp", 41 "src/zidl/convert_callback_stub.cpp", 42 ] 43 44 public_configs = [ ":app_domain_verify_common_config" ] 45 version_script = "common.versionscript" 46 47 external_deps = [ 48 "ability_base:want", 49 "c_utils:utils", 50 "hilog:libhilog", 51 "ipc:ipc_core", 52 "json:nlohmann_json_static", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 ] 56 defines = [] 57 if (build_variant == "user") { 58 defines += [ "IS_RELEASE_VERSION" ] 59 } 60 sanitize = { 61 cfi = true 62 cfi_cross_dso = true 63 debug = false 64 } 65 subsystem_name = "bundlemanager" 66 part_name = "app_domain_verify" 67} 68