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} 19import("//foundation/distributedhardware/device_manager/device_manager.gni") 20 21if (defined(ohos_lite)) { 22 shared_library("devicemanagerext_pin_auth") { 23 include_dirs = [ 24 "include", 25 "include/lite", 26 "${common_path}/include", 27 "${ext_path}/pin_auth/include/ability", 28 "${servicesimpl_path}/include/dependency/timer", 29 "${servicesimpl_path}/include/config", 30 "${servicesimpl_path}/include/adapter", 31 "${servicesimpl_path}/include/authentication", 32 "${servicesimpl_path}/include/authentication/showconfirm/lite", 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/lite", 42 "${utils_path}/include", 43 "${utils_path}/include/ipc/lite", 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/lite", 51 "//third_party/json/include", 52 "//commonlibrary/c_utils/base/include", 53 "//utils/system/safwk/native/include", 54 "//base/notification/ces_lite/frameworks/core/include", 55 "//base/notification/ces_lite/interfaces/innerkits/native/include", 56 "//base/security/device_auth/interfaces/innerkits", 57 ] 58 59 sources = [ 60 "src/ability/lite/dm_ability_manager.cpp", 61 "src/lite/pin_auth_ui.cpp", 62 "src/pin_auth.cpp", 63 ] 64 65 deps = [ 66 "${common_path}/include/show_confirm_dialog/dialog_ui/js:dialog_js_files_etc", 67 "${innerkits_path}/native_cpp:devicemanagersdk", 68 "${utils_path}:devicemanagerutils", 69 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 70 "//commonlibrary/utils_lite:utils", 71 "//foundation/communication/dsoftbus/sdk:softbus_client", 72 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 73 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 74 "//third_party/bounds_checking_function:libsec_shared", 75 "//third_party/mbedtls:mbedtls_shared", 76 ] 77 78 defines = [ 79 "LITE_DEVICE", 80 "HI_LOG_ENABLE", 81 "DH_LOG_TAG=\"devicemanagerext\"", 82 "LOG_DOMAIN=0xD004100", 83 ] 84 } 85} else { 86 ohos_shared_library("devicemanagerext_pin_auth") { 87 include_dirs = [ 88 "include", 89 "include/standard", 90 "${common_path}/include", 91 "${ext_path}/pin_auth/include/ability", 92 "${servicesimpl_path}/include/dependency/timer", 93 "${servicesimpl_path}/include/config", 94 "${servicesimpl_path}/include/adapter", 95 "${servicesimpl_path}/include/authentication", 96 "${servicesimpl_path}/include/authentication/showconfirm/standard", 97 "${servicesimpl_path}/include/ability", 98 "${servicesimpl_path}/include/devicestate", 99 "${servicesimpl_path}/include/discovery", 100 "${servicesimpl_path}/include/dependency/commonevent", 101 "${servicesimpl_path}/include/dependency/hichain", 102 "${servicesimpl_path}/include/dependency/softbus", 103 "${servicesimpl_path}/include/dependency/timer", 104 "${services_path}/include/ipc", 105 "${services_path}/include/ipc/standard", 106 "${utils_path}/include", 107 "${utils_path}/include/ipc/standard", 108 "${servicesimpl_path}/include", 109 "${innerkits_path}/native_cpp/include", 110 "${common_path}/include/ipc", 111 "${common_path}/include/ipc/model", 112 "${innerkits_path}/native_cpp/include", 113 "${innerkits_path}/native_cpp/include/ipc", 114 "${innerkits_path}/native_cpp/include/ipc/standard", 115 "//third_party/json/include", 116 "//commonlibrary/c_utils/base/include", 117 "//utils/system/safwk/native/include", 118 "//base/notification/common_event_service/frameworks/core/include", 119 "//base/notification/common_event_service/interfaces/innerkits/native/include", 120 "//base/security/device_auth/interfaces/innerkits", 121 "//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include", 122 "//foundation/communication/dsoftbus/interfaces/inner_kits/transport", 123 "//foundation/communication/dsoftbus/interfaces/kits/bus_center", 124 "//foundation/communication/dsoftbus/interfaces/kits/common", 125 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 126 "//base/global/resource_management/interfaces/inner_api/include", 127 "//foundation/communication/dsoftbus/interfaces/kits/transport", 128 ] 129 130 sources = [ 131 "src/ability/standard/dm_ability_manager.cpp", 132 "src/pin_auth.cpp", 133 "src/standard/pin_auth_ui.cpp", 134 ] 135 136 deps = [ 137 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 138 "${innerkits_path}/native_cpp:devicemanagersdk", 139 "//foundation/distributedhardware/device_manager/services/implementation:devicemanagerserviceimpl", 140 ] 141 142 external_deps = [ 143 "ability_base:want", 144 "init:libbegetutil", 145 ] 146 147 defines = [ 148 "HI_LOG_ENABLE", 149 "DH_LOG_TAG=\"devicemanagerext\"", 150 "LOG_DOMAIN=0xD004100", 151 ] 152 153 subsystem_name = "distributedhardware" 154 155 part_name = "device_manager" 156 } 157} 158