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_agent_verifier_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "include/constant", 22 "${app_domain_verify_common_path}/include", 23 "${app_domain_verify_frameworks_common_path}/include", 24 "${app_domain_verify_frameworks_common_path}/include/httpsession", 25 "${app_domain_verify_frameworks_common_path}/include/utils", 26 "${app_domain_verify_frameworks_common_path}/include/bms", 27 ] 28 configs = [ "//build/config/compiler:exceptions" ] 29 ldflags = [ "-Wl,--exclude-libs=ALL" ] 30 cflags = [ 31 "-fdata-sections", 32 "-ffunction-sections", 33 "-Os", 34 ] 35 36 cflags_cc = [ "-Os" ] 37} 38 39ohos_shared_library("app_domain_verify_agent_verifier") { 40 branch_protector_ret = "pac_ret" 41 sources = [ 42 "src/domain_json_util.cpp", 43 "src/domain_verifier.cpp", 44 "src/verify_http_task.cpp", 45 "src/verify_task.cpp", 46 ] 47 public_configs = [ ":app_domain_verify_agent_verifier_config" ] 48 deps = [ 49 "${app_domain_verify_client_path}:app_domain_verify_mgr_client", 50 "${app_domain_verify_common_path}:app_domain_verify_common", 51 "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common", 52 ] 53 version_script = "verifier.versionscript" 54 55 external_deps = [ 56 "ability_base:base", 57 "ability_base:want", 58 "ability_runtime:ability_manager", 59 "bundle_framework:appexecfwk_base", 60 "bundle_framework:appexecfwk_core", 61 "c_utils:utils", 62 "curl:curl_shared", 63 "eventhandler:libeventhandler", 64 "ffrt:libffrt", 65 "hilog:libhilog", 66 "hisysevent:libhisysevent", 67 "ipc:ipc_core", 68 "json:nlohmann_json_static", 69 "netstack:http_client", 70 "os_account:os_account_innerkits", 71 "safwk:system_ability_fwk", 72 "samgr:samgr_proxy", 73 ] 74 defines = [] 75 if (build_variant == "user") { 76 defines += [ "IS_RELEASE_VERSION" ] 77 } 78 sanitize = { 79 cfi = true 80 cfi_cross_dso = true 81 debug = false 82 } 83 subsystem_name = "bundlemanager" 84 part_name = "app_domain_verify" 85} 86