Commit 0a07f6a3 authored by Romain Casati's avatar Romain Casati

Emscripten autoinstall.

parent 594421c5
......@@ -8,9 +8,6 @@ build:
stage: build
script:
- apt-get update && apt-get install -y make git build-essential llvm nodejs python3-pip
- git clone --depth 1 https://github.com/emscripten-core/emsdk.git
- cd emsdk && ./emsdk install --build=Release 1.38.44-fastcomp ; cd -
- ln -s ../emsdk/fastcomp/emscripten/ extern/emscripten
- make build install
artifacts:
untracked: true
......
......@@ -14,7 +14,15 @@ minify: $(MINIFIED)
%.min.js: %.js
cd $(dir $<) ; uglifyjs.terser $(notdir $<) --source-map url=$(notdir $@).map --compress --mangle --output $(notdir $@) ; cd -
$(BASTHON_DATA) $(BASTHON_JS) &:
extern/emscripten:
git clone --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk && ./emsdk install --build=Release 1.38.44-fastcomp ; cd -
mv emsdk/fastcomp/emscripten/ extern/
rm -rf emsdk/
setup-emscripten: extern/emscripten
$(BASTHON_DATA) $(BASTHON_JS) &: setup-emscripten
mkdir -p $(dir $@)
python3 $(FILE_PACKAGER) $(BASTHON_DATA) \
--js-output=$(BASTHON_JS) \
......@@ -59,4 +67,4 @@ test: build install
cp tests/test.html tests/build/
pytest -x tests/
.PHONY: all build wasm-package publish clean install www www-publish test test-www minify devel-www-publish
.PHONY: all build setup-emscripten wasm-package publish clean install www www-publish test test-www minify devel-www-publish
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment