SConscript 1.7 KB
Newer Older
H
hduffddybz 已提交
1 2 3
from building import *

src = Split("""
4
src/arch/sys_arch.c
H
hduffddybz 已提交
5 6 7 8 9 10 11 12 13 14
src/api/api_lib.c
src/api/api_msg.c
src/api/err.c
src/api/netbuf.c
src/api/netdb.c
src/api/netifapi.c
src/api/sockets.c
src/api/tcpip.c
src/core/def.c
src/core/dns.c
15
src/core/inet_chksum.c
H
hduffddybz 已提交
16
src/core/init.c
17
src/core/ip.c
H
hduffddybz 已提交
18 19 20 21 22 23 24 25 26
src/core/memp.c
src/core/netif.c
src/core/pbuf.c
src/core/raw.c
src/core/stats.c
src/core/sys.c
src/core/tcp.c
src/core/tcp_in.c
src/core/tcp_out.c
27
src/core/timeouts.c
H
hduffddybz 已提交
28
src/core/udp.c
29
src/netif/ethernet.c
30
src/netif/ethernetif.c
31
src/netif/lowpan6.c
32
src/netif/slipif.c
33 34 35
""")

ipv4_src = Split("""
H
hduffddybz 已提交
36
src/core/ipv4/autoip.c
37 38
src/core/ipv4/dhcp.c
src/core/ipv4/etharp.c
H
hduffddybz 已提交
39 40 41 42
src/core/ipv4/icmp.c
src/core/ipv4/igmp.c
src/core/ipv4/ip4.c
src/core/ipv4/ip4_addr.c
43
src/core/ipv4/ip4_frag.c
44 45 46
""")

ipv6_src = Split("""
H
hduffddybz 已提交
47 48 49 50 51
src/core/ipv6/dhcp6.c
src/core/ipv6/ethip6.c
src/core/ipv6/icmp6.c
src/core/ipv6/inet6.c
src/core/ipv6/ip6.c
52
src/core/ipv6/ip6_addr.c
H
hduffddybz 已提交
53 54 55 56 57
src/core/ipv6/ip6_frag.c
src/core/ipv6/mld6.c
src/core/ipv6/nd6.c
""")

58
snmp_src = Glob("src/apps/snmp/*.c")
H
hduffddybz 已提交
59

60 61 62
ppp_src = Glob("src/netif/ppp/*.c") + Glob("src/netif/ppp/polarssl/*c")

src = src + ipv4_src
H
hduffddybz 已提交
63 64 65 66 67 68 69 70 71 72

# The set of source files associated with this SConscript file.
path = [GetCurrentDir() + '/src',
    GetCurrentDir() + '/src/include',
    GetCurrentDir() + '/src/include/ipv4',
    GetCurrentDir() + '/src/arch/include',
    GetCurrentDir() + '/src/include/netif']

if GetDepend(['RT_LWIP_SNMP']):
    src += snmp_src
73
    path += [GetCurrentDir() + '/src/apps/snmp']
H
hduffddybz 已提交
74 75 76 77 78

if GetDepend(['RT_LWIP_PPP']):
    src += ppp_src
    path += [GetCurrentDir() + '/src/netif/ppp']

79
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'RT_USING_LWIP200'], CPPPATH = path)
H
hduffddybz 已提交
80 81

Return('group')