Fix static build (thanks JeriX)
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
<ndll name="std" haxelib="hxcpp" if="cpp" />
|
||||
<ndll name="regexp" haxelib="hxcpp" if="cpp" />
|
||||
<ndll name="zlib" haxelib="hxcpp" if="cpp" unless="emscripten || ios" />
|
||||
<ndll name="zlib" haxelib="hxcpp" if="cpp" unless="emscripten || ios || static_link" />
|
||||
|
||||
<ndll name="lime" if="included" />
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
|
||||
<compilerflag value="-DSTATIC_LINK" if="emscripten" />
|
||||
|
||||
<file name="${HXCPP}/project/libs/zlib/ZLib.cpp" if="emscripten || ios" />
|
||||
<file name="${HXCPP}/project/libs/zlib/ZLib.cpp" if="emscripten || ios || static_link" />
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
@@ -488,7 +488,7 @@ namespace lime {
|
||||
value lime_image_data_util_fill_rect (value image, value rect, value color) {
|
||||
|
||||
Image _image = Image (image);
|
||||
Rectangle _rect = Rectangle (rect);
|
||||
Rectangle _rect = Rectangle (rect);
|
||||
ImageDataUtil::FillRect (&_image, &_rect, val_number (color));
|
||||
return alloc_null ();
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<lib name="ApplicationMain${DBG}${LIBEXT}" />
|
||||
<lib name="libApplicationMain${DBG}${LIBEXT}" />
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
extern "C" const char *hxRunLibrary ();
|
||||
extern "C" void hxcpp_set_top_of_stack ();
|
||||
|
||||
extern "C" int zlib_register_prims ();
|
||||
extern "C" int lime_cairo_register_prims ();
|
||||
extern "C" int lime_openal_register_prims ();
|
||||
::foreach ndlls::::if (registerStatics)::
|
||||
extern "C" int ::nameSafe::_register_prims ();::end::::end::
|
||||
|
||||
@@ -19,6 +22,9 @@ extern "C" int main(int argc, char *argv[]) {
|
||||
|
||||
hxcpp_set_top_of_stack ();
|
||||
|
||||
zlib_register_prims ();
|
||||
lime_cairo_register_prims ();
|
||||
lime_openal_register_prims ();
|
||||
::foreach ndlls::::if (registerStatics)::
|
||||
::nameSafe::_register_prims ();::end::::end::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user