1# Copyright (c) 2024 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("tools_edm_config") { 17 include_dirs = [ "include" ] 18} 19 20ohos_source_set("tools_edm_source_set") { 21 sources = [ 22 "src/edm_command.cpp", 23 "src/main.cpp", 24 "src/shell_command.cpp", 25 ] 26 27 public_configs = [ 28 ":tools_edm_config", 29 "../../common/config:coverage_flags", 30 ] 31 32 cflags = [] 33 if (target_cpu == "arm") { 34 cflags += [ "-DBINDER_IPC_32BIT" ] 35 } 36 37 external_deps = [ 38 "ability_base:want", 39 "bundle_framework:appexecfwk_base", 40 "c_utils:utils", 41 "hilog:libhilog", 42 "ipc:ipc_core", 43 ] 44 45 deps = [ "../../interfaces/inner_api:edmservice_kits" ] 46 47 sanitize = { 48 boundary_sanitize = true 49 cfi = true 50 cfi_cross_dso = true 51 debug = false 52 integer_overflow = true 53 ubsan = true 54 } 55 subsystem_name = "customization" 56 part_name = "enterprise_device_management" 57} 58 59ohos_executable("edm") { 60 deps = [ ":tools_edm_source_set" ] 61 external_deps = [ "hilog:libhilog" ] 62 63 install_enable = true 64 65 sanitize = { 66 boundary_sanitize = true 67 cfi = true 68 cfi_cross_dso = true 69 debug = false 70 integer_overflow = true 71 ubsan = true 72 } 73 subsystem_name = "customization" 74 part_name = "enterprise_device_management" 75} 76 77group("tools_edm") { 78 deps = [ ":edm" ] 79} 80