2013-12-30 23:50:56 +01:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2009-08-30 09:46:56 +02:00
|
|
|
import os
|
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
binary = SM.ExtLibrary(builder, 'dbi.sqlite.ext')
|
|
|
|
binary.compiler.cxxincludes += [
|
|
|
|
os.path.join(SM.mms_root, 'core', 'sourcehook'),
|
|
|
|
]
|
2009-08-30 09:46:56 +02:00
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
binary.compiler.defines += [
|
|
|
|
'SQLITE_OMIT_LOAD_EXTENSION',
|
|
|
|
'SQLITE_THREADSAFE'
|
|
|
|
]
|
2014-02-10 05:50:20 +01:00
|
|
|
if builder.target_platform == 'linux':
|
2013-12-30 23:50:56 +01:00
|
|
|
binary.compiler.postlink += ['-ldl', '-lpthread']
|
2009-08-30 09:46:56 +02:00
|
|
|
|
2013-12-30 23:50:56 +01:00
|
|
|
binary.sources += [
|
|
|
|
'sdk/smsdk_ext.cpp',
|
|
|
|
'sdk/sm_memtable.cpp',
|
|
|
|
'extension.cpp',
|
|
|
|
'driver/SqDatabase.cpp',
|
|
|
|
'driver/SqDriver.cpp',
|
|
|
|
'driver/SqQuery.cpp',
|
|
|
|
'driver/SqResults.cpp',
|
|
|
|
'sqlite-source/sqlite3.c'
|
|
|
|
]
|
|
|
|
|
2013-12-30 23:50:59 +01:00
|
|
|
SM.extensions += [builder.Add(binary)]
|
2012-04-14 02:12:24 +02:00
|
|
|
|