29 lines
632 B
Python
29 lines
632 B
Python
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
import os
|
|
|
|
binary = SM.ExtLibrary(builder, 'dbi.sqlite.ext')
|
|
binary.compiler.cxxincludes += [
|
|
os.path.join(SM.mms_root, 'core', 'sourcehook'),
|
|
]
|
|
|
|
binary.compiler.defines += [
|
|
'SQLITE_OMIT_LOAD_EXTENSION',
|
|
'SQLITE_THREADSAFE'
|
|
]
|
|
if builder.target_platform is 'linux':
|
|
binary.compiler.postlink += ['-ldl', '-lpthread']
|
|
|
|
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'
|
|
]
|
|
|
|
SM.extensions += [builder.Add(binary)]
|
|
|