Skip to content

Commit e93e3c8

Browse files
committed
Update preloaded directories, allow Emscripten runtime to exit, set MAIKO_ENABLE_NETHUB
Compiling with -DMAIKO_ENABLE_NETHUB makes it possible to test out having a WebSocket server that could pass packets back and forth to the Dodo NetHub. Setting Emscripten link-time option for EXIT_RUNTIME allows the runtime code to shutdown when you exit Medley via a (LOGOUT) Set up preloads for all the parts of the Medley directory that MEDLEYDIR-INIT expects to be there. The resulting ldesdl.data is (at this time) 128 MB. It can be installed gzipped if using nginx or some other web server that supports pre-zipped static files. It would be better to have these as lazy-loading files, but the setup for that is complicated. Another alternative to embedding all the data would be if a WebSocket to XNS/Nethub gateway were written and deployed.
1 parent 29fdf4c commit e93e3c8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

bin/makefile-emscripten.wasm-wasm

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,25 @@ XFLAGS = -DSDL -sUSE_SDL=2
88

99
# OPTFLAGS is normally -O2.
1010
OPTFLAGS = -O2
11-
DFLAGS = $(XFLAGS) -DRELEASE=351
11+
DFLAGS = $(XFLAGS) -DRELEASE=351 -DMAIKO_ENABLE_NETHUB
1212

1313
MEDLEY?=../../medley
1414
SYSOUT?=$(MEDLEY)/loadups/full.sysout
1515

1616
LD = emcc
17-
LDFLAGS = -sUSE_SDL=2 -sASYNCIFY -sALLOW_MEMORY_GROWTH \
17+
LDFLAGS = -sUSE_SDL=2 -sASYNCIFY -sALLOW_MEMORY_GROWTH -sEXIT_RUNTIME=1 \
1818
--preload-file $(SYSOUT)@medley/loadups/full.sysout \
19-
--preload-file $(MEDLEY)/greetfiles/EMSCRIPTEN-INIT.LCOM@usr/local/lde/site-init.lisp \
20-
--preload-file $(MEDLEY)/lispusers/BACKGROUND-YIELD.LCOM@medley/lispusers/BACKGROUND-YIELD.LCOM
19+
--preload-file $(MEDLEY)/loadups/whereis.hash@medley/loadups/whereis.hash \
20+
--preload-file $(MEDLEY)/greetfiles/MEDLEYDIR-INIT.LCOM@usr/local/lde/site-init.lisp \
21+
--preload-file $(MEDLEY)/docs/@medley/docs \
22+
--preload-file $(MEDLEY)/doctools/@medley/doctools \
23+
--preload-file $(MEDLEY)/greetfiles/@medley/greetfiles \
24+
--preload-file $(MEDLEY)/internal/@medley/internal \
25+
--preload-file $(MEDLEY)/sources/@medley/sources \
26+
--preload-file $(MEDLEY)/library/@medley/library \
27+
--preload-file $(MEDLEY)/lispusers/@medley/lispusers \
28+
--preload-file $(MEDLEY)/fonts/@medley/fonts
29+
2130
LDELDFLAGS =
2231

2332
OBJECTDIR = ../$(RELEASENAME)/

0 commit comments

Comments
 (0)