mirror of
https://github.com/holub/mame
synced 2025-07-06 02:18:09 +03:00
Experimental support for compiling to WebAssembly using Emscripten (not yet working) (nw)
This commit is contained in:
parent
592c51d19e
commit
b99be73f2d
4
makefile
4
makefile
@ -742,6 +742,10 @@ endif
|
||||
ifdef DEBUG_ARGS
|
||||
PARAMS += --DEBUG_ARGS='$(DEBUG_ARGS)'
|
||||
endif
|
||||
|
||||
ifdef WEBASSEMBLY
|
||||
PARAMS += --WEBASSEMBLY='$(WEBASSEMBLY)'
|
||||
endif
|
||||
#-------------------------------------------------
|
||||
# All scripts
|
||||
#-------------------------------------------------
|
||||
|
@ -377,6 +377,11 @@ newoption {
|
||||
description = "Arguments for running debug build.",
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "WEBASSEMBLY",
|
||||
description = "Produce WebAssembly output when building with Emscripten.",
|
||||
}
|
||||
|
||||
dofile ("extlib.lua")
|
||||
|
||||
if _OPTIONS["SHLIB"]=="1" then
|
||||
|
@ -137,6 +137,11 @@ end
|
||||
.. " -s DEMANGLE_SUPPORT=1"
|
||||
end
|
||||
|
||||
if _OPTIONS["WEBASSEMBLY"] then
|
||||
emccopts = emccopts
|
||||
.. " -s BINARYEN=1"
|
||||
end
|
||||
|
||||
if _OPTIONS["ARCHOPTS"] then
|
||||
emccopts = emccopts .. " " .. _OPTIONS["ARCHOPTS"]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user