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  defines = [
19    "APP_LOG_TAG = \"DistributedBundleMgrService\"",
20    "LOG_DOMAIN = 0xD0011E0",
21  ]
22  sources = [ "native_module.cpp" ]
23  if (distributed_bundle_framework_enable) {
24    sources += [ "distributed_bundle.cpp" ]
25  } else {
26    sources += [ "distributed_bundle_unsupported.cpp" ]
27  }
28
29  configs = [ "${dbms_services_path}:distributed_bms_config" ]
30
31  deps = [ "${dbms_inner_api_path}:dbms_fwk" ]
32
33  external_deps = [
34    "ability_base:want",
35    "bundle_framework:appexecfwk_base",
36    "bundle_framework:appexecfwk_core",
37    "bundle_framework:bundle_napi_common",
38    "bundle_framework:libappexecfwk_common",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42    "napi:ace_napi",
43    "samgr:samgr_proxy",
44  ]
45  public_external_deps = [ "bundle_framework:bundle_napi_common" ]
46  relative_install_dir = "module/bundle"
47  subsystem_name = "bundlemanager"
48  part_name = "distributed_bundle_framework"
49}
50
51group("jsapi_target") {
52  deps = []
53
54  if (support_jsapi && distributed_bundle_framework_graphics) {
55    deps += [ ":distributedbundlemanager" ]
56  }
57}
58