• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//foundation/appexecfwk/standard/appexecfwk.gni")
16
17config("tools_bm_config") {
18  include_dirs = [
19    "${aafwk_path}/interfaces/innerkits/want/include",
20    "${aafwk_path}/interfaces/innerkits/base/include",
21    "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content",
22    "${aafwk_path}/services/abilitymgr/include",
23    "${aafwk_path}/services/common/include",
24    "${aafwk_path}/tools/aa/include",
25    "${appexecfwk_path}/common/log/include",
26    "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include",
27    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
28    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
29    "//utils/native/base/include",
30    "include",
31  ]
32
33  configs = [ "${appexecfwk_path}/services/bundlemgr:bundlemgr_common_config" ]
34}
35
36ohos_source_set("tools_bm_source_set") {
37  sources = [
38    "${aafwk_path}/tools/aa/src/shell_command.cpp",
39    "src/bundle_command.cpp",
40    "src/main.cpp",
41    "src/status_receiver_impl.cpp",
42  ]
43
44  public_configs = [
45    "${aafwk_path}/tools/aa:ability_command_config",
46    ":tools_bm_config",
47  ]
48
49  cflags = []
50  if (target_cpu == "arm") {
51    cflags += [ "-DBINDER_IPC_32BIT" ]
52  }
53
54  deps = [
55    "${aafwk_path}/interfaces/innerkits/want:want",
56    "${aafwk_path}/services/abilitymgr:abilityms",
57    "${appexecfwk_path}/common:libappexecfwk_common",
58    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
59    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
60    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
61    "//utils/native/base:utils",
62  ]
63
64  external_deps = [
65    "hiviewdfx_hilog_native:libhilog",
66    "ipc:ipc_core",
67  ]
68}
69
70ohos_executable("bm") {
71  deps = [ ":tools_bm_source_set" ]
72
73  install_enable = true
74
75  subsystem_name = "appexecfwk"
76  part_name = "appexecfwk_standard"
77}
78
79group("tools_bm") {
80  deps = [ ":bm" ]
81}
82