-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSConstruct
42 lines (36 loc) · 1.32 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
SConscript('../iotivity/build_common/SConscript')
Import('env')
server_env = env.Clone()
server_env.AppendUnique(CPPPATH=[
'../iotivity/resource/csdk/logger/include',
'../iotivity/resource/csdk/include',
'../iotivity/resource/csdk/stack/include',
'../iotivity/resource/csdk/security/include',
'../iotivity/resource/oc_logger/include',
'../iotivity/resource/csdk/include',
'../iotivity/resource/c_common',
'../iotivity/resource/c_common/oic_malloc/include',
'../iotivity/resource/c_common/oic_string/include',
'../iotivity/out/linux/x86_64/release/include/c_common'
])
server_env.AppendUnique(LIBPATH=[
'../iotivity/out/linux/x86_64/release'
])
server_env.AppendUnique(CXXFLAGS=['-std=c++0x', '-Wall', '-pthread'])
server_env.AppendUnique(LIBS=['pthread'])
server_env.Append(LINKFLAGS=['-Wl,--no-as-needed'])
server_env.PrependUnique(LIBS=['c_common'])
server_env.PrependUnique(LIBS=['logger'])
server_env.PrependUnique(LIBS=['octbstack'])
server_env.AppendUnique(LIBS=['mbedtls', 'mbedx509', 'mbedcrypto'])
server_env.AppendUnique(CPPDEFINES=['TB_LOG'])
# Build Blood Pressure Monitor
server = server_env.Program(
'server', [
'common.cpp',
'device/bloodpressure0.cpp',
'device/bloodpressure1.cpp',
'device/bloodpressure2.cpp',
'server.cpp'
])