From e821d617802ebbfff756844e4d9720342fc78a4e Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Nov 2026 14:12:49 +0100 Subject: Swarm POC --- modules/webgl/c++/SConscript | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/webgl/c++/SConscript (limited to 'modules/webgl/c++/SConscript') diff --git a/modules/webgl/c++/SConscript b/modules/webgl/c++/SConscript new file mode 100644 index 0000000..d75d7e0 --- /dev/null +++ b/modules/webgl/c++/SConscript @@ -0,0 +1,31 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +webgl_env = env.Clone(); + +webgl_env.sources = sorted(glob.glob(dir_path + "/*.cpp")); +webgl_env.headers = sorted(glob.glob(dir_path + "/*.hpp")); + +env.sources += webgl_env.sources; +env.headers += webgl_env.headers; + +# The module is headers plus probe.cpp. toolchain_probe.cpp is the smoke test +# target: it proves em++ can compile against the core and swarm headers and +# that both the .js and the .wasm land where SCons expects them. +objects = [] +webgl_env.add_source_files(objects, webgl_env.sources, shared=False); +env.probe = webgl_env.em_program('#bin/kel_lbm_webgl_probe', [objects]); + +env.targets += [env.probe]; + +env.Install('$prefix/include/kel/lbm/webgl/', webgl_env.headers); +# Both the loader and the sidecar; the .js is useless without the .wasm. +env.Install('$prefix/share/kel-lbm/webgl/', env.probe); -- cgit v1.3.1