if target_os in ['tizen', 'linux']:
liboctbstack_env.ParseConfig("pkg-config --cflags --libs uuid")
+if target_os in ['tizen']:
+ liboctbstack_env.ParseConfig('pkg-config --cflags --libs sqlite3')
if target_os == 'arduino':
liboctbstack_env.AppendUnique(CPPDEFINES = ['NDEBUG', 'WITH_ARDUINO'])
'../security/provisioning/include'
])
-if env.get('SECURED') == '1' and target_os not in ['tizen']:
- libocsrm_env.AppendUnique(CPPPATH = ['../../../extlibs/sqlite3'])
-
if target_os not in ['arduino', 'windows']:
libocsrm_env.AppendUnique(CPPDEFINES = ['WITH_POSIX'])
libocsrm_env.AppendUnique(CFLAGS = ['-std=c99', '-Wall'])
OCSRM_SRC + 'directpairing.c'
]
-if env.get('SECURED') == '1':
+if libocsrm_env.get('SECURED') == '1':
+ if target_os in ['tizen']:
+ libocsrm_env.ParseConfig('pkg-config --cflags --libs sqlite3')
+ else:
+ libocsrm_env.AppendUnique(CPPPATH = ['../../../extlibs/sqlite3'])
+ libocsrm_src = libocsrm_src + ['../../../extlibs/sqlite3/sqlite3.c']
libocsrm_src = libocsrm_src + [OCSRM_SRC + 'provisioningdatabasemanager.c']
-
-if env.get('SECURED') == '1' and target_os != 'tizen':
- libocsrm_src = libocsrm_src + ['../../../extlibs/sqlite3/sqlite3.c']
-
-if env.get('SECURED') == '1':
- libocsrm_src = libocsrm_src + [OCSRM_SRC + 'oxmpincommon.c', OCSRM_SRC + 'pbkdf2.c']
+ libocsrm_src = libocsrm_src + [OCSRM_SRC + 'oxmpincommon.c', OCSRM_SRC + 'pbkdf2.c']
if target_os in ['windows', 'msys_nt']:
libocsrm_src = libocsrm_src + [OCSRM_SRC + 'strptime.c']
if target_os == 'tizen':
oclib_env.AppendUnique(CPPDEFINES = ['__TIZEN__'])
+ oclib_env.ParseConfig('pkg-config --cflags --libs sqlite3')
if target_os in ['linux'] and oclib_env.get('SIMULATOR', False):
oclib_env.Append( RPATH = oclib_env.Literal('\\$$ORIGIN'))