-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConstruct
executable file
·24 lines (21 loc) · 1.03 KB
/
SConstruct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# - Glob() adds all the files with the extension to the list
# - CPPPATH define the path where to look for source files which have include dependendcies
# so that when these include files change, a recompilation of the source file is triggered
# CPPPATH = ['include', '/home/project/inc']
env = Environment()
env.Program( target='iot_db',
source=[Glob('*.cpp'),
[ 'pilibs/utils.cpp',
'pilibs/safe_msg.cpp',
'pilibs/mqtt_db.cpp',
'pilibs/webserver.cpp',
'pilibs/db_mgr.cpp',
'pilibs/log.cpp'
],
],
CPPPATH = ['.','pilibs/','/usr/local/include/Poco/'],
CCFLAGS = ['-std=c++11'],
LIBS=['libmosquittopp','libPocoNet','libPocoUtil','libPocoFoundation'],
LIBPATH='/usr/local/lib/',
LINKFLAGS=['-lboost_system','-lboost_filesystem']
)