2015-01-31 10:48:28 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2018-06-19 18:37:06 +08:00
|
|
|
|
2021-01-18 15:02:28 +08:00
|
|
|
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP212') :
|
2018-06-19 18:37:06 +08:00
|
|
|
src = ['dhcp_server_raw.c']
|
|
|
|
else:
|
|
|
|
src = ['dhcp_server.c']
|
2015-01-31 10:48:28 +08:00
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2017-10-24 11:58:55 +08:00
|
|
|
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_DHCPD'], CPPPATH = CPPPATH)
|
2015-01-31 10:48:28 +08:00
|
|
|
|
|
|
|
Return('group')
|