• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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("../../../../dbms.gni")
16
17ohos_shared_library("distributedbundlemanager") {
18  branch_protector_ret = "pac_ret"
19
20  sanitize = {
21    boundary_sanitize = true
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25    integer_overflow = true
26    ubsan = true
27  }
28
29  cflags = [ "-fstack-protector-strong" ]
30  cflags_cc = [
31    "-Os",
32    "-fno-unwind-tables",
33    "-fstack-protector-strong",
34  ]
35
36  defines = [
37    "APP_LOG_TAG = \"DistributedBundleMgrService\"",
38    "LOG_DOMAIN = 0xD0011E0",
39  ]
40  sources = [ "native_module.cpp" ]
41  if (distributed_bundle_framework_enable) {
42    sources += [ "distributed_bundle.cpp" ]
43  } else {
44    sources += [ "distributed_bundle_unsupported.cpp" ]
45  }
46
47  configs = [ "${dbms_services_path}:distributed_bms_config" ]
48
49  deps = [ "${dbms_inner_api_path}:dbms_fwk" ]
50
51  external_deps = [
52    "ability_base:want",
53    "bundle_framework:appexecfwk_base",
54    "bundle_framework:appexecfwk_core",
55    "bundle_framework:bundle_napi_common",
56    "bundle_framework:libappexecfwk_common",
57    "c_utils:utils",
58    "hilog:libhilog",
59    "ipc:ipc_core",
60    "napi:ace_napi",
61    "samgr:samgr_proxy",
62  ]
63  public_external_deps = [ "bundle_framework:bundle_napi_common" ]
64  relative_install_dir = "module/bundle"
65  subsystem_name = "bundlemanager"
66  part_name = "distributed_bundle_framework"
67}
68
69group("jsapi_target") {
70  deps = []
71
72  if (support_jsapi && distributed_bundle_framework_graphics) {
73    deps += [ ":distributedbundlemanager" ]
74  }
75}
76