From 2cf2dfdeb461ac04d20b2de850e3e0bdd64b5cc1 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 9 Jul 2024 16:19:36 +0200 Subject: Prepare for example work --- modules/window/examples/SConscript | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 modules/window/examples/SConscript (limited to 'modules/window/examples/SConscript') diff --git a/modules/window/examples/SConscript b/modules/window/examples/SConscript new file mode 100644 index 0000000..255d32c --- /dev/null +++ b/modules/window/examples/SConscript @@ -0,0 +1,35 @@ +#!/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; + +sycl_objects = []; +# examples_sycl_env.add_source_files(sycl_objects, ['sycl_basic_kernel.cpp'], shared=True); + +objects_static = [] +# examples_env.sycl_basic = examples_env.Program('#bin/sycl_basic', ['sycl_basic.cpp', env.library_static, sycl_objects]); + +# 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 -- cgit v1.2.3