-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
23 lines (20 loc) · 881 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vanilla:
sed \
-e 's|{{{PLACEHOLDER}}}|<script type="text/javascript" src="../src/SignalCore.js" data-cover-never></script>|' \
test/index.html.proto \
> test/index.html
fstar:
$(MAKE) -C fstar compile-wasm
sed -e 's|{{{PLACEHOLDER}}}| \
<script type="text/javascript" src="../fstar/signal-wasm/shell.js" data-cover-never></script> \
<script type="text/javascript" src="../fstar/signal-wasm/loader.js" data-cover-never></script> \
<script type="text/javascript" src="../src/SignalCoreWasm.js" data-cover-never></script>|' \
test/index.html.proto \
> test/index.html
update-demo:
cp -f src/*.js public/
cp -f fstar/signal-wasm/*.wasm public/
cp -f fstar/signal-wasm/loader.js public/
cp -f fstar/signal-wasm/shell.js public/
sed -i 's|fetch("../fstar/signal-wasm/" + m + ".wasm")|fetch(m + ".wasm")|' public/SignalCoreWasm.js
.PHONY: fstar vanilla