1# Copyright (c) 2023-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("plugin_kits_config") { 17 include_dirs = [ 18 "include", 19 "include/utils", 20 "../common/include", 21 "../../../common/native/include", 22 ] 23} 24 25ohos_shared_library("plugin_kits") { 26 sources = [ 27 "./src/basic_array_string_plugin.cpp", 28 "./src/basic_bool_plugin.cpp", 29 "./src/iplugin.cpp", 30 "./src/iplugin_manager.cpp", 31 "./src/ipolicy_manager.cpp", 32 "./src/iwatermark_observer_manager.cpp", 33 "./src/utils/array_int_serializer.cpp", 34 "./src/utils/array_string_serializer.cpp", 35 "./src/utils/bool_serializer.cpp", 36 "./src/utils/cjson_serializer.cpp", 37 "./src/utils/func_code_utils.cpp", 38 "./src/utils/int_serializer.cpp", 39 "./src/utils/long_serializer.cpp", 40 "./src/utils/map_string_serializer.cpp", 41 "./src/utils/string_serializer.cpp", 42 "./src/utils/uint_serializer.cpp", 43 ] 44 45 version_script = "libplugin_kits.map" 46 47 public_configs = [ ":plugin_kits_config" ] 48 49 configs = [ "../../../common/config:coverage_flags" ] 50 51 deps = [ "../../../common/native:edm_commom" ] 52 53 external_deps = [ 54 "cJSON:cjson", 55 "c_utils:utils", 56 "hilog:libhilog", 57 "image_framework:image_native", 58 "init:libbegetutil", 59 "ipc:ipc_single", 60 ] 61 62 sanitize = { 63 boundary_sanitize = true 64 cfi = true 65 cfi_cross_dso = true 66 debug = false 67 integer_overflow = true 68 ubsan = true 69 } 70 branch_protector_ret = "pac_ret" 71 subsystem_name = "customization" 72 part_name = "enterprise_device_management" 73} 74