diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-13 14:12:49 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-13 14:12:49 +0100 |
| commit | e821d617802ebbfff756844e4d9720342fc78a4e (patch) | |
| tree | 1dcf33b84698b5074218e44ea491b77a9c23ee66 /poc/web_swarm/worker/selftest/SConscript | |
| parent | 0c0087ef9482634273ec1a23d3a915754f94926d (diff) | |
| download | libs-lbm-dev.tar.gz | |
Swarm POCdev
Diffstat (limited to 'poc/web_swarm/worker/selftest/SConscript')
| -rw-r--r-- | poc/web_swarm/worker/selftest/SConscript | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/poc/web_swarm/worker/selftest/SConscript b/poc/web_swarm/worker/selftest/SConscript new file mode 100644 index 0000000..f60d79a --- /dev/null +++ b/poc/web_swarm/worker/selftest/SConscript @@ -0,0 +1,35 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Built for node rather than the web, so a check phase can run it. Same +# protocol code as the real worker; only the entry point and the environment +# differ. +test_env = env.Clone(); +test_env['LINKFLAGS'] = [ + '-sWASM=1', + '-sENVIRONMENT=node', + '-sALLOW_MEMORY_GROWTH=1', + # The probe is compiled in and must link, but with no context it returns + # cleanly rather than running any of it. + '-sMIN_WEBGL_VERSION=2', + '-sMAX_WEBGL_VERSION=2', + '-sFULL_ES3=1', +] + +test_env.sources = sorted(glob.glob(dir_path + "/*.cpp")); + +env.sources += test_env.sources; + +objects = [] +test_env.add_source_files(objects, test_env.sources, shared=False); +env.selftest = test_env.em_program('#bin/kel_lbm_worker_selftest', [objects]); + +env.targets += [env.selftest]; |
