Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Romain Casati
Basthon Kernel
Commits
0a07f6a3
Commit
0a07f6a3
authored
Feb 01, 2021
by
Romain Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emscripten autoinstall.
parent
594421c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
.gitlab-ci.yml
.gitlab-ci.yml
+0
-3
Makefile
Makefile
+10
-2
No files found.
.gitlab-ci.yml
View file @
0a07f6a3
...
...
@@ -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
...
...
Makefile
View file @
0a07f6a3
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment