1# Copyright (C) 2024 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("../../app_domain_verify.gni") 16 17config("app_domain_verify_app_details_rdb_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "include", 21 "${app_domain_verify_frameworks_common_path}/include", 22 ] 23 configs = [ "//build/config/compiler:exceptions" ] 24 ldflags = [ "-Wl,--exclude-libs=ALL" ] 25 cflags = [ 26 "-fdata-sections", 27 "-ffunction-sections", 28 "-fstack-protector-strong", 29 "-D_FORTIFY_SOURCE=2", 30 "-Os", 31 ] 32 33 cflags_cc = [ "-Os" ] 34} 35 36ohos_shared_library("app_domain_verify_app_details_rdb") { 37 branch_protector_ret = "pac_ret" 38 sources = [ 39 "src/app_details_meta_item.cpp", 40 "src/app_details_rdb_data_manager.cpp", 41 "src/app_details_rdb_item.cpp", 42 "src/app_details_rdb_open_callback.cpp", 43 ] 44 public_configs = [ ":app_domain_verify_app_details_rdb_config" ] 45 46 external_deps = [ 47 "ability_base:base", 48 "ability_base:want", 49 "ability_runtime:ability_manager", 50 "bundle_framework:appexecfwk_base", 51 "bundle_framework:appexecfwk_core", 52 "c_utils:utils", 53 "curl:curl_shared", 54 "eventhandler:libeventhandler", 55 "ffrt:libffrt", 56 "hilog:libhilog", 57 "hisysevent:libhisysevent", 58 "ipc:ipc_core", 59 "json:nlohmann_json_static", 60 "netstack:http_client", 61 "os_account:os_account_innerkits", 62 "relational_store:native_rdb", 63 "safwk:system_ability_fwk", 64 "samgr:samgr_proxy", 65 ] 66 defines = [] 67 if (build_variant == "user") { 68 defines += [ "IS_RELEASE_VERSION" ] 69 } 70 sanitize = { 71 cfi = true 72 cfi_cross_dso = true 73 debug = false 74 } 75 subsystem_name = "bundlemanager" 76 part_name = "app_domain_verify" 77} 78