• 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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/component/lite_component.gni")
16} else {
17  import("//build/ohos.gni")
18}
19
20import("//foundation/distributedhardware/device_manager/device_manager.gni")
21
22if (defined(ohos_lite)) {
23} else {
24  ohos_shared_library("devicemanagerext_no_interaction_auth") {
25    include_dirs = [
26      "include",
27      "${common_path}/include",
28      "${ext_path}/pin_auth/include/ability",
29      "${servicesimpl_path}/include/dependency/timer",
30      "${servicesimpl_path}/include/config",
31      "${servicesimpl_path}/include/adapter",
32      "${servicesimpl_path}/include/authentication",
33      "${servicesimpl_path}/include/ability",
34      "${servicesimpl_path}/include/devicestate",
35      "${servicesimpl_path}/include/discovery",
36      "${servicesimpl_path}/include/dependency/commonevent",
37      "${servicesimpl_path}/include/dependency/hichain",
38      "${servicesimpl_path}/include/dependency/softbus",
39      "${servicesimpl_path}/include/dependency/timer",
40      "${services_path}/include/ipc",
41      "${services_path}/include/ipc/standard",
42      "${utils_path}/include",
43      "${utils_path}/include/ipc/standard",
44      "${servicesimpl_path}/include",
45      "${innerkits_path}/native_cpp/include",
46      "${common_path}/include/ipc",
47      "${common_path}/include/ipc/model",
48      "${innerkits_path}/native_cpp/include",
49      "${innerkits_path}/native_cpp/include/ipc",
50      "${innerkits_path}/native_cpp/include/ipc/standard",
51      "//third_party/json/include",
52      "//commonlibrary/c_utils/base/include",
53      "//utils/system/safwk/native/include",
54      "//base/notification/common_event_service/frameworks/core/include",
55      "//base/notification/common_event_service/interfaces/innerkits/native/include",
56      "//base/security/device_auth/interfaces/innerkits",
57    ]
58
59    sources = [
60      "src/ability/standard/dm_ability_manager.cpp",
61      "src/no_interaction_auth.cpp",
62    ]
63
64    deps = [
65      "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
66      "${ability_runtime_services_path}/abilitymgr:abilityms",
67      "${innerkits_path}/native_cpp:devicemanagersdk",
68      "${utils_path}:devicemanagerutils",
69      "//base/security/device_auth/services:deviceauth_sdk",
70      "//foundation/distributedhardware/device_manager/services/implementation:devicemanagerserviceimpl",
71      "//foundation/distributedhardware/device_manager/services/service:devicemanagerservice",
72    ]
73
74    external_deps = [
75      "ability_base:want",
76      "bundle_framework:appexecfwk_base",
77      "bundle_framework:appexecfwk_core",
78      "c_utils:utils",
79      "common_event_service:cesfwk_core",
80      "common_event_service:cesfwk_innerkits",
81      "dsoftbus:softbus_client",
82      "hiviewdfx_hilog_native:libhilog",
83      "init:libbeget_proxy",
84      "init:libbegetutil",
85      "ipc:ipc_core",
86      "safwk:system_ability_fwk",
87      "samgr:samgr_proxy",
88    ]
89
90    defines = [
91      "HI_LOG_ENABLE",
92      "DH_LOG_TAG=\"devicemanagerext\"",
93      "LOG_DOMAIN=0xD004100",
94    ]
95
96    subsystem_name = "distributedhardware"
97
98    part_name = "device_manager"
99  }
100}
101