mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-07 08:36:02 -10:00
Emscripten: its JavaScript runtime moves to os/emscripten
The platform, audio and camera libraries, the pre-js and the closure externs the web build links in live under os/emscripten.
This commit is contained in:
1 parent
43ac210fb8
commit
5b3ec8d48a
9 files changed
+8
-8
No files matched your search
@@ -554,7 +554,7 @@ jobs:
|
||||
# audio/drivers/rwebaudio.c against a stand-in for its
|
||||
# JavaScript half: frames of the layout the page took go out
|
||||
# one plane per channel, and every byte count is in frames of
|
||||
# that layout. Then emscripten/library_rwebaudio.js itself
|
||||
# that layout. Then os/emscripten/library_rwebaudio.js itself
|
||||
# under Node with a mock AudioContext: the destination is
|
||||
# widened only past stereo and only as far as its
|
||||
# maxChannelCount allows, and a stereo one is left as it was.
|
||||
|
||||
+5
-5
@@ -193,9 +193,9 @@ LDFLAGS := -L. --no-heap-copy -s STACK_SIZE=$(STACK_SIZE) -s INITIAL_MEMORY=$(IN
|
||||
-s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 \
|
||||
-s ENVIRONMENT=web,worker -s WASM_BIGINT=1 \
|
||||
-s FETCH=1 \
|
||||
--extern-pre-js emscripten/extern_pre.js \
|
||||
--js-library emscripten/library_rwebcam.js \
|
||||
--js-library emscripten/library_platform_emscripten.js
|
||||
--extern-pre-js os/emscripten/extern_pre.js \
|
||||
--js-library os/emscripten/library_rwebcam.js \
|
||||
--js-library os/emscripten/library_platform_emscripten.js
|
||||
|
||||
ifeq ($(HAVE_OPENGLES), 1)
|
||||
ifeq ($(HAVE_OPENGLES3), 1)
|
||||
@@ -214,7 +214,7 @@ ifeq ($(FS_DEBUG), 1)
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_RWEBAUDIO), 1)
|
||||
LDFLAGS += --js-library emscripten/library_rwebaudio.js
|
||||
LDFLAGS += --js-library os/emscripten/library_rwebaudio.js
|
||||
DEFINES += -DHAVE_RWEBAUDIO
|
||||
ifeq ($(PROXY_TO_PTHREAD), 1)
|
||||
$(error ERROR: RWEBAUDIO is incompatible with PROXY_TO_PTHREAD)
|
||||
@@ -290,7 +290,7 @@ else ifeq ($(ASYNC), 1)
|
||||
endif
|
||||
|
||||
ifeq ($(CLOSURE_COMPILER), 1)
|
||||
LDFLAGS += --closure 1 --closure-args=--externs=emscripten/closure_externs.js --post-js emscripten/closure_post.js
|
||||
LDFLAGS += --closure 1 --closure-args=--externs=os/emscripten/closure_externs.js --post-js os/emscripten/closure_post.js
|
||||
endif
|
||||
|
||||
include Makefile.common
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
/* emscripten/library_rwebaudio.js under Node, against a mock
|
||||
/* os/emscripten/library_rwebaudio.js under Node, against a mock
|
||||
* AudioContext: the destination is widened only as far as its
|
||||
* maxChannelCount and only past stereo, passes channels through as
|
||||
* they are, and each queued buffer carries one plane per channel. A
|
||||
@@ -42,7 +42,7 @@ const sandbox = {
|
||||
autoAddDeps: () => {},
|
||||
};
|
||||
vm.createContext(sandbox);
|
||||
vm.runInContext(fs.readFileSync(path.join(__dirname, "../../../emscripten/library_rwebaudio.js"), "utf8"), sandbox);
|
||||
vm.runInContext(fs.readFileSync(path.join(__dirname, "../../../os/emscripten/library_rwebaudio.js"), "utf8"), sandbox);
|
||||
check(lib !== null, "the library did not register");
|
||||
|
||||
/* what emscripten makes of it: $X is X, the rest _X */
|
||||
|
||||
Reference in new issue
Block a user