forked from RT-Thread-packages/wiznet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
33 lines (24 loc) · 661 Bytes
/
SConscript
File metadata and controls
33 lines (24 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from building import *
cwd = GetCurrentDir()
src = Split('''
src/wiz_af_inet.c
src/wiz_device.c
src/wiz_socket.c
src/wiz.c
''')
if GetDepend(['WIZ_USING_PING']):
src += Glob('src/wiz_ping.c')
src += Glob('ioLibrary/Ethernet/*.c')
src += Glob('ioLibrary/Internet/DNS/*.c')
if GetDepend(['WIZ_USING_DHCP']):
src += Glob('ioLibrary/Internet/DHCP/*.c')
if GetDepend(['WIZ_USING_W5500']):
src += Glob('ioLibrary/Ethernet/W5500/*.c')
CPPPATH = [
cwd + '/inc',
cwd + '/ioLibrary',
cwd + '/ioLibrary/Ethernet',
cwd + '/ioLibrary/Internet',
]
group = DefineGroup('WIZnet', src, depend = ['PKG_USING_WIZNET'], CPPPATH = CPPPATH)
Return('group')