• 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_fm_config") {
18  include_dirs = [
19    "${aafwk_path}/interfaces/innerkits/want/include",
20    "${aafwk_path}/interfaces/innerkits/base/include",
21    "${aafwk_path}/services/common/include",
22    "${aafwk_path}/tools/aa/include",
23    "${appexecfwk_path}/common/log/include",
24    "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include",
25    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
26    "//utils/native/base/include",
27    "//utils/system/safwk/native/include",
28    "include",
29  ]
30}
31
32ohos_source_set("tools_fm_source_set") {
33  sources = [
34    "${aafwk_path}/tools/aa/src/shell_command.cpp",
35    "src/fms_command.cpp",
36    "src/main.cpp",
37  ]
38
39  defines = [
40    "APP_LOG_TAG = \"FmsTool\"",
41    "LOG_DOMAIN = 0xD001152",
42  ]
43
44  public_configs = [ ":tools_fm_config" ]
45
46  cflags = []
47  if (target_cpu == "arm") {
48    cflags += [ "-DBINDER_IPC_32BIT" ]
49  }
50
51  deps = [
52    "${aafwk_path}/interfaces/innerkits/want:want",
53    "${appexecfwk_path}/common:libappexecfwk_common",
54    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
55    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
56    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
57    "//utils/native/base:utils",
58  ]
59
60  external_deps = [
61    "hiviewdfx_hilog_native:libhilog",
62    "ipc:ipc_core",
63  ]
64}
65
66ohos_executable("fm") {
67  deps = [ ":tools_fm_source_set" ]
68
69  install_enable = true
70
71  subsystem_name = "appexecfwk"
72  part_name = "appexecfwk_standard"
73}
74
75group("tools_fm") {
76  deps = [ ":fm" ]
77}
78