diff options
author | Christian Heimes <christian@python.org> | 2022-04-05 12:21:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 11:21:11 +0200 |
commit | 96e09837fb8031aebe8d823dd19ef664a34bcfad (patch) | |
tree | 28f6efee3352292d27370a2aeea27090755bed6f /Makefile.pre.in | |
parent | faa12088c179dd896fde713448a7f142f820c1aa (diff) | |
download | cpython3-96e09837fb8031aebe8d823dd19ef664a34bcfad.tar.gz |
bpo-40280: Add limited Emscripten REPL (GH-32284)
Co-authored-by: Katie Bell <katie@katharos.id.au>
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 9e0dae0e33..d9b96f52ec 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -807,15 +807,22 @@ $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS) else true; \ fi -# wasm32-emscripten build +# wasm32-emscripten browser build # wasm assets directory is relative to current build dir, e.g. "./usr/local". # --preload-file turns a relative asset path into an absolute path. $(WASM_STDLIB): $(srcdir)/Lib/*.py $(srcdir)/Lib/*/*.py \ - pybuilddir.txt $(srcdir)/Tools/wasm/wasm_assets.py + pybuilddir.txt $(srcdir)/Tools/wasm/wasm_assets.py \ + python.html python.worker.js $(PYTHON_FOR_BUILD) $(srcdir)/Tools/wasm/wasm_assets.py \ --builddir . --prefix $(prefix) +python.html: $(srcdir)/Tools/wasm/python.html python.worker.js + @cp $(srcdir)/Tools/wasm/python.html $@ + +python.worker.js: $(srcdir)/Tools/wasm/python.worker.js + @cp $(srcdir)/Tools/wasm/python.worker.js $@ + ########################################################################## # Build static libmpdec.a LIBMPDEC_CFLAGS=$(PY_STDMODULE_CFLAGS) $(CCSHARED) @LIBMPDEC_CFLAGS@ |