Compile wasm with html

This commit is contained in:
Tal Regev 2022-06-11 15:48:14 +03:00
parent 0f6dad86e7
commit 5190a61241
No known key found for this signature in database
GPG Key ID: A421558E0F87AC82
5 changed files with 12 additions and 5 deletions

5
.gitignore vendored
View File

@ -231,7 +231,10 @@ build-*/
# WASM
*.wasm
a.out.js
boinc.js
boinc_client.js
boinccmd.js
switcher.js
boinc.html
boinc_client.html
boinccmd.html
switcher.html

View File

@ -65,7 +65,10 @@ endif
# Define files for distclean command
DISTCLEANFILES = \
clientgui/res/Makefile \
packages/generic/sea/Makefile
packages/generic/sea/Makefile \
`find . -name "*.wasm"` \
`find client -name "*.js"` \
`find client -name "*.html"`
# Define files for maintainer-clean command
MAINTAINERCLEANFILES = \

View File

@ -379,7 +379,7 @@ AC_PATH_PROG(DOCBOOK2X_MAN, docbook2x-man)
AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, [test -n "${DOCBOOK2X_MAN}"])
if test "${enable_wasm}" = yes ; then
EXEEXT=.js
EXEEXT=.html
fi
AC_SUBST([CLIENT_BIN_FILENAME],[boinc${EXEEXT}])

View File

@ -186,7 +186,8 @@ windows_manager_list = [
wasm_client_list = [
'./client/boinc_client.wasm',
'./client/boinc.js',
'./client/boinc_client.js',
'./client/boinc.html',
'./samples/wasm/index.html',
]

View File

@ -1,6 +1,6 @@
<html>
<body>
<h1>Boinc</h1>
<script src="boinc.js"></script>
<script src="boinc_client.js"></script>
</body>
</html>