From 3beda6ac36f494df11851b657a4bcc967bceb79d Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Tue, 6 Aug 2024 16:34:24 +0200 Subject: wip --- modules/window-vulkan/examples/SConscript | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 modules/window-vulkan/examples/SConscript (limited to 'modules/window-vulkan/examples/SConscript') 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 -- cgit v1.2.3