[CMAKE]
[reactos.git] / reactos / lib / drivers / lwip / CMakeLists.txt
1
2 include_directories(
3 BEFORE include
4 ${REACTOS_SOURCE_DIR}/drivers/network/tcpip/include
5 ${REACTOS_SOURCE_DIR}/lib/drivers/lwip/src/include
6 ${REACTOS_SOURCE_DIR}/lib/drivers/lwip/src/include/ipv4)
7
8 include_directories(
9 src/include
10 src/include/ipv4)
11
12 list(APPEND SOURCE
13 src/rosip.c
14 src/rostcp.c
15 src/rosmem.c
16 src/sys_arch.c
17 src/api/api_lib.c
18 src/api/api_msg.c
19 src/api/err.c
20 src/api/netbuf.c
21 src/api/netdb.c
22 src/api/netifapi.c
23 src/api/sockets.c
24 src/api/tcpip.c
25 src/core/def.c
26 src/core/dhcp.c
27 src/core/dns.c
28 src/core/init.c
29 src/core/mem.c
30 src/core/memp.c
31 src/core/netif.c
32 src/core/pbuf.c
33 src/core/raw.c
34 src/core/stats.c
35 src/core/sys.c
36 src/core/tcp_in.c
37 src/core/tcp_out.c
38 src/core/tcp.c
39 src/core/timers.c
40 src/core/udp.c
41 src/core/ipv4/autoip.c
42 src/core/ipv4/icmp.c
43 src/core/ipv4/igmp.c
44 src/core/ipv4/inet_chksum.c
45 src/core/ipv4/inet.c
46 src/core/ipv4/ip.c
47 src/core/ipv4/ip_addr.c
48 src/core/ipv4/ip_frag.c
49 #src/core/ipv6/icmp6.c
50 #src/core/ipv6/inet6.c
51 #src/core/ipv6/ip6_addr.c
52 #src/core/ipv6/ip6.c
53 src/core/snmp/asn1_dec.c
54 src/core/snmp/asn1_enc.c
55 src/core/snmp/mib_structs.c
56 src/core/snmp/mib2.c
57 src/core/snmp/msg_in.c
58 src/core/snmp/msg_out.c
59 precomp.h)
60
61 add_library(lwip ${SOURCE})
62 add_dependencies(lwip bugcodes xdk)
63 add_pch(lwip precomp.h SOURCE)
64
65 if(NOT MSVC)
66 if(LTCG)
67 add_compile_flags("-fno-builtin-malloc -fno-builtin-free")
68 endif()
69 endif()