-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSConscript
33 lines (27 loc) · 903 Bytes
/
SConscript
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
import os
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('common/*.c')
src += Glob('ioLibrary/*.c')
src += Glob('ioLibrary/wizchip/*.c')
src += Glob('ioLibrary/DHCP/*.c')
src += Glob('ioLibrary/DNS/*.c')
src += Glob('ioLibrary/W5500/*.c')
src += Glob('W5500Client/*.c')
src += Glob('platform/RT-Thread/*.c')
path = [cwd + '/common']
path += [cwd + '/ioLibrary']
path += [cwd + '/ioLibrary/wizchip']
path += [cwd + '/ioLibrary/DHCP']
path += [cwd + '/ioLibrary/DNS']
path += [cwd + '/ioLibrary/W5500']
path += [cwd + '/W5500Client']
path += [cwd + '/platform/RT-Thread']
if GetDepend(['PKG_USING_RYANW5500_EXAMPLE']):
src += Glob('example/*.c')
path += [cwd + '/example']
group = DefineGroup('RyanW5500', src, depend=[
"PKG_USING_RYANW5500"], CPPPATH=path)
Return('group')