• 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      "//base/customization/enterprise_device_management/services/edm/include",
22      "//base/customization/enterprise_device_management/interfaces/inner_api/common/include",
23      "//base/customization/enterprise_device_management/services/edm/include/utils",
24      "//base/customization/enterprise_device_management/services/edm_plugin/include",
25      "//third_party/jsoncpp/include",
26    ]
27    if (defined(invoker.include_dirs)) {
28      include_dirs += invoker.include_dirs
29    }
30
31    if (defined(invoker.public_configs)) {
32      public_configs += invoker.public_configs
33    }
34
35    if (!defined(deps)) {
36      deps = []
37    }
38    deps += [ "//base/customization/enterprise_device_management/services/edm:edmservice" ]
39
40    if (defined(invoker.deps)) {
41      deps += invoker.deps
42    }
43
44    if (defined(invoker.external_deps)) {
45      external_deps += invoker.external_deps
46    }
47
48    if (is_standard_system) {
49      external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
50    } else {
51      external_deps += [ "hilog:libhilog" ]
52    }
53
54    relative_install_dir = "edm_plugin"
55    subsystem_name = "customization"
56    part_name = "enterprise_device_management"
57  }
58}
59