mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
23 lines
434 B
Python
23 lines
434 B
Python
|
|
from building import *
|
||
|
|
|
||
|
|
cwd = GetCurrentDir()
|
||
|
|
|
||
|
|
CPPPATH = [cwd]
|
||
|
|
|
||
|
|
src = Split('''
|
||
|
|
|
||
|
|
''')
|
||
|
|
|
||
|
|
if GetDepend(['LPKG_USING_OTA_DOWNLOADER']):
|
||
|
|
src += Glob('absystem.c')
|
||
|
|
|
||
|
|
if GetDepend(['LPKG_USING_HTTP_OTA']):
|
||
|
|
src += Glob('src/http_ota.c')
|
||
|
|
|
||
|
|
if GetDepend(['LPKG_USING_YMODEM_OTA']):
|
||
|
|
src += Glob('src/ymodem_ota.c')
|
||
|
|
|
||
|
|
group = DefineGroup('ota_downloader', src, depend = ['LPKG_USING_OTA_DOWNLOADER'], CPPPATH = CPPPATH)
|
||
|
|
|
||
|
|
Return('group')
|