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 /modules/webgl/c++/SConscript | |
| parent | 0c0087ef9482634273ec1a23d3a915754f94926d (diff) | |
| download | libs-lbm-dev.tar.gz | |
Swarm POCdev
Diffstat (limited to 'modules/webgl/c++/SConscript')
| -rw-r--r-- | modules/webgl/c++/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
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); |
