• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//base/customization/enterprise_device_management/edm.gni")
15import("//build/ohos.gni")
16
17config("tools_edm_config") {
18  include_dirs = [
19    "include",
20    "$SUBSYSTEM_DIR/common/native/include",
21    "$SUBSYSTEM_DIR/interfaces/inner_api/include",
22    "//utils/system/safwk/native/include",
23  ]
24}
25
26ohos_source_set("tools_edm_source_set") {
27  sources = [
28    "src/edm_command.cpp",
29    "src/main.cpp",
30    "src/shell_command.cpp",
31  ]
32
33  public_configs = [
34    ":tools_edm_config",
35    "//base/customization/enterprise_device_management/common/config:coverage_flags",
36  ]
37
38  cflags = []
39  if (target_cpu == "arm") {
40    cflags += [ "-DBINDER_IPC_32BIT" ]
41  }
42
43  external_deps = [
44    "ability_base:want",
45    "bundle_framework:appexecfwk_base",
46    "c_utils:utils",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49  ]
50
51  deps = [ "$EDM_INNERKITS_PATH:edmservice_kits" ]
52}
53
54ohos_executable("edm") {
55  deps = [ ":tools_edm_source_set" ]
56
57  install_enable = true
58
59  subsystem_name = "customization"
60  part_name = "enterprise_device_management"
61}
62
63group("tools_edm") {
64  deps = [ ":edm" ]
65}
66