File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change
1
+ # NOTE: python3-distutils should not be needed when emsdk > 1.39.13 is used,
2
+ # so remove it when updating emsdk
1
3
FROM debian:buster
2
4
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/force-unsafe-io
3
5
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -23,19 +25,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
23
25
autoconf \
24
26
m4 \
25
27
gperf \
26
- wget && \
28
+ wget \
29
+ python3-distutils && \
27
30
rm -rf /var/lib/apt/lists/*
28
31
29
32
RUN pip install ply
30
33
31
34
RUN git clone https://github.com/emscripten-core/emsdk.git && \
32
35
cd emsdk && \
33
- ./emsdk install 1.39.11 && \
34
- ./emsdk activate 1.39.11
35
-
36
- # Patch emscripten; needed until https://github.com/emscripten-core/emscripten/pull/10846 is merged and released
37
- RUN wget https://raw.githubusercontent.com/emscripten-core/emscripten/d68250f1e6059168bd1f791921445527c7548e29/src/preamble.js -O /emsdk/upstream/emscripten/src/preamble.js && \
38
- wget https://raw.githubusercontent.com/emscripten-core/emscripten/d68250f1e6059168bd1f791921445527c7548e29/src/URIUtils.js -O /emsdk/upstream/emscripten/src/URIUtils.js
36
+ ./emsdk install 1.39.13 && \
37
+ ./emsdk activate 1.39.13
39
38
40
39
ENV PATH=$PATH:/emsdk:/emsdk/upstream/emscripten:/emsdk/node/12.9.1_64bit/bin
41
40
WORKDIR /code
Original file line number Diff line number Diff line change 4
4
BASE_DIR: =$(dir $(realpath $(firstword $(MAKEFILE_LIST ) ) ) )
5
5
DIST_DIR: =$(BASE_DIR ) dist/libraries
6
6
7
- GLOBAL_CFLAGS: =-O3
7
+ GLOBAL_CFLAGS: =-O3 -s ENVIRONMENT=web,webview -s DOUBLE_MODE=0
8
8
9
9
all : subtitleoctopus
10
10
@@ -308,6 +308,8 @@ EMCC_COMMON_ARGS = \
308
308
--preload-file assets/fonts.conf \
309
309
-s ALLOW_MEMORY_GROWTH=1 \
310
310
-s FORCE_FILESYSTEM=1 \
311
+ -s ENVIRONMENT=web,webview \
312
+ -s DOUBLE_MODE=0 \
311
313
--llvm-lto 1 \
312
314
--no-heap-copy \
313
315
-o $@
@@ -335,6 +337,8 @@ dist/js/subtitles-octopus-worker-legacy.js: src/subtitles-octopus-worker.bc src/
335
337
--post-js src/post-worker.js \
336
338
-s WASM=0 \
337
339
-s LEGACY_VM_SUPPORT=1 \
340
+ -s MIN_CHROME_VERSION=27 \
341
+ -s MIN_SAFARI_VERSION=60005 \
338
342
$(EMCC_COMMON_ARGS )
339
343
340
344
dist/js/subtitles-octopus.js : src/subtitles-octopus.js
You can’t perform that action at this time.
0 commit comments