• 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
16SUBSYSTEM_DIR = "//base/customization/enterprise_device_management"
17ROOT = "${SUBSYSTEM_DIR}/framework/extension"
18SRC_PATH = "${ROOT}/src"
19
20config("enterprise_admin_config") {
21  include_dirs = [ "${SUBSYSTEM_DIR}/common/native/include" ]
22}
23
24config("enterprise_admin_public_config") {
25  include_dirs = [ "include" ]
26}
27
28ohos_shared_library("enterprise_admin_extension") {
29  sources = [
30    "$SRC_PATH/enterprise_admin_extension.cpp",
31    "$SRC_PATH/enterprise_admin_extension_context.cpp",
32    "$SRC_PATH/enterprise_admin_stub.cpp",
33    "$SRC_PATH/enterprise_admin_stub_impl.cpp",
34    "$SRC_PATH/js_enterprise_admin_extension.cpp",
35    "$SRC_PATH/js_enterprise_admin_extension_context.cpp",
36  ]
37
38  configs = [
39    ":enterprise_admin_config",
40    "//base/customization/enterprise_device_management/common/config:coverage_flags",
41  ]
42
43  public_configs = [ ":enterprise_admin_public_config" ]
44
45  external_deps = [
46    "ability_runtime:ability_context_native",
47    "ability_runtime:abilitykit_native",
48    "ability_runtime:app_context",
49    "ability_runtime:runtime",
50    "c_utils:utils",
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53  ]
54
55  subsystem_name = "customization"
56  part_name = "enterprise_device_management"
57}
58
59ohos_shared_library("enterprise_admin_extension_module") {
60  include_dirs = [ "include" ]
61
62  sources = [ "$SRC_PATH/enterprise_admin_extension_module_loader.cpp" ]
63
64  configs = [ "//base/customization/enterprise_device_management/common/config:coverage_flags" ]
65  deps = [ ":enterprise_admin_extension" ]
66
67  external_deps = [
68    "ability_runtime:abilitykit_native",
69    "ability_runtime:runtime",
70  ]
71
72  relative_install_dir = "extensionability/"
73  subsystem_name = "customization"
74  part_name = "enterprise_device_management"
75}
76