Rename Emscripten target to WebAssembly
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
/*
|
||||
* Main.mm
|
||||
*
|
||||
* Boot code for lime.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
extern "C" const char *hxRunLibrary ();
|
||||
extern "C" void hxcpp_set_top_of_stack ();
|
||||
|
||||
extern "C" int zlib_register_prims ();
|
||||
extern "C" int lime_register_prims ();
|
||||
::foreach ndlls::::if (registerStatics)::extern "C" int ::nameSafe::_register_prims ();::end::
|
||||
::end::
|
||||
|
||||
|
||||
extern "C" int main (int argc, char *argv[]) {
|
||||
|
||||
hxcpp_set_top_of_stack ();
|
||||
|
||||
zlib_register_prims ();
|
||||
lime_register_prims ();
|
||||
::foreach ndlls::::if (registerStatics)::::nameSafe::_register_prims ();::end::
|
||||
::end::
|
||||
|
||||
const char *err = NULL;
|
||||
err = hxRunLibrary ();
|
||||
|
||||
if (err) {
|
||||
|
||||
printf (" Error %s\n", err);
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -125,7 +125,7 @@ import ::APP_MAIN::;
|
||||
|
||||
var result = app.exec();
|
||||
|
||||
#if (sys && !ios && !nodejs && !emscripten)
|
||||
#if (sys && !ios && !nodejs && !webassembly)
|
||||
lime.system.System.exit(result);
|
||||
#end
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ import sys.FileSystem;
|
||||
|
||||
if (rootPath == null) {
|
||||
|
||||
#if (ios || tvos || emscripten)
|
||||
#if (ios || tvos || webassembly)
|
||||
rootPath = "assets/";
|
||||
#elseif android
|
||||
rootPath = "";
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-cpp ::CPP_DIR::
|
||||
--macro keep("::APP_MAIN::")
|
||||
-D webassembly
|
||||
-D wasm
|
||||
-D emscripten
|
||||
-D webgl
|
||||
-debug
|
||||
@@ -2,6 +2,8 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-cpp ::CPP_DIR::
|
||||
--macro keep("::APP_MAIN::")
|
||||
-D webassembly
|
||||
-D wasm
|
||||
-D emscripten
|
||||
-D webgl
|
||||
-D final
|
||||
@@ -2,5 +2,7 @@
|
||||
-cp ::OUTPUT_DIR::/haxe
|
||||
-cpp ::CPP_DIR::
|
||||
--macro keep("::APP_MAIN::")
|
||||
-D webassembly
|
||||
-D wasm
|
||||
-D emscripten
|
||||
-D webgl
|
||||
Reference in New Issue
Block a user