2025-01-22 16:18:30 +01:00

25 lines
434 B
Haxe

package hxcpp;
#if (hxcpp_api_level>=330)
class StaticSqlite { }
#else
@:cppFileCode( 'extern "C" int sqlite_register_prims();')
@:buildXml("
<target id='haxe'>
<lib name='${HXCPP}/lib/${BINDIR}/libsqlite${LIBEXTRA}${LIBEXT}'/>
<lib name='-lpthread' if='linux'/>
</target>
")
@:keep class StaticSqlite
{
static function __init__()
{
untyped __cpp__("sqlite_register_prims();");
}
}
#end