diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-06 16:34:24 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-06 16:34:24 +0200 |
commit | 3beda6ac36f494df11851b657a4bcc967bceb79d (patch) | |
tree | 7f6c16fc073a58aa1f11e8f3f5215d572a5be8f2 /modules/window-vulkan/examples/SConscript | |
parent | 6a5d5b204569fc6abe6cb5a8ac338350eb5e923d (diff) |
wip
Diffstat (limited to 'modules/window-vulkan/examples/SConscript')
-rw-r--r-- | modules/window-vulkan/examples/SConscript | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/window-vulkan/examples/SConscript b/modules/window-vulkan/examples/SConscript new file mode 100644 index 0000000..e64eb92 --- /dev/null +++ b/modules/window-vulkan/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; + +ex_objects = []; +# examples_env.add_source_files(ex_objects, ['window_create_kernel.cpp'], shared=True); + +objects_static = [] +examples_env.window_create = examples_env.Program('#bin/window_create', ['window_create.cpp', env.library_static]); + +# Set Alias +env.examples = [examples_env.window_create]; +env.Alias('examples', env.examples); + +if env["build_examples"]: + env.targets += ['examples']; + env.Install('$prefix/bin/', env.examples); +#endif |