• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020 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.
13import("//build/lite/config/component/lite_component.gni")
14
15generate_notice_file("bm_notice_file") {
16  module_name = "bm"
17  module_source_dir_list = [ "//third_party/cJSON" ]
18}
19
20executable("bm") {
21  sources = [
22    "src/command_parser.cpp",
23    "src/main.cpp",
24  ]
25
26  cflags = [
27    "-Wall",
28    "-Wno-format",
29  ]
30  cflags_cc = cflags
31
32  ldflags = [
33    "-lstdc++",
34    "-lpthread",
35    "-Wl,-Map=bm_tool.map",
36  ]
37
38  deps = [
39    "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle",
40    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
41    "//base/startup/syspara_lite/frameworks/parameter:parameter",
42    "//base/security/permission/services/permission_lite/pms_client:pms_client",
43    "//build/lite/config/component/cJSON:cjson_shared",
44    "//foundation/communication/ipc_lite:liteipc_adapter",
45    "//foundation/distributedschedule/samgr_lite/samgr:samgr",
46  ]
47
48  include_dirs = [
49    "include",
50    "//base/security/permission/services/permission_lite/pms_client/include",
51    "//base/security/permission/interfaces/innerkits/permission_lite",
52    "//base/startup/syspara_lite/interfaces/kits",
53    "${aafwk_lite_path}/interfaces/innerkits/abilitymgr_lite",
54    "${aafwk_lite_path}/interfaces/kits/want_lite",
55    "${aafwk_lite_path}/services/abilitymgr_lite/include",
56    "${appexecfwk_lite_path}/interfaces/innerkits/bundlemgr_lite/",
57    "${appexecfwk_lite_path}/frameworks/bundle_lite/include",
58    "${appexecfwk_lite_path}/utils/bundle_lite",
59    "${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
60    "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr",
61    "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry",
62    "//third_party/cJSON",
63    "//utils/native/lite/include",
64  ]
65
66  defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ]
67  output_dir = "$root_out_dir/dev_tools"
68}
69