Enable OpenAL for Emscripten build
This commit is contained in:
@@ -47,7 +47,8 @@
|
|||||||
|
|
||||||
<haxedef name="lime-curl" unless="lime-console || emscripten" />
|
<haxedef name="lime-curl" unless="lime-console || emscripten" />
|
||||||
<haxedef name="lime-opengl" unless="lime-console" />
|
<haxedef name="lime-opengl" unless="lime-console" />
|
||||||
<haxedef name="lime-openal" unless="lime-console || static_link || emscripten" />
|
<haxedef name="lime-openal" unless="lime-console || static_link" />
|
||||||
|
<haxedef name="lime-openal" if="emscripten" />
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<set name="LIME_HARFBUZZ" value="1" />
|
<set name="LIME_HARFBUZZ" value="1" />
|
||||||
<!-- <set name="LIME_NEKO" value="1" if="linux" /> -->
|
<!-- <set name="LIME_NEKO" value="1" if="linux" /> -->
|
||||||
<set name="LIME_OGG" value="1" />
|
<set name="LIME_OGG" value="1" />
|
||||||
<set name="LIME_OPENAL" value="1" unless="emscripten" />
|
<set name="LIME_OPENAL" value="1" />
|
||||||
<set name="LIME_OPENGL" value="1" />
|
<set name="LIME_OPENGL" value="1" />
|
||||||
<set name="LIME_PNG" value="1" />
|
<set name="LIME_PNG" value="1" />
|
||||||
<set name="LIME_SDL" value="1" />
|
<set name="LIME_SDL" value="1" />
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<section if="LIME_OPENAL">
|
<section if="LIME_OPENAL">
|
||||||
|
|
||||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal/include/" unless="android" />
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal/include/" unless="android || emscripten" />
|
||||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal-android/include/" if="android" />
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal-android/include/" if="android" />
|
||||||
<compilerflag value="-DLIME_OPENAL" />
|
<compilerflag value="-DLIME_OPENAL" />
|
||||||
<compilerflag value="-DAL_LIBTYPE_STATIC=1" />
|
<compilerflag value="-DAL_LIBTYPE_STATIC=1" />
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
<files id="native-toolkit-harfbuzz" if="LIME_HARFBUZZ" />
|
<files id="native-toolkit-harfbuzz" if="LIME_HARFBUZZ" />
|
||||||
<files id="native-toolkit-neko" if="LIME_NEKO" />
|
<files id="native-toolkit-neko" if="LIME_NEKO" />
|
||||||
<files id="native-toolkit-ogg" if="LIME_OGG" />
|
<files id="native-toolkit-ogg" if="LIME_OGG" />
|
||||||
<files id="native-toolkit-openal" if="LIME_OPENAL" unless="mac || iphone || android" />
|
<files id="native-toolkit-openal" if="LIME_OPENAL" unless="mac || iphone || android || emscripten" />
|
||||||
<files id="native-toolkit-openal-android" if="LIME_OPENAL android" />
|
<files id="native-toolkit-openal-android" if="LIME_OPENAL android" />
|
||||||
<files id="native-toolkit-png" if="LIME_PNG" />
|
<files id="native-toolkit-png" if="LIME_PNG" />
|
||||||
<files id="native-toolkit-sdl" if="LIME_SDL" unless="emscripten" />
|
<files id="native-toolkit-sdl" if="LIME_SDL" unless="emscripten" />
|
||||||
|
|||||||
@@ -7,10 +7,11 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern "C" const char *hxRunLibrary();
|
extern "C" const char *hxRunLibrary ();
|
||||||
extern "C" void hxcpp_set_top_of_stack();
|
extern "C" void hxcpp_set_top_of_stack ();
|
||||||
|
|
||||||
extern "C" int zlib_register_prims();
|
extern "C" int zlib_register_prims ();
|
||||||
|
extern "C" int lime_openal_register_prims ();
|
||||||
::foreach ndlls::::if (registerStatics)::extern "C" int ::name::_register_prims();::end::
|
::foreach ndlls::::if (registerStatics)::extern "C" int ::name::_register_prims();::end::
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
@@ -21,7 +22,7 @@ extern "C" int main(int argc, char *argv[]) {
|
|||||||
hxcpp_set_top_of_stack ();
|
hxcpp_set_top_of_stack ();
|
||||||
|
|
||||||
zlib_register_prims ();
|
zlib_register_prims ();
|
||||||
|
lime_openal_register_prims ();
|
||||||
::foreach ndlls::::if (registerStatics)::::name::_register_prims();::end::
|
::foreach ndlls::::if (registerStatics)::::name::_register_prims();::end::
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user