2022-01-10 16:20:39 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
2022-01-10 17:10:14 +08:00
|
|
|
if GetDepend('RT_USING_LWIP202') or GetDepend('RT_USING_LWIP212') :
|
2022-01-10 16:20:39 +08:00
|
|
|
src = ['dhcp_server_raw.c']
|
2022-01-10 17:10:14 +08:00
|
|
|
else:
|
|
|
|
src = ['dhcp_server.c']
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
2022-01-10 16:20:39 +08:00
|
|
|
|
|
|
|
group = DefineGroup('lwIP', src, depend = ['RT_USING_LWIP', 'LWIP_USING_DHCPD'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|