2018-07-09 18:17:49 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
2018-07-27 14:36:39 +08:00
|
|
|
|
2018-07-09 18:17:49 +08:00
|
|
|
if GetDepend(['AT_DEVICE_M26']):
|
|
|
|
src = Glob('at_socket_m26.c')
|
2018-07-27 14:36:39 +08:00
|
|
|
|
2018-08-11 11:38:32 +08:00
|
|
|
if GetDepend(['AT_DEVICE_EC20']):
|
|
|
|
src = Glob('at_socket_ec20.c')
|
|
|
|
|
2018-07-09 18:17:49 +08:00
|
|
|
if GetDepend(['AT_DEVICE_ESP8266']):
|
|
|
|
src = Glob('at_socket_esp8266.c')
|
2018-07-27 14:36:39 +08:00
|
|
|
|
2018-07-09 18:17:49 +08:00
|
|
|
if GetDepend(['AT_DEVICE_NOT_SELECTED']):
|
|
|
|
src = Glob('*.c')
|
2018-07-27 14:36:39 +08:00
|
|
|
|
2018-07-21 16:11:42 +08:00
|
|
|
group = DefineGroup('at_device', src, depend = ['PKG_USING_AT_DEVICE','AT_USING_SOCKET'], CPPPATH = [cwd])
|
2018-07-09 18:17:49 +08:00
|
|
|
|
|
|
|
Return('group')
|