From a127565d0b8c3ab665636b61ebd682e0c6995a0d Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 13 Feb 2015 14:28:24 -0800 Subject: [PATCH] Enable OpenAL for Emscripten build --- include.xml | 3 ++- project/Build.xml | 6 +++--- templates/emscripten/cpp/Main.cpp | 9 +++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/include.xml b/include.xml index 4db9b5dbf..38070ae7f 100644 --- a/include.xml +++ b/include.xml @@ -47,7 +47,8 @@ - + + diff --git a/project/Build.xml b/project/Build.xml index 9bb39d64f..6c845dd72 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -15,7 +15,7 @@ - + @@ -93,7 +93,7 @@
- + @@ -199,7 +199,7 @@ - + diff --git a/templates/emscripten/cpp/Main.cpp b/templates/emscripten/cpp/Main.cpp index 84bf64177..ac42910c2 100644 --- a/templates/emscripten/cpp/Main.cpp +++ b/templates/emscripten/cpp/Main.cpp @@ -7,10 +7,11 @@ #include -extern "C" const char *hxRunLibrary(); -extern "C" void hxcpp_set_top_of_stack(); +extern "C" const char *hxRunLibrary (); +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:: ::end:: @@ -21,7 +22,7 @@ extern "C" int main(int argc, char *argv[]) { hxcpp_set_top_of_stack (); zlib_register_prims (); - + lime_openal_register_prims (); ::foreach ndlls::::if (registerStatics)::::name::_register_prims();::end:: ::end::