Skip to content

Commit 56cdb94

Browse files
authored
Merge pull request #6446 from BOINC/vko_remove_wasm
Remove unfinished wasm compilation support.
2 parents 6c832b1 + f3c63eb commit 56cdb94

14 files changed

Lines changed: 2 additions & 348 deletions

File tree

.github/workflows/wasm.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,6 @@ vda/vdad
235235
build/
236236
build-*/
237237

238-
# WASM
239-
*.wasm
240-
a.out.js
241-
boinc_client.js
242-
boinccmd.js
243-
switcher.js
244-
boinc.html
245-
boinc_client.html
246-
boinccmd.html
247-
switcher.html
248-
249238
# snap
250239
parts/
251240
prime/

3rdParty/vcpkg_ports/configs/client/wasm/vcpkg.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

3rdParty/vcpkg_ports/triplets/ci/wasm32-emscripten.cmake

Lines changed: 0 additions & 21 deletions
This file was deleted.

Makefile.am

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ endif
6565
# Define files for distclean command
6666
DISTCLEANFILES = \
6767
clientgui/res/Makefile \
68-
packages/generic/sea/Makefile \
69-
`find . -name "*.wasm"` \
70-
`find client -name "*.js"` \
71-
`find client -name "*.html"`
68+
packages/generic/sea/Makefile
7269

7370
# Define files for maintainer-clean command
7471
MAINTAINERCLEANFILES = \

client/hostinfo_network.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,6 @@
5757

5858
#include "hostinfo.h"
5959

60-
#if WASM
61-
#include <emscripten.h>
62-
#endif
63-
64-
#if WASM
65-
// unique user device in js.
66-
EM_JS(int, get_uuid, (char* buf), {
67-
const fpPromise = import('https://openfpcdn.io/fingerprintjs/v3').then(FingerprintJS => FingerprintJS.load());
68-
69-
// Get the visitor identifier when you need it.
70-
fpPromise.then(fp => fp.get()).then(result => {
71-
// This is the visitor identifier:
72-
const visitorId = result.visitorId;
73-
for (let i = 0; i < visitorId.length; i++) {
74-
buf[i] = visitorId[i];
75-
}
76-
});
77-
return 0;
78-
});
79-
#endif
80-
8160
// get domain name and IP address of this host
8261
// Android: if domain_name is empty, set it to android_xxxxxxxx
8362
//
@@ -166,16 +145,11 @@ void HOST_INFO::generate_host_cpid() {
166145
char buf[256+MAXPATHLEN];
167146
char dir[MAXPATHLEN];
168147

169-
#if WASM
170-
// unique user device in js.
171-
retval = get_uuid(buf);
172-
#else
173148
// if a MAC address is available, compute an ID based on it;
174149
// this has the advantage of stability
175150
// (a given host will get the same ID each time BOINC is reinstalled)
176151
//
177152
retval = get_mac_address(buf);
178-
#endif
179153
if (retval) {
180154
make_random_string("", host_cpid);
181155
return;

client/hostinfo_unix.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,6 @@ extern "C" {
181181
#define LINUX_LIKE_SYSTEM 1
182182
#endif
183183

184-
#if WASM
185-
#include <emscripten.h>
186-
#endif
187-
188-
#if WASM
189-
EM_JS(FILE*, popen, (const char* command, const char* mode), {
190-
//TODO: add javascript code
191-
});
192-
#endif
193-
194184
// Returns the offset between LOCAL STANDARD TIME and UTC.
195185
// LOCAL_STANDARD_TIME = UTC_TIME + get_timezone().
196186
//
@@ -1409,9 +1399,6 @@ int HOST_INFO::get_cpu_info() {
14091399
strlcpy( p_model, cpuInfo.name.fromID, sizeof(p_model));
14101400
#elif defined(__HAIKU__)
14111401
get_cpu_info_haiku(*this);
1412-
#elif WASM
1413-
strlcpy( p_vendor, "WASM", sizeof(p_vendor));
1414-
strlcpy( p_model, "WASM", sizeof(p_model));
14151402
#elif HAVE_SYS_SYSCTL_H
14161403
int mib[2];
14171404
size_t len;

configure.ac

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@ AC_ARG_ENABLE(apps-gui,
158158
[enable_apps_gui=${enableval}],
159159
[enable_apps_gui=no])
160160

161-
AC_ARG_ENABLE(wasm,
162-
AS_HELP_STRING([--enable-wasm],
163-
[enable building the boinc wasm]),
164-
[enable_wasm=${enableval}],
165-
[enable_wasm=no])
166-
167161
AC_ARG_ENABLE(unit-tests,
168162
AS_HELP_STRING([--enable-unit-tests],
169163
[enable building the boinc unit tests]),
@@ -387,10 +381,6 @@ dnl the manpages only if docbook2x-man is available.
387381
AC_PATH_PROG(DOCBOOK2X_MAN, docbook2x-man)
388382
AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, [test -n "${DOCBOOK2X_MAN}"])
389383

390-
if test "${enable_wasm}" = yes ; then
391-
EXEEXT=.html
392-
fi
393-
394384
AC_SUBST([CLIENT_BIN_FILENAME],[boinc${EXEEXT}])
395385
AC_SUBST([CLIENT_CMD_BIN_FILENAME],[boinccmd${EXEEXT}])
396386
AC_SUBST([CLIENT_GUI_BIN_FILENAME],[boincmgr${EXEEXT}])
@@ -736,11 +726,7 @@ AC_TYPE_SIGNAL
736726
if test "${isWIN32}" = "yes" ; then
737727
AC_CHECK_HEADERS(winsock2.h winsock.h windows.h ws2tcpip.h winternl.h crtdbg.h)
738728
fi
739-
AC_CHECK_HEADERS(sys/types.h sys/un.h arpa/inet.h dirent.h grp.h fcntl.h inttypes.h stdint.h memory.h netdb.h netinet/in.h netinet/tcp.h netinet/ether.h net/if.h net/if_arp.h signal.h strings.h sys/auxv.h sys/file.h sys/fcntl.h sys/ipc.h sys/ioctl.h sys/msg.h sys/param.h sys/resource.h sys/select.h sys/sem.h sys/sockio.h sys/socket.h sys/stat.h sys/statvfs.h sys/statfs.h sys/systeminfo.h sys/time.h sys/types.h sys/utsname.h sys/vmmeter.h sys/wait.h unistd.h utmp.h errno.h procfs.h ieeefp.h setjmp.h float.h sal.h execinfo.h xlocale.h)
740-
741-
if test "${enable_wasm}" != yes ; then
742-
AC_CHECK_HEADERS(sys/shm.h)
743-
fi
729+
AC_CHECK_HEADERS(sys/types.h sys/un.h arpa/inet.h dirent.h grp.h fcntl.h inttypes.h stdint.h memory.h netdb.h netinet/in.h netinet/tcp.h netinet/ether.h net/if.h net/if_arp.h signal.h strings.h sys/auxv.h sys/file.h sys/fcntl.h sys/ipc.h sys/ioctl.h sys/msg.h sys/param.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/socket.h sys/stat.h sys/statvfs.h sys/statfs.h sys/systeminfo.h sys/time.h sys/types.h sys/utsname.h sys/vmmeter.h sys/wait.h unistd.h utmp.h errno.h procfs.h ieeefp.h setjmp.h float.h sal.h execinfo.h xlocale.h)
744730

745731
save_cxxflags="${CXXFLAGS}"
746732
save_cppflags="${CPPFLAGS}"
@@ -1138,10 +1124,6 @@ AM_CONDITIONAL(BUILD_APPS_WITH_VCPKG, [test "${enable_apps_vcpkg}" = yes])
11381124
AM_CONDITIONAL(BUILD_WITH_VBOX, [test "${enable_apps_vbox}" = yes])
11391125
AM_CONDITIONAL(BUILD_WITH_MINGW, [test "${enable_apps_mingw}" = yes])
11401126
AM_CONDITIONAL(BUILD_WITH_GUI, [test "${enable_apps_gui}" = yes])
1141-
if test "${enable_wasm}" = yes ; then
1142-
AC_DEFINE([WASM], [1], [build boinc wasm])
1143-
fi
1144-
11451127

11461128
dnl Whether to build fcgi components
11471129
AM_CONDITIONAL(ENABLE_FCGI,[test "${enable_fcgi}" = yes])

deploy/prepare_deployment.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -213,23 +213,6 @@
213213
'./win_build/Build/ARM64/Release/installer_setup.exe',
214214
]
215215

216-
wasm_client_list = [
217-
'./client/boinc_client.wasm',
218-
'./client/boinc_client.js',
219-
'./client/boinc.html',
220-
'./samples/wasm/index.html',
221-
]
222-
223-
wasm_client_debug_folder_list = [
224-
'lib/*.cpp',
225-
'lib/*.h',
226-
'client/*.cpp',
227-
'client/*.h',
228-
'client/boinc_client.html',
229-
'client/boinc_client.js',
230-
'client/boinc_client.wasm',
231-
]
232-
233216
macos_manager_list = [
234217
'mac_build/build/Deployment/AddRemoveUser',
235218
'mac_build/build/Deployment/BOINC\ Installer.app',
@@ -289,7 +272,6 @@
289272

290273
logs_list = [
291274
'config.log',
292-
'3rdParty/wasm/vcpkg/buildtrees/*.log',
293275
'3rdParty/linux/vcpkg/buildtrees/*.log',
294276
'3rdParty/osx/vcpkg/buildtrees/*.log',
295277
'3rdParty/android/vcpkg/buildtrees/*.log',
@@ -362,12 +344,6 @@ def prepare_win_manager(target_directory):
362344
def prepare_win_installer(target_directory):
363345
prepare_7z_archive('win_installer', target_directory, windows_installer_list)
364346

365-
def prepare_wasm_client(target_directory):
366-
prepare_7z_archive('wasm_client', target_directory, wasm_client_list)
367-
368-
def prepare_wasm_client_debug(target_directory):
369-
prepare_7z_archive('wasm_client-debug', target_directory, wasm_client_debug_folder_list)
370-
371347
def prepare_macos_apps(target_directory):
372348
prepare_7z_archive('macos_manager', target_directory, macos_manager_list)
373349
prepare_7z_archive('macos_apps', target_directory, macos_apps_list)
@@ -398,8 +374,6 @@ def prepare_logs(target_directory):
398374
'win_client': prepare_win_client,
399375
'win_manager': prepare_win_manager,
400376
'win_installer': prepare_win_installer,
401-
'wasm_client': prepare_wasm_client,
402-
'wasm_client-debug': prepare_wasm_client_debug,
403377
'macos_manager': prepare_macos_apps,
404378
'macos_samples-makefile': prepare_macos_makefile_apps,
405379
'logs': prepare_logs,

samples/wasm/index.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)