• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15
16group("common_target") {
17  deps = [ ":libappexecfwk_common" ]
18}
19
20config("appexecfwk_common_config") {
21  include_dirs = [
22    "log/include",
23    "utils/include",
24  ]
25}
26
27config("bundle_all_dependent_config") {
28  include_dirs = [ "log/include" ]
29}
30
31ohos_shared_library("libappexecfwk_common") {
32  branch_protector_ret = "pac_ret"
33
34  sanitize = {
35    boundary_sanitize = true
36    cfi = true
37    cfi_cross_dso = true
38    debug = false
39    integer_overflow = true
40    ubsan = true
41  }
42
43  sources = [
44    "log/src/app_log_wrapper.cpp",
45    "utils/src/bundle_file_util.cpp",
46    "utils/src/bundle_memory_guard.cpp",
47  ]
48
49  defines = [
50    "APP_LOG_TAG = \"BMS\"",
51    "LOG_DOMAIN = 0xD001120",
52  ]
53
54  cflags = [
55    "-Os",
56    "-fstack-protector-strong",
57  ]
58
59  cflags_cc = [
60    "-Os",
61    "-fstack-protector-strong",
62  ]
63  if (use_musl) {
64    if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) {
65      defines += [ "CONFIG_USE_JEMALLOC_DFX_INTF" ]
66    }
67  }
68
69  public_configs = [ ":appexecfwk_common_config" ]
70
71  all_dependent_configs = [ ":bundle_all_dependent_config" ]
72
73  external_deps = [
74    "c_utils:utils",
75    "hilog:libhilog",
76  ]
77
78  subsystem_name = "bundlemanager"
79  innerapi_tags = [ "platformsdk" ]
80  part_name = "bundle_framework"
81}
82