1# Copyright (c) 2025 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/config/components/ets_frontend/ets2abc_config.gni") 15import("//build/ohos.gni") 16import("//foundation/communication/netmanager_base/netmanager_base_config.gni") 17 18ohos_shared_library("connection_ani") { 19 sanitize = { 20 cfi = true 21 cfi_cross_dso = true 22 boundary_sanitize = true 23 all_ubsan = true 24 debug = false 25 } 26 27 branch_protector_ret = "pac_ret" 28 29 include_dirs = [ "include" ] 30 31 sources = [ "src/connection_ani.cpp" ] 32 33 deps = [ 34 "$INNERKITS_ROOT/netconnclient:net_conn_manager_if", 35 "$NETMANAGER_BASE_ROOT/utils:net_manager_common", 36 ] 37 external_deps = [ 38 "c_utils:utils", 39 "runtime_core:ani", 40 ] 41 42 part_name = "netmanager_base" 43 subsystem_name = "communication" 44 output_extension = "so" 45} 46 47generate_static_abc("connection") { 48 base_url = "./ets" 49 files = [ "ets/@ohos.net.connection.ets" ] 50 is_boot_abc = "True" 51 device_dst_file = "/system/framework/connection.abc" 52} 53 54ohos_prebuilt_etc("connection_etc") { 55 source = "$target_out_dir/connection.abc" 56 module_install_dir = "framework" 57 part_name = "netmanager_base" 58 subsystem_name = "communication" 59 deps = [ ":connection" ] 60} 61