23 lines
546 B
Python
Raw Normal View History

2025-04-08 18:46:12 +08:00
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('MQTTPacket/src/*.c')
src += ['MQTTClient-RT/mqtt_client.c']
if GetDepend(['PKG_USING_PAHOMQTT_EXAMPLE']):
src += Glob('samples/*.c')
if GetDepend(['PKG_USING_PAHOMQTT_TEST']):
src += Glob('tests/*.c')
path = [cwd + '/MQTTPacket/src']
path += [cwd + '/MQTTClient-RT']
group = DefineGroup('paho-mqtt', src, depend = ['PKG_USING_PAHOMQTT'], CPPPATH = path)
Return('group')