mirror of https://github.com/pyodide/pyodide.git
24 lines
1.1 KiB
Makefile
24 lines
1.1 KiB
Makefile
export PATH := $(PYODIDE_ROOT)/emsdk/emsdk:$(PYODIDE_ROOT)/emsdk/emsdk/clang/fastcomp/build_incoming_64/bin:$(PYODIDE_ROOT)/emsdk/emsdk/node/8.9.1_64bit/bin:$(PYODIDE_ROOT)/emsdk/emsdk/emscripten/incoming:$(PYODIDE_ROOT)/emsdk/emsdk/binaryen/master_64bit_binaryen/bin:$(PATH)
|
|
|
|
export EMSDK = $(PYODIDE_ROOT)/emsdk/emsdk
|
|
export EM_CONFIG = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten
|
|
export EM_CACHE = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten_cache
|
|
export EMSCRIPTEN = $(PYODIDE_ROOT)/emsdk/emsdk/emscripten/incoming
|
|
export BINARYEN_ROOT = $(PYODIDE_ROOT)/emsdk/emsdk/binaryen/master_64bit_binaryen
|
|
|
|
export PYVERSION=3.6.4
|
|
export PYMINOR=$(basename $(PYVERSION))
|
|
export HOSTPYTHONINSTALL=$(PYODIDE_ROOT)/cpython/build/$(PYVERSION)/host
|
|
export HOSTPYTHON=$(HOSTPYTHONINSTALL)/bin/python3
|
|
export PYTHONINCLUDE=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)/include/python$(PYMINOR)
|
|
export PLATFORMSLUG=$(shell $(HOSTPYTHON) -c "import sysconfig; print(sysconfig.get_platform())")-$(PYMINOR)
|
|
|
|
export SIDE_LDFLAGS=\
|
|
-O3 \
|
|
-Werror \
|
|
-s EMULATED_FUNCTION_POINTERS=1 \
|
|
-s EMULATE_FUNCTION_POINTER_CASTS=1 \
|
|
-s SIDE_MODULE=1 \
|
|
-s WASM=1 \
|
|
--memory-init-file 0
|