blob: d75d7e09addfc3439c6ea1a6bfd935473a4041b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
|