• 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("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17config("tools_fm_config") {
18  include_dirs = [
19    "${ability_base_kits_path}/want/include",
20    "${ability_runtime_services_path}/common/include",
21    "${ability_runtime_path}/tools/aa/include",
22    "${ability_runtime_services_path}/common/include",
23    "${distributedschedule_path}/samgr/interfaces/innerkits/samgr_proxy/include",
24    "include",
25  ]
26}
27
28ohos_source_set("tools_fm_source_set") {
29  sources = [
30    "${ability_runtime_path}/tools/aa/src/shell_command.cpp",
31    "src/fms_command.cpp",
32    "src/main.cpp",
33  ]
34
35  defines = [ "AMS_LOG_TAG = \"FmsTool\"" ]
36
37  public_configs = [ ":tools_fm_config" ]
38
39  cflags = []
40  if (target_cpu == "arm") {
41    cflags += [ "-DBINDER_IPC_32BIT" ]
42  }
43
44  deps = []
45
46  external_deps = [
47    "ability_base:want",
48    "ability_runtime:app_manager",
49    "bundle_framework:appexecfwk_base",
50    "bundle_framework:appexecfwk_core",
51    "c_utils:utils",
52    "form_fwk:form_manager",
53    "hiviewdfx_hilog_native:libhilog",
54    "ipc:ipc_core",
55    "samgr:samgr_proxy",
56  ]
57
58  subsystem_name = "ability"
59  part_name = "ability_tools"
60}
61
62ohos_executable("fm") {
63  deps = [ ":tools_fm_source_set" ]
64
65  install_enable = true
66
67  subsystem_name = "ability"
68  part_name = "ability_tools"
69}
70
71group("tools_fm") {
72  deps = [ ":fm" ]
73}
74