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/interfaces/innerkits" 18SRC_PATH = "$ROOT/src" 19INCLUDE_PATH = "$ROOT/include" 20 21config("edmservice_kits_config") { 22 include_dirs = [ 23 "//utils/native/base/include", 24 "include", 25 "$SUBSYSTEM_DIR/common/native/include", 26 ] 27} 28 29ohos_shared_library("edmservice_kits") { 30 public_configs = [ ":edmservice_kits_config" ] 31 32 sources = [ 33 "$INCLUDE_PATH/device_settings_manager.h", 34 "$INCLUDE_PATH/ent_info.h", 35 "$INCLUDE_PATH/enterprise_device_mgr_proxy.h", 36 "$SRC_PATH/device_settings_manager.cpp", 37 "$SRC_PATH/ent_info.cpp", 38 "$SRC_PATH/enterprise_device_mgr_proxy.cpp", 39 ] 40 41 external_deps = [ 42 "ability_base:want", 43 "ability_runtime:intent", 44 "bundle_framework:appexecfwk_base", 45 "bundle_framework:appexecfwk_core", 46 "ipc:ipc_core", 47 "os_account_standard:libaccountkits", 48 "safwk:system_ability_fwk", 49 "samgr_standard:samgr_proxy", 50 ] 51 52 if (is_standard_system) { 53 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 54 } else { 55 external_deps += [ "hilog:libhilog" ] 56 } 57 58 deps = [ "//utils/native/base:utils" ] 59 60 subsystem_name = "customization" 61 part_name = "enterprise_device_management" 62} 63