1# Copyright (c) 2022-2023 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") 15import("plugin.gni") 16 17edm_plugin_shared_library("datetime_manager_plugin") { 18 sources = [ "./src/set_datetime_plugin.cpp" ] 19 20 external_deps = [ 21 "ability_runtime:wantagent_innerkits", 22 "c_utils:utils", 23 "time_service:time_client", 24 ] 25} 26 27edm_plugin_shared_library("account_manager_plugin") { 28 sources = [ "./src/disallow_add_local_account_plugin.cpp" ] 29 30 external_deps = [ 31 "ability_runtime:wantagent_innerkits", 32 "c_utils:utils", 33 "os_account:os_account_innerkits", 34 ] 35} 36 37edm_plugin_shared_library("device_info_plugin") { 38 sources = [ 39 "./src/get_device_name_plugin.cpp", 40 "./src/get_device_serial_plugin.cpp", 41 "./src/get_display_version_plugin.cpp", 42 ] 43 44 deps = [ "../../common/native:edm_commom" ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "init:libbegetutil", 49 ] 50} 51 52edm_plugin_shared_library("device_control_plugin") { 53 sources = [ "./src/reset_factory_plugin.cpp" ] 54 55 external_deps = [ "c_utils:utils" ] 56 57 if (defined(global_parts_info) && 58 defined(global_parts_info.updater_update_service)) { 59 external_deps += [ "update_service:updateservicekits" ] 60 } else { 61 external_deps += [ "dupdate_engine:updateservicekits" ] 62 } 63} 64 65edm_plugin_shared_library("wifi_manager_plugin") { 66 include_dirs = [ "./include/utils" ] 67 68 sources = [ 69 "./src/is_wifi_active_plugin.cpp", 70 "./src/set_wifi_profile_plugin.cpp", 71 "./src/utils/wifi_device_config_serializer.cpp", 72 ] 73 74 deps = [ "../../common/native:edm_commom" ] 75 76 external_deps = [ 77 "c_utils:utils", 78 "wifi:wifi_sdk", 79 ] 80} 81 82edm_plugin_shared_library("network_manager_plugin") { 83 include_dirs = [ "./include/utils" ] 84 85 sources = [ 86 "./src/disabled_network_interface_plugin.cpp", 87 "./src/get_all_network_interfaces_plugin.cpp", 88 "./src/get_ip_address_plugin.cpp", 89 "./src/get_mac_plugin.cpp", 90 "./src/global_proxy_plugin.cpp", 91 "./src/iptables_rule_plugin.cpp", 92 "./src/utils/http_proxy_serializer.cpp", 93 ] 94 95 deps = [ "../../common/native:edm_commom" ] 96 97 external_deps = [ 98 "c_utils:utils", 99 "netmanager_base:net_conn_manager_if", 100 "netmanager_base:netsys_controller", 101 "netmanager_ext:ethernet_manager_if", 102 ] 103} 104 105edm_plugin_shared_library("bundle_manager_plugin") { 106 include_dirs = [ "./include/utils" ] 107 108 sources = [ 109 "./src/allowed_install_bundles_plugin.cpp", 110 "./src/bundle_install_plugin.cpp", 111 "./src/disallowed_install_bundles_plugin.cpp", 112 "./src/disallowed_uninstall_bundles_plugin.cpp", 113 "./src/install_plugin.cpp", 114 "./src/uninstall_plugin.cpp", 115 "./src/utils/install_param_serializer.cpp", 116 "./src/utils/installer_callback.cpp", 117 "./src/utils/uninstall_param_serializer.cpp", 118 ] 119 120 deps = [ "../../common/native:edm_commom" ] 121 122 external_deps = [ 123 "bundle_framework:appexecfwk_base", 124 "bundle_framework:appexecfwk_core", 125 "c_utils:utils", 126 "ipc:ipc_core", 127 ] 128} 129 130edm_plugin_shared_library("disallow_modify_datetime_plugin") { 131 sources = [ "./src/disallow_modify_datetime_plugin.cpp" ] 132 133 deps = [ "../../common/native:edm_commom" ] 134 135 external_deps = [ 136 "c_utils:utils", 137 "ipc:ipc_core", 138 ] 139} 140 141edm_plugin_shared_library("application_manager_plugin") { 142 sources = [ "./src/disallowed_running_bundles_plugin.cpp" ] 143 144 deps = [ "../../common/native:edm_commom" ] 145 146 external_deps = [ 147 "bundle_framework:appexecfwk_base", 148 "bundle_framework:appexecfwk_core", 149 "c_utils:utils", 150 "ipc:ipc_core", 151 ] 152} 153 154edm_plugin_shared_library("device_settings_plugin") { 155 sources = [ 156 "./src/get_screen_off_time_plugin.cpp", 157 "./src/user_cert_plugin.cpp", 158 ] 159 160 deps = [ "../../common/native:edm_commom" ] 161 162 external_deps = [ 163 "c_utils:utils", 164 "certificate_manager:cert_manager_sdk", 165 ] 166} 167 168edm_plugin_shared_library("usb_manager_plugin") { 169 sources = [ "./src/usb_read_only_plugin.cpp" ] 170 171 deps = [ "../../common/native:edm_commom" ] 172 173 external_deps = [ "init:libbegetutil" ] 174} 175 176edm_plugin_shared_library("restrictions_plugin") { 177 sources = [ 178 "./src/disable_hdc_plugin.cpp", 179 "./src/disable_printer_plugin.cpp", 180 ] 181 182 external_deps = [ 183 "c_utils:utils", 184 "init:libbegetutil", 185 ] 186} 187 188edm_plugin_shared_library("browser_plugin") { 189 sources = [ "./src/set_browser_policies_plugin.cpp" ] 190 191 deps = [ "../../common/native:edm_commom" ] 192 193 external_deps = [ "c_utils:utils" ] 194} 195