diff options
| author | yangjie <[email protected]> | 2019-07-23 11:00:49 +0800 |
|---|---|---|
| committer | yangjie <[email protected]> | 2019-07-23 11:00:49 +0800 |
| commit | c794ac0255b0347cfd98b5751155cbfba1edc6b0 (patch) | |
| tree | 02ae6bc36c1bf45d5f501cbda64b89114af563e5 /components/drivers/wlan/SConscript | |
| parent | 85ab390750f87956bb904f4d990a4a7191aa99c9 (diff) | |
| parent | c94cac2e27fb8ac6813341a4604fdf65eed02e9e (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into dma
Diffstat (limited to 'components/drivers/wlan/SConscript')
| -rw-r--r-- | components/drivers/wlan/SConscript | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/components/drivers/wlan/SConscript b/components/drivers/wlan/SConscript index 271ca66a80..f2a6bbdc82 100644 --- a/components/drivers/wlan/SConscript +++ b/components/drivers/wlan/SConscript @@ -1,8 +1,30 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') CPPPATH = [cwd] + +src = Split(''' + wlan_dev.c + ''') + +if GetDepend(['RT_WLAN_MANAGE_ENABLE']): + src += ['wlan_mgnt.c'] + +if GetDepend(['RT_WLAN_MSH_CMD_ENABLE']): + src += ['wlan_cmd.c'] + +if GetDepend(['RT_WLAN_PROT_ENABLE']): + src += ['wlan_prot.c'] + +if GetDepend(['RT_WLAN_PROT_LWIP_ENABLE']): + src += ['wlan_lwip.c'] + +if GetDepend(['RT_WLAN_CFG_ENABLE']): + src += ['wlan_cfg.c'] + +if GetDepend(['RT_WLAN_WORK_THREAD_ENABLE']): + src += ['wlan_workqueue.c'] + group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_WIFI'], CPPPATH = CPPPATH) Return('group') |
