• 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("//build/ohos.gni")
15
16template("edm_plugin_shared_library") {
17  ohos_shared_library("${target_name}") {
18    forward_variables_from(invoker, "*")
19
20    include_dirs += [
21      "//utils/native/base/include",
22      "//utils/system/safwk/native/include",
23      "//base/customization/enterprise_device_management/services/edm/include",
24      "//base/customization/enterprise_device_management/interfaces/innerkits/include",
25      "//base/customization/enterprise_device_management/services/edm/include/utils",
26      "//base/customization/enterprise_device_management/services/edm_plugin/include",
27      "//utils/native/base:utils_config",
28      "//third_party/jsoncpp/include",
29    ]
30    if (defined(invoker.include_dirs)) {
31      include_dirs += invoker.include_dirs
32    }
33
34    if (defined(invoker.public_configs)) {
35      public_configs += invoker.public_configs
36    }
37
38    if (!defined(deps)) {
39      deps = []
40    }
41    deps += [
42      "//base/customization/enterprise_device_management/services/edm:edmservice",
43      "//utils/native/base:utils",
44    ]
45
46    if (defined(invoker.deps)) {
47      deps += invoker.deps
48    }
49
50    external_deps += [
51      "bundle_framework:appexecfwk_base",
52      "ipc:ipc_core",
53      "safwk:system_ability_fwk",
54      "samgr_standard:samgr_proxy",
55    ]
56    if (defined(invoker.external_deps)) {
57      external_deps += invoker.external_deps
58    }
59
60    if (is_standard_system) {
61      external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
62    } else {
63      external_deps += [ "hilog:libhilog" ]
64    }
65
66    relative_install_dir = "edm_plugin"
67    subsystem_name = "customization"
68    part_name = "enterprise_device_management"
69  }
70}
71