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