mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-24 13:08:55 +00:00
20 lines
387 B
Python
20 lines
387 B
Python
|
|
from building import *
|
||
|
|
|
||
|
|
cwd = GetCurrentDir()
|
||
|
|
src = Split('''
|
||
|
|
modbus.c
|
||
|
|
modbus-data.c
|
||
|
|
''')
|
||
|
|
|
||
|
|
if GetDepend(['LPKG_USING_LIBMODBUS_RTU']):
|
||
|
|
src += Glob('modbus-rtu.c')
|
||
|
|
|
||
|
|
if GetDepend(['LPKG_USING_LIBMODBUS_TCP']):
|
||
|
|
src += Glob('modbus-tcp.c')
|
||
|
|
|
||
|
|
CPPPATH = [cwd + '/../inc']
|
||
|
|
|
||
|
|
group = DefineGroup('libmodbus', src, depend = ['LPKG_USING_LIBMODBUS'], CPPPATH = CPPPATH)
|
||
|
|
|
||
|
|
Return('group')
|