2017-10-25 07:37:26 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd]
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
src = Split('''
|
2024-09-14 05:40:40 +08:00
|
|
|
dev_wlan.c
|
2019-07-15 18:17:53 +08:00
|
|
|
''')
|
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_MANAGE_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_mgnt.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_MSH_CMD_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_cmd.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_PROT_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_prot.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_PROT_LWIP_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_lwip.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_CFG_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_cfg.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
|
|
|
if GetDepend(['RT_WLAN_WORK_THREAD_ENABLE']):
|
2024-09-14 05:40:40 +08:00
|
|
|
src += ['dev_wlan_workqueue.c']
|
2019-07-15 18:17:53 +08:00
|
|
|
|
2017-10-25 07:37:26 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WIFI'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|