This commit is contained in:
Dante
2026-05-22 11:54:15 -07:00
parent 05f197c291
commit b47ea35fe4
935 changed files with 1016163 additions and 1 deletions

View File

@ -0,0 +1,29 @@
package hxcpp;
#if (hxcpp_api_level>=330)
class StaticZlib { }
#else
@:cppFileCode( 'extern "C" int zlib_register_prims();')
#if HXCPP_LINK_NO_ZLIB
@:buildXml("
<import name='${HXCPP}/project/libs/zlib/Build.xml'/>
")
#else
@:buildXml("
<target id='haxe'>
<lib name='${HXCPP}/lib/${BINDIR}/libzlib${LIBEXTRA}${LIBEXT}'/>
</target>
")
#end
@:keep class StaticZlib
{
static function __init__()
{
untyped __cpp__("zlib_register_prims();");
}
}
#end