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") 15 16config("edm_config") { 17 cflags = [ "-Wno-error=implicit-fallthrough" ] 18 include_dirs = [ 19 "include", 20 "include/connection", 21 "include/database", 22 "../../framework/extension/include", 23 ] 24} 25 26ohos_shared_library("edmservice") { 27 sources = [ 28 "./src/ability_manager_death_recipient.cpp", 29 "./src/admin.cpp", 30 "./src/admin_manager.cpp", 31 "./src/admin_policies_storage_rdb.cpp", 32 "./src/application_state_observer.cpp", 33 "./src/connection/enterprise_admin_connection.cpp", 34 "./src/connection/enterprise_admin_proxy.cpp", 35 "./src/connection/enterprise_bundle_connection.cpp", 36 "./src/connection/enterprise_conn_manager.cpp", 37 "./src/database/edm_rdb_data_manager.cpp", 38 "./src/database/edm_rdb_open_callback.cpp", 39 "./src/device_policies_storage_rdb.cpp", 40 "./src/enterprise_device_mgr_ability.cpp", 41 "./src/enterprise_device_mgr_stub.cpp", 42 "./src/permission_manager.cpp", 43 "./src/plugin_manager.cpp", 44 "./src/policy_manager.cpp", 45 "./src/super_admin.cpp", 46 ] 47 public_configs = [ 48 ":edm_config", 49 "../../common/config:coverage_flags", 50 ] 51 52 defines = [] 53 54 if (target_cpu == "arm64") { 55 defines += [ "_ARM64_" ] 56 print("defines _ARM64_") 57 } 58 59 external_deps = [ 60 "ability_base:want", 61 "ability_runtime:ability_manager", 62 "ability_runtime:app_manager", 63 "access_token:libaccesstoken_sdk", 64 "access_token:libtokenid_sdk", 65 "bundle_framework:appexecfwk_base", 66 "bundle_framework:appexecfwk_core", 67 "c_utils:utils", 68 "common_event_service:cesfwk_innerkits", 69 "hilog:libhilog", 70 "init:libbegetutil", 71 "ipc:ipc_core", 72 "os_account:os_account_innerkits", 73 "relational_store:native_rdb", 74 "safwk:system_ability_fwk", 75 "samgr:samgr_proxy", 76 ] 77 78 deps = [ 79 "../../common/native:edm_commom", 80 "../../interfaces/inner_api:edmservice_kits", 81 "../../interfaces/inner_api/plugin_kits:plugin_kits", 82 "//third_party/jsoncpp:jsoncpp", 83 ] 84 85 shlib_type = "sa" 86 87 subsystem_name = "customization" 88 part_name = "enterprise_device_management" 89} 90