Better fix for rebuild iOS and build iOS project
This commit is contained in:
@@ -278,10 +278,9 @@
|
||||
|
||||
<section if="LIME_ZLIB">
|
||||
|
||||
<compilerflag value="-DSTATIC_LINK" if="emscripten" />
|
||||
<compilerflag value="-DSTATIC_LINK" if="emscripten || ios || tvos" />
|
||||
<compilerflag value="-DLIME_ZLIB" />
|
||||
|
||||
<file name="${HXCPP}/project/libs/zlib/ZLib.cpp" if="emscripten || ios || static_link || tvos" />
|
||||
<file name="src/utils/compress/Zlib.cpp" />
|
||||
|
||||
</section>
|
||||
|
||||
@@ -2,6 +2,17 @@
|
||||
#include <zlib.h>
|
||||
|
||||
|
||||
#ifdef STATIC_LINK
|
||||
extern "C" int zlib_register_prims()
|
||||
{
|
||||
static bool init = false;
|
||||
if (init) return 0;
|
||||
init = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user