Fixed errors with SendConVarValue on CS:GO (
bug 5638, r=asherkin).
1 # vim: set ts=2 sw=2 tw=99 noet ft=python:
4 compiler = SM.DefaultExtCompiler('extensions/sqlite')
5 compiler['CXXINCLUDES'].append(os.path.join(SM.mmsPath, 'core', 'sourcehook'))
7 compiler['CDEFINES'].extend(['SQLITE_OMIT_LOAD_EXTENSION', 'SQLITE_THREADSAFE'])
8 if AMBuild.target['platform'] == 'linux':
9 compiler['POSTLINKFLAGS'].extend(['-ldl', '-lpthread'])
11 extension = AMBuild.AddJob('dbi.sqlite.ext')
12 binary = Cpp.LibraryBuilder('dbi.sqlite.ext', AMBuild, extension, compiler)
14 'sdk/smsdk_ext.cpp', 'sdk/sm_memtable.cpp', 'extension.cpp',
15 'driver/SqDatabase.cpp', 'driver/SqDriver.cpp', 'driver/SqQuery.cpp',
16 'driver/SqResults.cpp', 'sqlite-source/sqlite3.c'
18 binary.AddSourceFiles('extensions/sqlite', files)
19 SM.AutoVersion('extensions/sqlite', binary)
20 SM.ExtractDebugInfo(extension, binary)