23 lines
546 B
Python
23 lines
546 B
Python
![]() |
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')
|