• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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("distributedbundle") {
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  include_dirs = []
37  defines = [
38    "APP_LOG_TAG = \"DistributedBundleMgrService\"",
39    "LOG_DOMAIN = 0xD0011E0",
40  ]
41  sources = [
42    "distributed_bundle_mgr.cpp",
43    "native_module.cpp",
44  ]
45
46  configs = [ "${dbms_services_path}:distributed_bms_config" ]
47
48  deps = [ "${dbms_inner_api_path}:dbms_fwk" ]
49
50  external_deps = [
51    "ability_base:want",
52    "bundle_framework:appexecfwk_base",
53    "bundle_framework:libappexecfwk_common",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "ipc:ipc_core",
57    "napi:ace_napi",
58    "samgr:samgr_proxy",
59  ]
60
61  relative_install_dir = "module"
62  subsystem_name = "bundlemanager"
63  part_name = "distributed_bundle_framework"
64}
65
66group("jsapi_target") {
67  deps = []
68
69  if (support_jsapi && distributed_bundle_framework_graphics) {
70    deps += [ ":distributedbundle" ]
71  }
72}
73