1# Copyright (c) 2021-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") 15import("//foundation/communication/netmanager_ext/netmanager_ext_config.gni") 16 17group("common_target") { 18 deps = [ 19 ":net_event_report" 20 ] 21} 22 23config("netmgr_ext_common_config") { 24 include_dirs = [ 25 "event_report/include", 26 ] 27} 28 29ohos_shared_library("net_event_report") { 30 sanitize = { 31 cfi = true 32 cfi_cross_dso = true 33 blocklist = "./cfi_blocklist.txt" 34 debug = false 35 } 36 37 branch_protector_ret = "pac_ret" 38 39 cflags = common_cflags 40 41 cflags_cc = common_cflags 42 43 sources = [ "event_report/src/net_event_report.cpp" ] 44 45 public_configs = [ ":netmgr_ext_common_config" ] 46 47 external_deps = [ "hisysevent:libhisysevent" ] 48 49 part_name = "netmanager_ext" 50 subsystem_name = "communication" 51} 52