forked from jiejieTop/kawaii-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
36 lines (28 loc) · 1010 Bytes
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('common/*.c')
src += Glob('mqtt/*.c')
src += Glob('mqttclient/*.c')
src += Glob('network/*.c')
src += Glob('platform/RT-Thread/*.c')
path = [cwd + '/common']
path += [cwd + '/mqtt']
path += [cwd + '/mqttclient']
path += [cwd + '/network']
path += [cwd + '/platform/RT-Thread']
if GetDepend(['MQTT_NETWORK_TYPE_TLS']):
src += Glob('common/mbedtls/library/*.c')
src += Glob('common/mbedtls/wrapper/*.c')
path += [cwd + '/common/mbedtls/wrapper']
path += [cwd + '/common/mbedtls/include']
path += [cwd + '/common/mbedtls/include/mbedtls']
if GetDepend(['LOG_IS_SALOF']):
src += Glob('common/log/*.c')
path += [cwd + '/common/log']
if GetDepend(['PKG_USING_MQTTCLIENT_TEST']):
src += Glob('test/*.c')
group = DefineGroup('mqttclient',src , depend = ['PKG_USING_MQTTCLIENT'], CPPPATH = path)
Return('group')