diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-13 09:57:49 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-13 09:57:49 +0200 |
commit | 6b9e221a0c439ce3ee9b728bc9ead8f5c2c82ceb (patch) | |
tree | 49d70b45f0aa65e8e872ff76deccebd6c1f92198 /modules/remote-opencl/SConstruct | |
parent | 0f8abfb2d48497e804d87e6e47a41c70e728901a (diff) |
renamed to sycl since opencl does not support c++
Diffstat (limited to 'modules/remote-opencl/SConstruct')
-rw-r--r-- | modules/remote-opencl/SConstruct | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/modules/remote-opencl/SConstruct b/modules/remote-opencl/SConstruct deleted file mode 100644 index 2734d6e..0000000 --- a/modules/remote-opencl/SConstruct +++ /dev/null @@ -1,74 +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=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[], - CPPDEFINES=['SAW_UNIX'], - CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'], - LIBS=[ - 'forstio-core', - 'forstio-codec', - 'forstio-async', - 'forstio-io', - 'forstio-io_codec' - ] -); -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('c++/SConscript') -SConscript('tests/SConscript') - -env.Alias('cdb', env.cdb); -env.Alias('all', [env.targets]); -env.Default('all'); - -env.Alias('install', '$prefix') |