diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-22 17:22:18 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-22 17:22:18 +0200 |
commit | 97ec4b9edfa88302878b523baf09674503d19fab (patch) | |
tree | 1703c491303dcc8d23decdeef858a52fe6c67c0e /modules/remote-sycl/examples/SConscript | |
parent | 875ce0328d1d919d639797972e4cf60c6715503f (diff) |
Progress in fixing remote-sycl and ammended minor parts in echo_client
Diffstat (limited to 'modules/remote-sycl/examples/SConscript')
-rw-r--r-- | modules/remote-sycl/examples/SConscript | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/remote-sycl/examples/SConscript b/modules/remote-sycl/examples/SConscript new file mode 100644 index 0000000..7fa9429 --- /dev/null +++ b/modules/remote-sycl/examples/SConscript @@ -0,0 +1,31 @@ +#!/bin/false + +import os +import os.path +import glob + + +Import('env') + +dir_path = Dir('.').abspath + +# Environment for base library +examples_env = env.Clone(); + +examples_env.sources = sorted(glob.glob(dir_path + "/*.cpp")) +examples_env.headers = sorted(glob.glob(dir_path + "/*.hpp")) + +env.sources += examples_env.sources; +env.headers += examples_env.headers; + +objects_static = [] +examples_env.sycl_basic = examples_env.Program('#bin/sycl_basic', ['sycl_basic.cpp', env.library_static]); + +# Set Alias +env.examples = [examples_env.sycl_basic]; +env.Alias('examples', env.examples); + +if env["build_examples"]: + env.targets += ['examples']; + env.Install('$prefix/bin/', env.examples); +#endif |