1 2list(APPEND SOURCE 3 src/api/api_lib.c 4 src/api/api_msg.c 5 src/api/err.c 6 src/api/netbuf.c 7 src/api/netdb.c 8 src/api/netifapi.c 9 src/api/sockets.c 10 src/api/tcpip.c 11 src/core/def.c 12 src/core/dhcp.c 13 src/core/dns.c 14 src/core/init.c 15 src/core/mem.c 16 src/core/memp.c 17 src/core/netif.c 18 src/core/pbuf.c 19 src/core/raw.c 20 src/core/stats.c 21 src/core/sys.c 22 src/core/tcp_in.c 23 src/core/tcp_out.c 24 src/core/tcp.c 25 src/core/timers.c 26 src/core/udp.c 27 src/core/ipv4/autoip.c 28 src/core/ipv4/icmp.c 29 src/core/ipv4/igmp.c 30 src/core/ipv4/inet_chksum.c 31 src/core/ipv4/inet.c 32 src/core/ipv4/ip.c 33 src/core/ipv4/ip_addr.c 34 src/core/ipv4/ip_frag.c 35 #src/core/ipv6/icmp6.c 36 #src/core/ipv6/inet6.c 37 #src/core/ipv6/ip6_addr.c 38 #src/core/ipv6/ip6.c 39 src/core/snmp/asn1_dec.c 40 src/core/snmp/asn1_enc.c 41 src/core/snmp/mib_structs.c 42 src/core/snmp/mib2.c 43 src/core/snmp/msg_in.c 44 src/core/snmp/msg_out.c) 45 46add_library(lwip ${SOURCE}) 47 48target_include_directories(lwip 49 PUBLIC src/include 50 PUBLIC src/include/ipv4) 51 52add_dependencies(lwip bugcodes xdk) 53add_pch(lwip precomp.h SOURCE) 54 55if(NOT MSVC) 56 target_compile_options(lwip PRIVATE -fno-builtin-malloc -fno-builtin-free) 57endif() 58