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/ohos.gni") 15import("//foundation/communication/netmanager_ext/netmanager_ext_config.gni") 16 17ohos_shared_library("eap") { 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 boundary_sanitize = true 22 ubsan = true 23 debug = false 24 } 25 26 branch_protector_ret = "pac_ret" 27 28 include_dirs = [ 29 "$NETMANAGER_EXT_ROOT/utils/log/include", 30 ] 31 32 sources = [ 33 "eap_event_mgr.cpp", 34 "eap_module.cpp", 35 "eap_napi_event.cpp", 36 "$ETHERNETMANAGER_INNERKITS_SOURCE_DIR/src/eap_data.cpp", 37 ] 38 39 cflags = [ 40 "-fstack-protector-strong", 41 "-D_FORTIFY_SOURCE=2", 42 "-O2", 43 ] 44 45 cflags_cc = [ 46 "-fstack-protector-strong", 47 "-D_FORTIFY_SOURCE=2", 48 "-O2", 49 ] 50 51 deps = [ "$EXT_INNERKITS_ROOT/ethernetclient:ethernet_manager_if" ] 52 53 external_deps = [ 54 "c_utils:utils", 55 "hilog:libhilog", 56 "ipc:ipc_core", 57 "napi:ace_napi", 58 "netmanager_base:napi_utils", 59 "netmanager_base:net_conn_manager_if", 60 "netmanager_base:net_manager_common", 61 "samgr:samgr_proxy", 62 ] 63 defines = [] 64 if (netmanager_ext_extensible_authentication) { 65 defines += [ "NET_EXTENSIBLE_AUTHENTICATION" ] 66 } 67 68 relative_install_dir = "module/net" 69 part_name = "netmanager_ext" 70 subsystem_name = "communication" 71}