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_frameworks_common_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "include/utils", 22 "include/httpsession", 23 "include/bms", 24 "include/zidl", 25 "include/config", 26 "include/dfx", 27 ] 28 cflags = [ 29 "-fdata-sections", 30 "-ffunction-sections", 31 "-Os", 32 ] 33 34 cflags_cc = [ "-Os" ] 35} 36 37ohos_shared_library("app_domain_verify_frameworks_common") { 38 branch_protector_ret = "pac_ret" 39 sources = [ 40 "src/bms/bundle_info_query.cpp", 41 "src/config/white_list_config_mgr.cpp", 42 "src/httpsession/app_domain_verify_task_mgr.cpp", 43 "src/httpsession/i_http_task.cpp", 44 "src/utils/domain_url_util.cpp", 45 ] 46 47 public_configs = [ ":app_domain_verify_frameworks_common_config" ] 48 version_script = "common.versionscript" 49 deps = [ "${app_domain_verify_common_path}:app_domain_verify_common" ] 50 external_deps = [ 51 "ability_base:want", 52 "ability_base:zuri", 53 "bundle_framework:appexecfwk_base", 54 "bundle_framework:appexecfwk_core", 55 "c_utils:utils", 56 "ffrt:libffrt", 57 "hicollie:libhicollie", 58 "hilog:libhilog", 59 "ipc:ipc_core", 60 "json:nlohmann_json_static", 61 "netstack:http_client", 62 "os_account:os_account_innerkits", 63 "preferences:native_preferences", 64 "safwk:system_ability_fwk", 65 "samgr:samgr_proxy", 66 ] 67 defines = [] 68 if (build_variant == "user") { 69 defines += [ "IS_RELEASE_VERSION" ] 70 } 71 sanitize = { 72 cfi = true 73 cfi_cross_dso = true 74 debug = false 75 } 76 subsystem_name = "bundlemanager" 77 part_name = "app_domain_verify" 78} 79