diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-25 22:22:36 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-25 22:22:36 +0100 |
| commit | f3bdd223f06fe7dd54b6cf72fdc468e521642e6f (patch) | |
| tree | 982dbf24a97609dee82bf2ebc451140f2c1af89b /examples/meta_2d/SConstruct | |
| parent | 54e3bf6ba8385c3722d4cc14dccf3c3a1ae42627 (diff) | |
| parent | 2ac145b3bb6d2de3887ab08e0cf26423b5e6c5ee (diff) | |
| download | libs-lbm-f3bdd223f06fe7dd54b6cf72fdc468e521642e6f.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'examples/meta_2d/SConstruct')
| -rw-r--r-- | examples/meta_2d/SConstruct | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/examples/meta_2d/SConstruct b/examples/meta_2d/SConstruct deleted file mode 100644 index a7201cb..0000000 --- a/examples/meta_2d/SConstruct +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import os -import os.path -import glob -import re - - -if sys.version_info < (3,): - def isbasestring(s): - return isinstance(s,basestring) -else: - def isbasestring(s): - return isinstance(s, (str,bytes)) - -def add_kel_source_files(self, sources, filetype, lib_env=None, shared=False, target_post=""): - - if isbasestring(filetype): - dir_path = self.Dir('.').abspath - filetype = sorted(glob.glob(dir_path+"/"+filetype)) - - for path in filetype: - target_name = re.sub( r'(.*?)(\.cpp|\.c\+\+)', r'\1' + target_post, path ) - if shared: - target_name+='.os' - sources.append( self.SharedObject( target=target_name, source=path ) ) - else: - target_name+='.o' - sources.append( self.StaticObject( target=target_name, source=path ) ) - pass - -def isAbsolutePath(key, dirname, env): - assert os.path.isabs(dirname), "%r must have absolute path syntax" % (key,) - -env_vars = Variables( - args=ARGUMENTS -) - -env_vars.Add('prefix', - help='Installation target location of build results and headers', - default='/usr/local/', - validator=isAbsolutePath -) - -env_vars.Add('build_examples', - help='If examples should be built', - default="true" -) - -env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[], - CPPDEFINES=['SAW_UNIX'], - CXXFLAGS=[ - '-std=c++20', - '-g', - '-Wall', - '-Wextra' - ], - LIBS=[ - 'forstio-core' - ] -); -env.__class__.add_source_files = add_kel_source_files -env.Tool('compilation_db'); -env.cdb = env.CompilationDatabase('compile_commands.json'); - -env.objects = []; -env.sources = []; -env.headers = []; -env.targets = []; - -Export('env') -SConscript('SConscript') - -env.Alias('cdb', env.cdb); -env.Alias('all', [env.targets]); -env.Default('all'); - -env.Alias('install', '$prefix') |
