Update Files
This commit is contained in:
24
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticMysql.hx
Normal file
24
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticMysql.hx
Normal file
@ -0,0 +1,24 @@
|
||||
package hxcpp;
|
||||
|
||||
#if (hxcpp_api_level>=330)
|
||||
|
||||
class StaticMysql { }
|
||||
|
||||
#else
|
||||
|
||||
@:cppFileCode( 'extern "C" int mysql_register_prims();')
|
||||
@:buildXml("
|
||||
<target id='haxe'>
|
||||
<lib name='${HXCPP}/lib/${BINDIR}/libmysql5${LIBEXTRA}${LIBEXT}'/>
|
||||
<lib name='ws2_32.lib' if='windows'/>
|
||||
</target>
|
||||
")
|
||||
@:keep class StaticMysql
|
||||
{
|
||||
static function __init__()
|
||||
{
|
||||
untyped __cpp__("mysql_register_prims();");
|
||||
}
|
||||
}
|
||||
|
||||
#end
|
Reference in New Issue
Block a user