• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("../../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    "-fstack-protector-strong",
32    "-D_FORTIFY_SOURCE=2",
33    "-Os",
34  ]
35
36  cflags_cc = [
37    "-fstack-protector-strong",
38    "-Os",
39  ]
40}
41
42ohos_shared_library("app_domain_verify_frameworks_common") {
43  branch_protector_ret = "pac_ret"
44  sources = [
45    "src/bms/bundle_info_query.cpp",
46    "src/config/white_list_config_mgr.cpp",
47    "src/httpsession/app_domain_verify_task_mgr.cpp",
48    "src/httpsession/i_http_task.cpp",
49    "src/utils/domain_url_util.cpp",
50  ]
51
52  public_configs = [ ":app_domain_verify_frameworks_common_config" ]
53  version_script = "common.versionscript"
54  deps = [ "${app_domain_verify_common_path}:app_domain_verify_common" ]
55  external_deps = [
56    "ability_base:want",
57    "ability_base:zuri",
58    "bundle_framework:appexecfwk_base",
59    "bundle_framework:appexecfwk_core",
60    "c_utils:utils",
61    "ffrt:libffrt",
62    "hicollie:libhicollie",
63    "hilog:libhilog",
64    "hisysevent:libhisysevent",
65    "ipc:ipc_core",
66    "json:nlohmann_json_static",
67    "netstack:http_client",
68    "os_account:os_account_innerkits",
69    "preferences:native_preferences",
70    "safwk:system_ability_fwk",
71    "samgr:samgr_proxy",
72  ]
73  defines = []
74  if (build_variant == "user") {
75    defines += [ "IS_RELEASE_VERSION" ]
76  }
77  sanitize = {
78    boundary_sanitize = true
79    cfi = true
80    cfi_cross_dso = true
81    debug = false
82    integer_overflow = true
83    ubsan = true
84  }
85  subsystem_name = "bundlemanager"
86  part_name = "app_domain_verify"
87}
88