Rename Emscripten target to WebAssembly

This commit is contained in:
Joshua Granick
2023-05-23 14:19:32 -07:00
parent f285df6f76
commit 2ccee960dc
21 changed files with 102 additions and 126 deletions

View File

@@ -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;
}

View File

@@ -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

View File

@@ -55,7 +55,7 @@ import sys.FileSystem;
if (rootPath == null) {
#if (ios || tvos || emscripten)
#if (ios || tvos || webassembly)
rootPath = "assets/";
#elseif android
rootPath = "";

View File

@@ -2,6 +2,8 @@
-cp ::OUTPUT_DIR::/haxe
-cpp ::CPP_DIR::
--macro keep("::APP_MAIN::")
-D webassembly
-D wasm
-D emscripten
-D webgl
-debug

View File

@@ -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

View File

@@ -2,5 +2,7 @@
-cp ::OUTPUT_DIR::/haxe
-cpp ::CPP_DIR::
--macro keep("::APP_MAIN::")
-D webassembly
-D wasm
-D emscripten
-D webgl