mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 02:18:54 +00:00
17 lines
382 B
Python
17 lines
382 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
|
|
if GetDepend(['LPKG_USING_LIBMODBUS_RTU_EXAMPLE']):
|
|
src += Glob('modbus_rtu_test.c')
|
|
|
|
if GetDepend(['LPKG_USING_LIBMODBUS_TCP_EXAMPLE']):
|
|
src += Glob('modbus_tcp_test.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
group = DefineGroup('libmodbus', src, depend = ['LPKG_USING_LIBMODBUS'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|