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") 15import("//build/ohos_var.gni") 16import("//developtools/profiler/build/config.gni") 17import("lwip.gni") 18 19ohos_shared_library("liblwip") { 20 sources = [ 21 "src/core/altcp_alloc.c", 22 "src/core/altcp_alloc.c", 23 "src/core/altcp_tcp.c", 24 "src/core/def.c", 25 "src/core/dns.c", 26 "src/core/inet_chksum.c", 27 "src/core/init.c", 28 "src/core/ip.c", 29 "src/core/ipv4/autoip.c", 30 "src/core/ipv4/dhcp.c", 31 "src/core/ipv4/etharp.c", 32 "src/core/ipv4/icmp.c", 33 "src/core/ipv4/igmp.c", 34 "src/core/ipv4/ip4.c", 35 "src/core/ipv4/ip4_addr.c", 36 "src/core/ipv4/ip4_frag.c", 37 "src/core/ipv6/dhcp6.c", 38 "src/core/ipv6/ethip6.c", 39 "src/core/ipv6/icmp6.c", 40 "src/core/ipv6/inet6.c", 41 "src/core/ipv6/ip6.c", 42 "src/core/ipv6/ip6_addr.c", 43 "src/core/ipv6/ip6_frag.c", 44 "src/core/ipv6/mld6.c", 45 "src/core/ipv6/nd6.c", 46 "src/core/lowpower.c", 47 "src/core/mem.c", 48 "src/core/memp.c", 49 "src/core/net_group.c", 50 "src/core/netif.c", 51 "src/core/pbuf.c", 52 "src/core/raw.c", 53 "src/core/stats.c", 54 "src/core/sys.c", 55 "src/core/tcp.c", 56 "src/core/tcp_out.c", 57 "src/core/timeouts.c", 58 "src/core/udp.c", 59 ] 60 configs = [ ":libext2fs-defaults" ] 61 62 deps = [ ":libext2_com_err" ] 63 64 cflags = [ "-Wno-unused-parameter" ] 65 include_dirs = [ "//third_party/lwip/include" ] 66 install_enable = true 67 subsystem_name = "thirdparty" 68 part_name = "lwip" 69 install_images = [ 70 "system", 71 "updater", 72 ] 73} 74